Fixing KeyError and crashes on run_conversation error paths

NousResearch/hermes-agent · cluster 9433 · agent

Data as of

Nothing open on GitHub. Fix merged in #14490. Check it covers your case.

The short answer

0open issues
0open PRs
10items grouped
Known?
Yes. 10 related items grouped here, 2 issues already closed.
Fix event
A fix was merged to main in PR #14490. Check it covers your case. No release data is tracked.
Tracker
The maintainers' tracker marks this unresolved. That is separate from the fix event.
Still open
Nothing open on GitHub.

Multiple issues and fix attempts address KeyError on 'final_response' and crashes when run_conversation returns a non-dict, affecting AIAgent.chat(), main(), and the cron scheduler.

Open issues0

No open issues.

Open PRs0

No open pull requests.

Fixes on record

Merged to main. A stamp counts the issues a fix is linked to.

  • #14490 fix(cron): guard against non-dict result from run_conversation (salvage #9437)

    merged to main

    files: cron/scheduler.py, scripts/release.py

7 PRs closed without merging

From the close comments: done elsewhere 3 · merged via another change 1 · stale or abandoned 1 · superseded by another PR 1 · other 1

  • #9437 fix(cron): guard against non-dict result from run_conversation · superseded by another PR → #14490
  • #9498 fix(cron): handle non-dict return from run_conversation in scheduler · stale or abandoned
  • #9503 fix(cron): guard against non-dict conversation results · merged via another change → 22afa06, #14490, #9437, #9433
  • #55821 fix(agent): chat()/main() raise KeyError('final_response') on run_conversation error paths · done elsewhere → 053424c
  • #55880 fix(agent): handle missing final_response on error paths · other
Show 2 more
  • #55891 fix: AIAgent.chat() and main() return empty string instead of raising KeyError on run_conversation error/exhaustion paths · done elsewhere → 053424c
  • #55989 fix(agent): use .get() for final_response to prevent KeyError (#55822) · done elsewhere → 053424c
Closed issues · 2
  • Closed#9433Cron scheduler crash: 'int' object has no attribute 'get' when agent.run_conversation returns non-dict
  • Closed#55822AIAgent.chat() and main() raise KeyError('final_response') on run_conversation error/exhaustion paths
How this cluster was grouped
  • Link evidence (partly structural links): some members are connected by structural evidence (shared changed files, or a closing/superseded reference); the rest are joined by an automated relevance judgement over their text.
  • Members outside that structural core may belong to a different underlying problem.
  • Pairwise link density 0.19: the share of item pairs that carry a link, counting a structural link in full and a relevance-only link at 0.36. 1.00 means every pair is linked.

Pick up a Lab task

Check whether a fix covers the open issues here, with your own agent. Bring back evidence for maintainers.

Open the Lab

At a glance

Subsystem
agent
Merged PRs
#14490
Closed issues
2
Attempts
7 PRs closed without merging
Fix link checked
23 Apr 2026. This confirmation is old and may be out of date (a revert or reopen would not have invalidated it here); re-verify.

For your agent

The same facts, typed.