Completed RLM worker remains active in agent status APIs #1873
johnrichardrinehart
started this conversation in
Bug reports
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Summary
A completed resident RLM worker can remain
runningin agent roster and observation APIs when its live session retains stale streaming or pending-tool state.I observed one worker with these conflicting results:
rlm.list_subagents()reportedcompleted.agent_message.list_agents()reportedrunning.agent_observereportedstatus="tool"andisStreaming=true.Cause
The RLM lifecycle is persisted in
rlm-subagent.json. Passive worker summaries use that record, but resident summaries derive status from live session fields. Stale live fields can therefore override the terminal lifecycle in user-facing results.Proposed behavior
For an RLM child, the persisted terminal lifecycle must override live activity fields when summaries are created. The resident session can remain available for transcript inspection and later messages, but late messages must not reactivate its reported lifecycle state.
Tested patch
I prepared a focused patch on
johnrichardrinehart:fix/stale-worker-statusat commit19ec6fd68.The patch reconciles resident summaries in
agent_messageandagent_observewith the persisted lifecycle record. It extends the retained-completed-subagent regression test with stale active, streaming, and unfinished-action state.Validation passed:
npm run checkpackages/coding-agent/test/daemon-mode.test.ts: 199 tests passedThe initial pull request was closed automatically because I am not a vouched contributor: #1872. I am posting the issue here as required by
CONTRIBUTING.md.All reactions