Repository navigation
fix(runtime): hold an agy composer whose draft reads like an edit mode - #39296
Conversation
A draft such as `dark mode: fix the toggle`, or agy's plan placeholder typed verbatim, matches the composer caret row's edit-mode alternative. agy hides `? for shortcuts` while the composer holds text, so composer_ready refused, but composer_ready_custom_status_line (#38930) took agy's own `[mode · ]model · effort` footer for a custom status row and answered idle. Orca would then paste into the operator's unsent text. Status rows may no longer be agy's built-in footer. The captured agy 1.2.7 screen of the plan placeholder typed as a draft comes from #23402. Split from #23402. Co-authored-by: seonghobae <[email protected]>
|
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
Split from #23402. Thanks to @seonghobae, who recorded the agy screen this fix is built on. They are credited as co-author.
ELI5
Say you have unsent text in an Antigravity (
agy) pane and it happens to read like an edit-mode label, for exampledark mode: fix the toggle. Orca could take that pane to be idle and paste a prompt onto the end of your text. Now it waits.What Changed
composer_ready_custom_status_lineinagent-state-rules/antigravity.jsonno longer accepts agy's own[mode · ]model · effortfooter as one of the status rows below the composer.^>\s+[a-z][a-z-]*\s+mode:\s) also matched a typed draft shaped like a mode label. When the composer holds text, agy hides? for shortcuts, socomposer_readycorrectly refused. The custom-statusLine rule from Read an idle Antigravity composer above a custom statusLine #38930 then read the remaining footer row (plan · Gemini 3.7 Flash · low) as a custom status row and answeredidle.composer_not_shown(hold).This adds one fixture from #23402: agy 1.2.7 with the plan placeholder typed verbatim as a draft. It also adds one test file that replays the fixture and checks a plain
dark mode: …draft.Why
This is the only screen in #23402 that main's rules engine gets wrong. I replayed all five of that PR's captures, plus every agy capture already on main, through the engine.
idle.hold.idle, and should not be.The PR's other Antigravity changes (a hand-written screen-readiness path) are already covered by the rules engine (#24348, #24222, #38930, #38939), so they are not ported.
Linked Issue
N/A. This is a maintainer split of #23402.
Visual Proof
N/A. There is no UI change, and the replayed PTY capture is the evidence.
Testing
antigravity-*capture through the rules before and after the change. The only verdict that changed is the draft, fromidletohold. The idle custom-statusLine rows from the [Bug]: Antigravity worker readiness never settles when agy has a custom statusLine #34707 reporter (· Gemini · idle,· capture) still readidle, and the mid-turn spinner still readshold.pnpm check:changedpasses (macOS).Risk
Level: Low.
The rule now refuses only rows shaped like
[mode · ]<text> · low|medium|high. Rows are matched trimmed, so a custom statusLine row that happens to end in· highlooks the same as agy's footer. Such a pane holds until OSC 7501 reports idle, which is how every custom-statusLine pane behaved before #38930. A mode-shaped draft above a real custom statusLine still readsidle: without colour, the screen cannot tell it apart from the placeholder. This is a plain revert.Agent skill upstream boundary