Background processes killed during agent lifecycle cleanup
Cluster 41225 · agent. Data as of
2 open items. Fix merged in #122841 on 25 Sep 2026. Check it covers your case.
The short answer
- Known?
- Yes. 7 related items grouped here, 1 issue already closed.
- Fix event
- A fix was merged to main in PR #122841. Check it covers your case. No release data is tracked.
- Tracker
- The maintainers' tracker marks this
partially resolved, deciding PR #122841. That is separate from the fix event. - Still open
- 1 issue and 1 PR.
Next step: read #122841, then check whether your report is the one still open.
Read #122841Pick up a Lab taskThese issues and PRs concern background/terminal processes being killed by SIGTERM when the agent lifecycle's release() or cleanup phase runs. At least one fix addresses preserving opted-in jobs when turns are abandoned.
Open issues1
- Issue#41235Background processes killed by agent lifecycle cleanup (release())
Open PRs1
- PR#123061fix(gateway): classify /new and eviction turn reaps as lifecycle so persist_on_release jobs survive
Fixes on record
-
#122841 fix(processes): persist_on_release keeps background jobs alive across lifecycle kill sweeps
files:
agent/client_lifecycle.py,gateway/run_shutdown.py,hermes_cli/cli_commands_mixin.py,tests/gateway/test_api_server_active_work_drain.py,tests/gateway/test_gateway_shutdown.py,tests/gateway/test_shutdown_kill_off_loop.py,tests/tools/test_code_execution.py,tests/tools/test_code_execution_file_rpc.py,tests/tools/test_persist_on_release.py,tools/code_execution_rpc.py,tools/process_registry.py,tools/terminal_tool.py,tools/terminal_tool_background.py,tui_gateway/methods_slash.py,tui_gateway/methods_tools.py
3 PRs closed without merging
From the close comments: PR volume cleanup 1 · superseded by another PR 1 · other 1
- #83121 fix(terminal): preserve opted-in jobs on abandoned turns · PR volume cleanup
-
#109846 tools: persist_on_release flag survives agent lifecycle cleanup (fixes #41225) · other →
#82995,#41217 -
#122957 feat(tools): persist_on_release flag so background processes survive lifecycle cleanup · superseded by another PR →
ec5c9c7,#109846
Closed issues · 1
- Closed#41225Background processes killed by SIGTERM during agent lifecycle release()
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.26: 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
- #122841
- Closed issues
- 1
- Attempts
- 3 PRs closed without merging
- Fix link checked
- 25 Sep 2026