story-kit: create 185_bug_stale_completed_qa_agent_not_reaped_from_agent_list
This commit is contained in:
@@ -0,0 +1,28 @@
|
|||||||
|
---
|
||||||
|
name: "Stale completed QA agent not reaped from agent list"
|
||||||
|
---
|
||||||
|
|
||||||
|
# Bug 185: Stale completed QA agent not reaped from agent list
|
||||||
|
|
||||||
|
## Description
|
||||||
|
|
||||||
|
Completed agents remain in the agent list after their Claude process has exited. The qa-2 agent for story 184 shows status "completed" with a session_id but no corresponding Claude process is running. The agent tracker should clean up completed agent entries automatically.
|
||||||
|
|
||||||
|
## How to Reproduce
|
||||||
|
|
||||||
|
1. Start a QA agent for a story (e.g. request_qa for story 184)
|
||||||
|
2. Wait for the QA agent to complete its work and exit
|
||||||
|
3. Call list_agents
|
||||||
|
|
||||||
|
## Actual Result
|
||||||
|
|
||||||
|
The completed QA agent still appears in the list_agents output with status "completed" and a stale session_id, even though no Claude process is running for it.
|
||||||
|
|
||||||
|
## Expected Result
|
||||||
|
|
||||||
|
Completed agents should be reaped from the agent list after their process exits, or at minimum cleaned up on the next list_agents call so stale entries don't accumulate.
|
||||||
|
|
||||||
|
## Acceptance Criteria
|
||||||
|
|
||||||
|
- [ ] Completed agent entries are automatically removed from the agent tracker after process exit
|
||||||
|
- [ ] list_agents does not return stale completed agents
|
||||||
Reference in New Issue
Block a user