mirror of
https://github.com/getpaseo/paseo.git
synced 2026-11-21 15:55:58 +00:00
Antigravity's ACP v1 server resolves session/prompt with end_turn while backgrounded tools (run_command, schedule) are still in_progress, then streams out-of-turn session/update notifications with no turn-start or turn-end frame when those tasks finish. Previously Paseo failed the in-progress tool row on end_turn, showed the agent idle while wakeup steps streamed in, and allowed idle runtime cleanup to stop the process. Add session.background_work to the plugin provider contract, implement session.can_stop_runtime and opt-in outOfTurnActivity tracking in the shared ACP runtime, and enable it for Antigravity under COMPAT(antigravityAcpV1OutOfTurn) until ACP v2 state_update is available. Follow-up prompts finish an active wakeup without sending session/cancel so running background work stays alive, and trailing terminal updates from explicitly canceled tools are consumed without reopening a turn.