Skip to content

Resume parent tasks with background agent results - #955

Merged
AnthonyRonning merged 1 commit into
MaplePrivacyLabs:masterfrom
benthecarman:fix/issue-944
Sep 16, 2026
Merged

AnthonyRonning merged 1 commit into
MaplePrivacyLabs:masterfrom
benthecarman:fix/issue-944

Conversation

@benthecarman

Copy link
Copy Markdown
Contributor

Background Codex agents could finish after their parent turn ended without waking it. Deliver bounded results directly to the parent and resume idle tasks automatically, for both external agents and built-in subagents. Parents can use the result without a mandatory agent_status or load call.

Preserve task model and permission settings, account isolation, cancellation, and ACP ownership. Handle completions during startup and shutdown of a turn, retain optional retrieval, and keep delegated output out of user permission authority.

Closes #944.

Validation

  • Component just ci passes after cleanup: formatting, Clippy across configured features, warning-denied builds, and 808 passing tests (2 ignored).
  • Native app checks in a logged-in private desktop verified both external Codex and built-in subagent completions wake an idle parent and deliver the actual child result without another user prompt or model retrieval call.
  • Regression tests cover active/idle delivery, turn-boundary races, cancellation, stale accounts, ACP ownership, bounded output, and permission context.

Existing limitation

Goose buffers built-in background tool-approval requests until a non-peek load attaches their permission flow. A child awaiting approval still needs that flow before it can finish. This is documented; the built-in completion smoke used a child requiring no tools. The separate approval limitation is not fixed here.

Background agents could finish after their parent turn ended without
resuming the task. Deliver bounded results directly to active or idle
parents so they can continue without fetching the result again.

Preserve account and surface ownership, cancellation, and task settings.
Cover completion races and retain optional result retrieval.
@AnthonyRonning
AnthonyRonning merged commit a0286c0 into MaplePrivacyLabs:master Sep 16, 2026
22 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Background external agent finishing after the model's turn ends never starts the next turn

2 participants