You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
session-flow: probe how a background agent ended by a service interruption is reported (2.1.321) #17867
Claude Code v2.1.321 changed how a background agent ended by a service interruption is reported, as opposed to one ended by a user Stop (changelog intake #14843, row 8). /session-flow:orchestrate respawns or resumes interrupted agents, and its text was left unchanged because nobody has observed the new behavior. If an interruption is now reported as a user stop, or a SendMessage resume of such an agent fails, the skill's respawn guidance is wrong.
Done when
A probe on Claude Code 2.1.321 or later ends a background agent through a service interruption rather than a user Stop, and records how the agent is reported (stopped by the user or interrupted) and whether a SendMessage resume of it succeeds, with the Claude Code version.
If the observed behavior differs from what plugins/session-flow/skills/orchestrate/ says about respawning or resuming an interrupted agent, the skill text is corrected to point at the behavior; otherwise the issue records that no change is needed.
Refs #14843 (row 8, moved here when the rest of that intake shipped in #17793).
Size: Small
Complexity: Low
Uncertainty: Unknown
Flags: none
Blocked by: none
Blast radius: possibly the respawn/resume text in plugins/session-flow/skills/orchestrate/, read by anyone running /session-flow:orchestrate; the probe itself changes nothing.
Reversible: yes; revert the skill text edit.
Open questions: none
Understood: Claude Code 2.1.321 changed how a background agent ended by a service interruption is reported versus a user Stop. The request is to observe that behavior, including whether a SendMessage resume works, and to correct the orchestrate skill only if it differs. The probe needs a real service interruption on 2.1.321 or later, which an unattended run may not be able to trigger. Admission can route that step to a host run. The issue is otherwise complete. Related: the v2.1.321 changelog intake issue is listed among open issues as "Claude Code v2.1.321 changelog: 15 handoffs"; this issue refs #14843 and #17793. I found no merged PR that already covers it.
Not admitted to the issue lane: Uncertainty unknown is not one of known, knowable; its done-when asks for what an unattended lane run cannot perform: item 1 (live-cc-probe: "A probe on Claude Code 2.1.321 or later ends a background agent through a ser..."); recommended split: keep the other items here as the admissible issue and move these to a child issue for the host queue (host-run). Admission takes the issue once each of those is met, when intake triages it again (.github/actions/resolve-config/admission-rules.json).
Fixed background agents being reported as stopped by the user, and refused a resume, when a service interrupted a cloud session and nobody pressed Stop
Why no probe ran. The changelog scopes the fix to a cloud session that the service interrupted. That interruption is server side. No documented setting, error class or flag makes the harness classify a local network cut, API error, process kill or Stop as one. A process kill and a user Stop are the two cases the item excludes, and a network cut to one agent is not isolable from the rest of the session. The sub-agents page, Resume subagents covers a completed agent, a TaskStop agent and a user-stopped agent (x in /tasks or an SDK stop_task: messages refused, "told the agent was cancelled"), and says nothing about a service interruption.
Partial evidence (2026-11-21, Claude Code 2.1.330, local session). The owner killed every Claude Code process, which is a process exit and not a service interruption. On restart the harness reported a background subagent as "didn't finish before the previous session ended ... No completion record was found for it after it was re-dispatched via SendMessage in the previous session. It may have been stopped (via the UI, an SDK interrupt, or agent teardown, these leave no transcript marker), or it may have been running when the previous Claude Code process exited." A SendMessage to that agent then resumed it ("Resuming agent ...") and it continued. This shows that an agent ended by a process exit is reported as unfinished, not as user-stopped, and resumes. It does not meet done-when 1.
What the skill says now.plugins/session-flow/skills/orchestrate/SKILL.md (imperative 4) says "after an interrupt, respawn the worker instead of resuming it". context/sources.md ("Priming addendum: worker_continuation") says a user-stopped worker refuses messages, "one reason imperative 4 respawns after an interrupt under either value". Respawn is safe in every case, so the guidance is never wrong in outcome. Only its stated reason ("interrupt means user-stopped, so refused") is out of date for a service interruption in a cloud session, and for a process exit.
Closing: no change needed (session GitHub Work's decision, from the evidence).
The changed behavior applies only to cloud sessions. The owner's standing instructions keep all work out of cloud sessions, because he rotates accounts. So no session this skill drives can reach the case done-when 1 asks to observe.
Respawn is the skill's guidance, and it is correct whatever the report says. For the cases sessions here actually hit, the evidence above shows a process exit reads as unfinished and resumes.
Done-when 1 therefore guards nothing that runs here. Done-when 2's answer is "no change needed".
Reopen if this estate starts using cloud sessions.
Closed on the owner's decision, 2026-11-21, typed in session GitHub Work (verbatim): "Go with recommendations. At some point, I might use Cloud Sessions, but this probably isn't worth handling right now." Reopen if cloud sessions come into use.
Activity
github-actions commentedon Nov 21, 2026
Size: Small
Complexity: Low
Uncertainty: Unknown
Flags: none
Blocked by: none
Blast radius: possibly the respawn/resume text in plugins/session-flow/skills/orchestrate/, read by anyone running /session-flow:orchestrate; the probe itself changes nothing.
Reversible: yes; revert the skill text edit.
Open questions: none
Understood: Claude Code 2.1.321 changed how a background agent ended by a service interruption is reported versus a user Stop. The request is to observe that behavior, including whether a SendMessage resume works, and to correct the orchestrate skill only if it differs. The probe needs a real service interruption on 2.1.321 or later, which an unattended run may not be able to trigger. Admission can route that step to a host run. The issue is otherwise complete. Related: the v2.1.321 changelog intake issue is listed among open issues as "Claude Code v2.1.321 changelog: 15 handoffs"; this issue refs #14843 and #17793. I found no merged PR that already covers it.
Automated triage. A maintainer reviews it.
melodic-automation-lanes commentedon Nov 21, 2026
Not admitted to the issue lane: Uncertainty unknown is not one of known, knowable; its done-when asks for what an unattended lane run cannot perform: item 1 (live-cc-probe: "A probe on Claude Code 2.1.321 or later ends a background agent through a ser..."); recommended split: keep the other items here as the admissible issue and move these to a child issue for the host queue (
host-run). Admission takes the issue once each of those is met, when intake triages it again (.github/actions/resolve-config/admission-rules.json).kyle-sexton commentedon Nov 21, 2026
Probe status for done-when 1: not run, because no safe trigger exists on a local session. Installed Claude Code: 2.1.330.
Changelog wording (2.1.321, CHANGELOG.md):
Why no probe ran. The changelog scopes the fix to a cloud session that the service interrupted. That interruption is server side. No documented setting, error class or flag makes the harness classify a local network cut, API error, process kill or Stop as one. A process kill and a user Stop are the two cases the item excludes, and a network cut to one agent is not isolable from the rest of the session. The sub-agents page, Resume subagents covers a completed agent, a
TaskStopagent and a user-stopped agent (xin/tasksor an SDKstop_task: messages refused, "told the agent was cancelled"), and says nothing about a service interruption.Partial evidence (2026-11-21, Claude Code 2.1.330, local session). The owner killed every Claude Code process, which is a process exit and not a service interruption. On restart the harness reported a background subagent as "didn't finish before the previous session ended ... No completion record was found for it after it was re-dispatched via SendMessage in the previous session. It may have been stopped (via the UI, an SDK interrupt, or agent teardown, these leave no transcript marker), or it may have been running when the previous Claude Code process exited." A SendMessage to that agent then resumed it ("Resuming agent ...") and it continued. This shows that an agent ended by a process exit is reported as unfinished, not as user-stopped, and resumes. It does not meet done-when 1.
What the skill says now.
plugins/session-flow/skills/orchestrate/SKILL.md(imperative 4) says "after an interrupt, respawn the worker instead of resuming it".context/sources.md("Priming addendum: worker_continuation") says a user-stopped worker refuses messages, "one reason imperative 4 respawns after an interrupt under either value". Respawn is safe in every case, so the guidance is never wrong in outcome. Only its stated reason ("interrupt means user-stopped, so refused") is out of date for a service interruption in a cloud session, and for a process exit.Closing: no change needed (session GitHub Work's decision, from the evidence).
kyle-sexton commentedon Nov 21, 2026
Closed on the owner's decision, 2026-11-21, typed in session GitHub Work (verbatim): "Go with recommendations. At some point, I might use Cloud Sessions, but this probably isn't worth handling right now." Reopen if cloud sessions come into use.