fix(agents): run Antigravity unattended in worktrees
Merged
KI
19h ago+140+140+012345678901234567890123456789-26-26-01234567890123456789
Summary
Antigravity (agy) could not finish a task unattended in a Paradev workspace. Two things stopped it:
- Trust dialog in every new workspace. agy does not carry a trusted main checkout's trust over to its worktrees, and the host only pre-trusted session folders.
- Silent stall on every shell command. The default launch was
agy --mode accept-edits, which asks before each command. agy has no hook for approval prompts, so the workspace kept showing "working" while the agent waited.
Changes
- Default launch is now
agy --dangerously-skip-permissions, the same posture as Claude, Codex and Grok. A saved config still on the earlier default args moves to the new ones on the nextagentConfigs.list; a config with any other edit is left alone. - When agy already trusts a project's main checkout, the host adds the worktree to agy's
trustedWorkspacesbefore launch. An untrusted main checkout still gets the dialog. - Mobile icon for Antigravity.
terminal-scripts.mdxnames Antigravity among the agents that default to bypass flags.
Verification
Dev desktop over CDP, agy 1.5.14, same scripted run on main and on this branch: fresh worktree of a trusted repo, prompt "create hello.txt, run sleep 5 && ls, reply done".
| 25 s | 105 s | |
|---|---|---|
main | trust dialog | approval prompt, status "working", no file in the worktree |
| branch | done, Stop received | done |
Also on the branch: resume by conversation id, the saved config migrating on boot, and an untrusted main checkout still showing the trust dialog with agy's settings unchanged.
Not verified: the icon in the mobile app.
Chat support through agy acp is a separate PR.
Before and after, with screenshots: https://app.superset.sh/page/antigravity-in-a-paradev-workspace-before-and-afte-kn8oam