Repository navigation
Hold a background task's ACP prompt into the next turn instead of cancelling it - #5302
Merged
Merged
Conversation
…celling it #5264 bounded BackgroundTaskWaitPhase with a 180 s silence budget whose expiry sent session/cancel and failed the turn with ModelStalled. On agy, "reply, then silence while a background task runs" is how a model waits on its own pytest or NRA, so every wait over 3 min killed the task (agy: "All your subagents and background tasks have been stopped due to user force cancellation") and the failed attempt left the goal in BlockedGeneration. Live on ts-gaming: pm-pbt idle 3h53m after 08:25, pm-neuro-arch blocked since 13:09. agy takes concurrent session/prompt on a live session (AcpLivePrompt.steer) and routes frames per session, so a held-open prompt never wedges agy; it only kept Core's turn from ending. The wedge 12314 asked to remove was the thread, never the task. - TurnPhase.silence_ending: past its budget a phase picks its ending through SilenceEndings; the default stalls, BackgroundTaskWaitPhase holds. Its stall_message and stall_reason go. - AcpTurnEnding family (Settled, Held, Stalled) owns how a turn releases its live prompt and which terminal events it reports; the stall copy of the settle path goes. - AcpTurnPrompt (NoLivePrompt, AcpLivePrompt): the next turn continues a held prompt with its input as a steer, or opens one. - AcpLivePrompt keeps one read across next_frames calls, so a turn that stops reading never takes a frame with it. - POST_REPLY_STALL_SECONDS -> POST_REPLY_HOLD_SECONDS.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
#5264 bounded BackgroundTaskWaitPhase with a 180 s silence budget whose expiry
sent session/cancel and failed the turn with ModelStalled. On agy, "reply, then
silence while a background task runs" is how a model waits on its own pytest or
NRA, so every wait over 3 min killed the task (agy: "All your subagents and
background tasks have been stopped due to user force cancellation") and the
failed attempt left the goal in BlockedGeneration. Live on ts-gaming: pm-pbt
idle 3h53m after 08:25, pm-neuro-arch blocked since 13:09.
agy takes concurrent session/prompt on a live session (AcpLivePrompt.steer) and
routes frames per session, so a held-open prompt never wedges agy; it only kept
Core's turn from ending. The wedge 12314 asked to remove was the thread, never
the task.
SilenceEndings; the default stalls, BackgroundTaskWaitPhase holds. Its
stall_message and stall_reason go.
live prompt and which terminal events it reports; the stall copy of the
settle path goes.
prompt with its input as a steer, or opens one.
reading never takes a frame with it.
Verification: tests/test_antigravity_acp_backend.py 19/19 (incl. the 7 steering/turn tests); 19 files naming turn_phase/close_idle 311 passed, 1 pre-existing red on main (test_pi_rpc_nominal.py:74 CompactionPhase.pauses_input_clock); repository guards 50/50 (test_goal_runtime_annotations.py fails collection on main: Thread.wake_context deleted by #5298).