A running workflow previously could only be abandoned by interrupting
the whole run. A new subagent.stop command flows through the durable
command path: the decider validates the subagent is active and carries a
native task ref, records the user's intent as a Stop requested activity
on the subagent row, and queues a process-bound subagent.stop effect.
The effect worker resolves the session and calls the adapter's task stop
— for Claude, the SDK runtime's undocumented stopTask, read behind the
same single-cast convention as workflow_progress.
The provider's own task_notification remains the only terminalizer; the
command records intent, it does not fake a terminal state. A released
session is treated as already stopped (nothing can still be running
under it), while a runtime without task-level stop fails the effect
loudly. Stop effects are process-bound, so recovery cancels them after
process loss like the other session-scoped effects.
The web run card shows Stop only while the coordinator is active, wired
through thread environment commands as thread:stop-subagent.
Co-Authored-By: Claude Fable 5 <[email protected]>