NousResearch/hermes-agent

API-server worker shutdown and state.db lifecycle fixes

Cluster 116535. Data as of

Nothing open on GitHub. Fix merged in #116962 on 20 Sep 2026. Check it covers your case.

The short answer

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

These issues and pull requests address a shutdown bug where the API-server worker's lifetime is not properly tracked when its handler is cancelled, leaving state.db open. The changes transfer turn ownership and track worker lifetime to ensure clean shutdown.

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.

  • #116962 fix(gateway): shutdown keeps state.db open under an API-server worker whose handler was cancelled (#116535, salvage #116540)

    merged to main

    files: gateway/platforms/api_server.py, gateway/platforms/api_server_runs.py, gateway/run_shutdown.py, tests/gateway/test_api_server_active_work_drain.py, tests/gateway/test_shutdown_cache_cleanup.py, tests/gateway/test_shutdown_executor_quiesce.py

2 PRs closed without merging

From the close comments: done elsewhere 1 · merged via another change 1

  • #116540 fix(shutdown): track API-server worker lifetime past handler cancellation · merged via another change → 92b4f19, #116962, #116535, #116540
  • #116547 fix(shutdown): transfer API-server turn ownership from handler to worker thread · done elsewhere → 92b4f19, #116962, #116535, #116540
Closed issues · 1
  • Closed#116535fix(shutdown): track API-server worker lifetime past handler cancellation
How this cluster was grouped
  • Link evidence (structural links throughout): every member is connected by structural evidence: shared changed files, or a closing/superseded reference.
  • Pairwise link density 0.50: 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

Merged PRs
#116962
Closed issues
1
Attempts
2 PRs closed without merging
Fix link checked
20 Sep 2026

For your agent

The same facts, typed.