Repository navigation
Steer direct-inbox DMs into running Antigravity ACP turns during active goals - #5232
Merged
Merged
Conversation
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.
Summary
Fix direct-inbox mid-turn steering (
_steer_direct_inbox) onAntigravityAcpBackendthreads with an active persistent goal (src/agent_comms/execution/input_drain.py:1523).Root Cause
InputDrain._steer_direct_inbox(input_drain.py:1523) gated steering onowner.goal.accepts_following_handoff()alongsidedrain_direct_inbox(:1567). Becausedrain_direct_inboxalso returns early when a goal is active (so it does not race the goal scheduler with aRoutedOriginalInput), EVERY incoming human DM or waking bus message to anantigravity_acpthread running a persistent goal was silently skipped:DirectDeliveredInput.deliver_direct(even thoughDeliveredFollowingInputinheritsDirectInputandBusDeliveredInput.source()already mintsAcceptedGoalPermission(active_goal_id)),OwnedTurn.prepare_native(owned_turn.py:476),harness_deliveriesread receipt — leaving Android/Qt DMs permanently stuck onSentwhile the persistent goal kept looping turn after turn.Fix
or owner.goal.accepts_following_handoff()from_steer_direct_inbox(src/agent_comms/execution/input_drain.py:1523), keeping the guard only on idledrain_direct_inbox(:1567) where spawning a separateRoutedOriginalInputwould conflict with the active goal scheduler.test_antigravity_acp_steers_dm_during_active_persistent_goalintests/test_antigravity_acp_backend.pyproving a DM sent during an active persistent goal steers into the live ACP turn, records"1 read", and emits zero diagnostics.Verification
tests/test_antigravity_acp_backend.py: 10 passed in 8.83s.REL_IMPORTS=0.