Skip to content

feat(gateway): add 'log' option to display.tool_progress (#3459 salvage) - #821

Merged
hashbender merged 1 commit into
mainfrom
mirror/pr-57014
Jul 2, 2026
Merged

feat(gateway): add 'log' option to display.tool_progress (#3459 salvage)#821
hashbender merged 1 commit into
mainfrom
mirror/pr-57014

Conversation

@hashbender

Copy link
Copy Markdown
Owner

Summary

display.tool_progress: log — a fifth mode that keeps the chat completely silent while appending every tool call as a timestamped line to ~/.hermes/logs/tool_calls.log, giving gateway operators an audit trail without chat noise.

Salvage of NousResearch#3459 by @keslerm, reimplemented against the restructured progress-callback block (resolve_display_setting / needs_progress_queue / thinking-relay landed since March). Duplicate NousResearch#3458 by @dlkakbs was submitted 4 minutes earlier with the same feature — credited via Co-authored-by.

Changes

  • gateway/run.py: log_queue + log branch in progress_callback (tool.started only, _thinking excluded), write_tool_log() async drain with RotatingFileHandler (5MB × 3) + RedactingFormatter (secrets never land on disk), task lifecycle (start/cancel/await); chat progress stays disabled in log mode, thinking_progress relay unaffected
  • gateway/slash_commands.py + locales/en.yaml: /verbose cycles off → new → all → verbose → log
  • hermes_cli/{commands,setup,config}.py, cli-config.yaml.example: descriptions + validation
  • Tests: test_tool_log_mode.py (7 tests), test_verbose_command.py cycle updated

Validation

Result
tests/gateway/test_tool_log_mode.py + test_verbose_command.py 15/15 pass
ruff clean

Infographic

infographic

Nous Research


Mirror-of: NousResearch#57014
NousResearch#57014

@hashbender
hashbender merged commit 2c915ea into main Jul 2, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant