Skip to content

fix(antigravity): Attach prompt to -p flag - #69

Merged
4ndreello merged 3 commits into
mainfrom
fix/antigravity-print-flag-order
Sep 8, 2026
Merged

fix(antigravity): Attach prompt to -p flag#69
4ndreello merged 3 commits into
mainfrom
fix/antigravity-print-flag-order

Conversation

@4ndreello

@4ndreello 4ndreello commented Sep 8, 2026

Copy link
Copy Markdown
Owner

Fix the two antigravity spawn failures behind every failed reviewer session

Commit 1: agy -p takes the prompt as its value, so a bare -p up front
swallowed --output-format as the prompt and left the real prompt as a
stray positional (-p took "--output-format" as its prompt). The prompt
now goes attached as -p=<prompt> at the end of the argv, which also
stays unambiguous when the prompt starts with a dash.

Commit 2: agy models separates id and display name with a single TAB,
but the parser split on two-or-more spaces, so every catalog id carried
the display name along. Those dirty ids landed in role bindings and agy
rejected them at spawn (invalid model selection). The parser now splits
on TAB first, falls back to column spacing, and drops the banner line
that also leaked into the catalog.

Verified with the exact argv the driver builds, run against the real agy:
plain prompt, leading-dash prompt, and resume plus model plus effort all
return result SUCCESS. Scoped unit tests pass
(tests/antigravity-driver.test.ts, 18 tests). codedeck models antigravity --refresh now lists clean ids, and the reviewer/auditor
bindings save as bare ids.

Needs a careful look at whether -p= or a trailing separate -p value
reads better for future flag additions.

agy -p takes the prompt as its value, so a bare -p up front swallowed
--output-format as the prompt and left the real prompt as a stray
positional. Every antigravity session failed at spawn with '-p took
--output-format as its prompt'. Pass -p=<prompt> last instead, which
also stays unambiguous when the prompt starts with a dash.
agy models separates id and display name with a single TAB, but the
parser split on two-or-more spaces, so every catalog id carried the
display name along (id\tname). Those dirty ids were stored in role
bindings and agy rejected them at spawn with 'invalid model selection'.
Split on TAB first, fall back to column spacing, and drop the banner
line that also leaked into the catalog.
Review feedback on PR #69: the dash-leading prompt and the spinner
banner branch had verification only via throwaway probes. Pin both in
the scoped suite.
@sonarqubecloud

sonarqubecloud Bot commented Sep 8, 2026

Copy link
Copy Markdown

@4ndreello
4ndreello marked this pull request as ready for review September 8, 2026 18:55
@4ndreello
4ndreello merged commit a2676eb into main Sep 8, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant