fix: suppress reasoning display in quiet single-query mode
The -Q quiet single-query path suppresses stream_delta_callback and tool_gen_callback to keep stdout machine-readable, but missed reasoning_callback. When display.show_reasoning is on (the default), the reasoning box leaks into stdout before the final response, corrupting output for automation wrappers and third-party integrations using --source tool. Before: hermes chat -Q --source tool -q "Reply with exactly: PING_OK" ┌─ Reasoning ──────────────────────┐ The user wants me to reply... PING_OK After: PING_OK
This commit is contained in:
@@ -21375,9 +21375,11 @@ def main(
|
||||
cli.agent.suppress_status_output = True
|
||||
# Suppress streaming display callbacks so stdout stays
|
||||
# machine-readable (no styled "Hermes" box, no tool-gen
|
||||
# status lines). The response is printed once below.
|
||||
# status lines, no reasoning box). The response is
|
||||
# printed once below.
|
||||
cli.agent.stream_delta_callback = None
|
||||
cli.agent.tool_gen_callback = None
|
||||
cli.agent.reasoning_callback = None
|
||||
try:
|
||||
result = cli.agent.run_conversation(
|
||||
user_message=effective_query,
|
||||
|
||||
Reference in New Issue
Block a user