-
Notifications
You must be signed in to change notification settings - Fork 3.4k
v0.8.68: define parent-stop semantics for detached background agents #4359
Copy link
Copy link
Closed
Labels
agent-readyBody is self-sufficient per docs/AGENT_RUNNER.md; a remote agent may claim itBody is self-sufficient per docs/AGENT_RUNNER.md; a remote agent may claim itbugSomething isn't workingSomething isn't workingdocumentationImprovements or additions to documentationImprovements or additions to documentationenhancementNew feature or requestNew feature or requestquestionFurther information is requestedFurther information is requestedreliabilityReliability, flaky behavior, retries, fallbacks, and robustnessReliability, flaky behavior, retries, fallbacks, and robustnesssubagentsSub-agent orchestration, lifecycle, and completion handlingSub-agent orchestration, lifecycle, and completion handlingtuiTerminal UI behavior, rendering, or interactionTerminal UI behavior, rendering, or interactionv0.8.68Targeting v0.8.68Targeting v0.8.68
Milestone
Description
Metadata
Metadata
Assignees
Labels
agent-readyBody is self-sufficient per docs/AGENT_RUNNER.md; a remote agent may claim itBody is self-sufficient per docs/AGENT_RUNNER.md; a remote agent may claim itbugSomething isn't workingSomething isn't workingdocumentationImprovements or additions to documentationImprovements or additions to documentationenhancementNew feature or requestNew feature or requestquestionFurther information is requestedFurther information is requestedreliabilityReliability, flaky behavior, retries, fallbacks, and robustnessReliability, flaky behavior, retries, fallbacks, and robustnesssubagentsSub-agent orchestration, lifecycle, and completion handlingSub-agent orchestration, lifecycle, and completion handlingtuiTerminal UI behavior, rendering, or interactionTerminal UI behavior, rendering, or interactionv0.8.68Targeting v0.8.68Targeting v0.8.68
Projects
StatusShow more project fields
Done
Problem
Foreground child agents inherit parent cancellation, while detached background agents intentionally outlive the foreground turn. The user-facing contract for Esc/stop is therefore ambiguous: continue, cancel all, or ask. That ambiguity can make a successful detach look like a cancellation leak, or leave work running contrary to user intent.
Decision required
Define one explicit parent-stop policy for detached background agents:
Whichever policy is selected must be reflected consistently in the TUI, stream receipts, child status, and session restoration.
Likely files
crates/tui/src/tools/subagent/mod.rsAcceptance criteria
Related