AIAgent instance lifecycle cleanup and resource closing
Cluster 50197 · agent. Data as of
Nothing open on GitHub. Fix merged in #122925 on 25 Sep 2026. Check it covers your case.
The short answer
- Known?
- Yes. 4 related items grouped here, 1 issue already closed.
- Fix event
- A fix was merged to main in PR #122925. Check it covers your case. No release data is tracked.
- Tracker
- The maintainers' tracker marks this
resolved, deciding PR #122925. That is separate from the fix event. - Still open
- Nothing open on GitHub.
The members appear to share a theme: AIAgent instances (including one-shot agents and those in the tui-gateway) may not be consistently closed or shut down, with related fix PRs and an issue describing missing cleanup such as shutdown_memory_provider and close. Two titles are identical, and no outcome is stated here.
Open issues0
Open PRs0
Fixes on record
-
#122925 fix(agent): close one-shot AIAgents on every exit path
files:
batch_runner.py,hermes_cli/cli_commands_mixin.py,plugins/platforms/feishu/feishu_comment.py,tests/test_agent_close_lifecycle.py,tui_gateway/methods_prompt.py
2 PRs closed without merging
From the close comments: superseded by another PR 1 · other 1
Closed issues · 1
- Closed#50197Multiple AIAgent instances lack lifecycle cleanup (shutdown_memory_provider + close)
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.00means 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 LabAt a glance
- Subsystem
- agent
- Merged PRs
- #122925
- Closed issues
- 1
- Attempts
- 2 PRs closed without merging
- Fix link checked
- 25 Sep 2026