You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Bug]: Antigravity 1.5.0+ fails text generation with 'Antigravity wrote files during text generation' #36169
I searched existing issues and did not find a duplicate.
I included enough detail to reproduce or investigate the problem.
Area
apps/server
Steps to reproduce
Use or update the managed or external Antigravity ACP runtime to version 1.5.0 (or newer).
In Settings → Models → Text Generation, select Antigravity (e.g. gemini-3.8-flash).
Start a new thread, or trigger thread title regeneration, commit message generation, or PR content generation.
The title never generates and stays on the default.
Expected behavior
Text generation succeeds and returns the generated title or commit message without tripping the workspace hygiene guard.
Actual behavior
TextGeneration fails with:
TextGenerationError: Text generation failed in generateThreadTitle: Antigravity wrote files during text generation.
Impact
Major degradation or frequent failure
Version or commit
0.1.10-nightly.20261113.4630 (code path unchanged on main)
Environment
Linux x86_64, Antigravity ACP 1.5.0
Logs or stack traces
{"type":"effect-span","name":"TextGeneration.generateThreadTitle","exit":{"_tag":"Failure","cause":"TextGenerationError: Text generation failed in generateThreadTitle: Antigravity wrote files during text generation.\n at AntigravityTextGeneration.runJson\n at AntigravityTextGeneration.generateThreadTitle\n at TextGeneration.generate\n at TextGeneration.generateThreadTitle"}}
Root cause and suggested fix
In apps/server/src/provider/acp/AntigravityAcpSupport.ts:
The upper bound compareVersions(parsed, [1, 4, 5]) <= 0 assumes later releases stop creating skills/system/run-workflow/SKILL.md. Antigravity 1.5.0 still writes that file at startup unless run_workflow is disabled, so 1.5.0 no longer receives disabledTools: ["run_workflow"] in sessionMeta.
AntigravityTextGeneration.runJson runs in a scoped temp dir (t3-antigravity-text-*). The post-run guard hasOnlyRuntimeDirectories(cwd) only accepts .agents, .agents/skills, .gemini, and .gemini/skills, so the new skills/ directory is treated as a model write and the request is rejected.
Activity