From 7654d0d7fb0a4639e5de0721c953bddf5640a132 Mon Sep 17 00:00:00 2001 From: Dave Date: Wed, 25 Feb 2026 14:10:54 +0000 Subject: [PATCH] story-kit: create 185_bug_stale_completed_qa_agent_not_reaped_from_agent_list --- ...ted_qa_agent_not_reaped_from_agent_list.md | 28 +++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 .story_kit/work/1_upcoming/185_bug_stale_completed_qa_agent_not_reaped_from_agent_list.md diff --git a/.story_kit/work/1_upcoming/185_bug_stale_completed_qa_agent_not_reaped_from_agent_list.md b/.story_kit/work/1_upcoming/185_bug_stale_completed_qa_agent_not_reaped_from_agent_list.md new file mode 100644 index 0000000..8b1dcfb --- /dev/null +++ b/.story_kit/work/1_upcoming/185_bug_stale_completed_qa_agent_not_reaped_from_agent_list.md @@ -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