Skip to content

feat: Add response dump for terminal rejection path in run_conversation (#66512)#71101

Open
kuehnberger wants to merge 6 commits into
NousResearch:mainfrom
kuehnberger:fix/terminal-response-dumps
Open

feat: Add response dump for terminal rejection path in run_conversation (#66512)#71101
kuehnberger wants to merge 6 commits into
NousResearch:mainfrom
kuehnberger:fix/terminal-response-dumps

Conversation

@kuehnberger

Copy link
Copy Markdown

When run_conversation encounters terminal API response failures (after max retries), it now captures the final error payload to disk via a synthetic response dump. This allows debugging of what actually went wrong during API failures. The dump is only created if HERMES_DUMP_REQUESTS=1 is set.

  • Added dump_api_response_debug helper function in agent/agent_runtime_helpers.py
  • Added proxy method in run_agent.py
  • Enhanced agent/conversation_loop.py to generate synthetic response and call dump when terminal rejection occurs
  • Created test case in tests/run_agent/test_terminal_rejection_dumps.py

Fixes #66512

@alt-glitch alt-glitch added type/feature New feature or request comp/agent Core agent runtime: loop, agent_init, prompt builder, context-compression, responses endpoint provider/openrouter OpenRouter aggregator P3 Low — cosmetic, nice to have needs-decision Awaiting maintainer decision before any implementation labels Jul 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

comp/agent Core agent runtime: loop, agent_init, prompt builder, context-compression, responses endpoint needs-decision Awaiting maintainer decision before any implementation P3 Low — cosmetic, nice to have provider/openrouter OpenRouter aggregator type/feature New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants