Conversation
…us messages When 'logging.suppress_fallback_messages: true' is set in config.yaml, fallback and rate-limit lifecycle messages are still printed to the CLI log but NOT forwarded to status_callback (gateway chat channel). This keeps production gateway channels clean while preserving full debug visibility in logs. Other status messages (errors, warnings, tool failures) remain visible by default. Closes NousResearch#27131
Contributor
Contributor
Author
|
Thanks @alt-glitch for the cross-reference. Closing in favor of #4242 — it's the more comprehensive approach:
Good convergent design — both identify the same noise problem. #4242's approach is the better one to ship. 🙏 |
Contributor
Author
|
Closing — #4242 is the more comprehensive approach for silent fallback. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
Hermes sends internal lifecycle status messages (rate-limit, fallback switching) directly through the gateway status callback, flooding the main chat with technical debugging noise. No config option exists to suppress these selectively.
Closes #27131
Solution
Add
logging.suppress_fallback_messages: trueconfig key inconfig.yaml:_vprint(force=True)— full debug visibility preservedstatus_callback— clean chat UIChanges
run_agent.py(+29 lines):logging.suppress_fallback_messagesfrom config in__init__, store asself._suppress_fallback_status_emit_status()docstring with suppress behaviorstatus_callbackcall when matchedtests/run_agent/test_suppress_fallback_status.py(new, 109 lines):Test Results
Config Usage
Default:
false(existing behavior preserved, zero-change for users who do not opt in).