Repository navigation
fix(acp): support native mid-turn steering in Antigravity CLI and Devin - #1438
Open
Adam-Dalloul wants to merge 1 commit into
Open
Adam-Dalloul wants to merge 1 commit into
Adam-Dalloul wants to merge 1 commit into
Conversation
Rebase spacering-net#1287 onto v0.52.0 (main), resolve custom-agent provisional steer retraction in acp_transcript, and gate automated personal-agent and work-task callers on immediate steer confirmation. Co-authored-by: moncha3 <83458082+moncha3@users.noreply.github.com> Co-authored-by: xintaofei <xintaofei@users.noreply.github.com>
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.
Support native mid-turn steering for Antigravity CLI (
agy acp>= 1.5.0) and Devin (cognition.ai/midTurnPrompts), continuing and rebasing #1287 ontov0.52.0(main) and resolving the open review item from #1287.Background
Google added concurrent mid-turn prompt support to
agy acpin 1.5.0 (bundled inv0.52.0at 1.5.25), and Devin advertisescognition.ai/midTurnPrompts. Neither uses the_session/steeringextension; both accept another standard ACPsession/promptwhile a turn is running.#1287 (by @moncha3, with review polish commit
ba49dd87cby @xintaofei) implemented this approach cleanly, had one remaining open blocker (provisional custom-transcript steers for customagy acpregistrations), and accumulated merge conflicts afterv0.52.0changes toconnection.rs,session_state.rs,parsers/antigravity.rs, and the newpersonal_agent/work_taskguidance callers.What this PR includes
Rebase of fix(acp): support native steering in Devin and Antigravity CLI #1287 onto
main(v0.52.0), preserving all behavior froma6abfb911..ba49dd87c:SessionState.native_steering_available: boolwithnative_steering: Option<NativeSteering>(SessionSteeringvsMidTurnPrompt(Devin | AntigravityCli)), keepingnative_steering_available: boolon the serialized snapshot.src-tauri/src/acp/mid_turn_prompts.rsto coordinate concurrentsession/promptRPCs, wait for Devin'scognition.ai/clientMessageIdecho, optimistically emitFeedbackStatus::Sentfor Antigravity CLI and settle onFeedbackConsumed/FeedbackFailed, retry Antigravity follow-ups refused while a prior cancel unwinds, and drain in-flight mid-turn receipts after Stop.v0.52.0's Kimi Code busy-turn resend,CancelTurn/StopWorkhandling,expect_turns_completedstale-steer guard,PromptReceiptsettlement, and Antigravity background wake /parent_taskparsing alongside fix(acp): support native steering in Devin and Antigravity CLI #1287'suser_input.mediainline-image reload.FeedbackNotesDisplay,useSessionFeedback,AcpConnectionsProvider, andConversationTabViewforsent/failednote settlement and retry with original attachment blocks.Resolution of the fix(acp): support native steering in Devin and Antigravity CLI #1287 review blocker (custom
agy acptranscript settlement):EntryKind::SteerRejectedand optionalTranscriptEntry.steer_id("sid", omitted on ordinary prompts and confirmed steers) insrc-tauri/src/acp_transcript.rs.MidTurnAdapter::AntigravityCli,Submission::publishrecords custom-agent steers provisionally viarecord_provisional_steer(no-op for built-inAgentType::Antigravityand any agent with its own store) so accepted steers stay in their exact chronological position ahead of the reply frames they trigger.MidTurnPrompts::settleorMidTurnPrompts::drain_cancelled,record_steer_rejectedappends a boundary tombstone ({"id": "<steer_id>"}).parse_transcriptdrops both the tombstone and its matching provisional prompt on read (with zero extra allocations when no tombstone is present), so a rejected steer never leaves a phantom user turn or splits the reloaded reply.Receipt::Submittederrors even whennote_idis absent so a rejected concurrent prompt cannot overwritelast_response.Safe alignment with
v0.52.0automated guidance callers (personal_agentandwork_task):NativeSteering::confirms_on_send(self) -> bool(trueforSessionSteeringandMidTurnAdapter::Devin,falseforMidTurnAdapter::AntigravityCli).personal_agent/engine.rs,personal_agent/guide.rs, andwork_task/engine/guide.rsrequire synchronous confirmation before marking a message delivered and have no deferredFeedbackFailedretry strip, so they gate onconfirms_on_send()(letting Claude Code, Codex, and Devin steer natively while keeping Antigravity CLI on the existing next-turn path instead of misclassifyingFeedbackStatus::Sentor double-sending). Interactive conversation steering usesnative_steering.is_some()and works natively for Antigravity CLI and Devin.Verification
pnpm eslinton all touched files (0 warnings/errors),pnpm prettier --check(clean),pnpm browser:agent:check(up to date), scopedtsc --noEmitacross all 7 modified frontend files (0 errors), andpnpm vitest run(311/311passed acrossfeedback-notes-display.test.tsx,use-session-feedback.test.ts, andacp-connections-context.test.tsx).cargo clippy --no-default-features --features server-bin --bin codeg-server --lib -- -D warnings(0 warnings) and321/321targeted unit tests passing acrossacp_transcript,acp::mid_turn_prompts,acp::feedback,acp::manager,acp::connection,parsers::antigravity,parsers::acp_native,personal_agent, andwork_task(including new testsrejected_provisional_steer_is_dropped_while_accepted_steer_stays_in_order,custom_antigravity_retracts_rejected_steer_from_transcript_and_keeps_accepted_one, andconfirms_on_send_distinguishes_early_receipt_from_deferred_settlement).Credits: built directly on #1287 by @moncha3 and @xintaofei's review commit
ba49dd87c.