Two issues when running hermes chat -Q -q: 1. The streaming 'Hermes' response box was rendering to stdout because stream_delta_callback was wired during _init_agent() before quiet_mode was set. This caused the response to appear twice — once in the styled box and once as plain text. 2. session_id was printed to stdout, making piped output unusable. Fix: null out stream_delta_callback and tool_gen_callback after agent init in the quiet-mode path, and redirect session_id to stderr. Now 'hermes chat -Q -q "prompt" | cat' produces only the answer text. session_id is still available on stderr for scripts that need it. Reported by @nixpiper on X.
440 KiB
440 KiB