[Bug]: Antigravity 1.5.0+ fails text generation with 'Antigravity wrote files during text generation'

Aperta Adatta ai principianti
#36,169 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
2/5
Tempo stimato
1-3 ore
Idoneità per principianti
66/100
Tipo di issue
Bug
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Stack tecnologico
typescript
Ambito
backend

Direzione di ricerca

Inizia in apps/server/src/provider/acp/AntigravityAcpSupport.ts da antigravityWritesRunWorkflowSkill, il cui limite superiore di versione esclude 1.5.0. Poi verifica come viene impostato sessionMeta.disabledTools per la sessione di generazione del testo in AntigravityTextGeneration.runJson, e cosa accetta hasOnlyRuntimeDirectories(cwd) dopo l'esecuzione. È completato quando la generazione del testo riesce su Antigravity 1.5.0 senza l'errore wrote-files, e l'intervallo di versioni o la gestione di disabledTools copre quella release.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

Before submitting
  • 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
  1. Use or update the managed or external Antigravity ACP runtime to version 1.5.0 (or newer).
  2. In Settings → Models → Text Generation, select Antigravity (e.g. gemini-3.8-flash).
  3. Start a new thread, or trigger thread title regeneration, commit message generation, or PR content generation.
  4. 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:

function antigravityWritesRunWorkflowSkill(version: string | null | undefined): boolean {
  const parsed = parseAntigravityVersion(version);
  return (
    parsed !== undefined &&
    compareVersions(parsed, [1, 4, 2]) >= 0 &&
    compareVersions(parsed, [1, 4, 5]) <= 0
  );
}

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.

Either drop the upper bound:

function antigravityWritesRunWorkflowSkill(version: string | null | undefined): boolean {
  const parsed = parseAntigravityVersion(version);
  return parsed !== undefined && compareVersions(parsed, [1, 4, 2]) >= 0;
}

or have the text-generation helper session always pass disabledTools: ["run_workflow"] regardless of version.

Related: #29876 (same guard, different cause: empty runtime skill directories on 1.4.1, fixed by #27191).

Workaround

Pin Antigravity ACP back to 1.4.5, or set the text generation model to another provider.

Lingua principale
TypeScript
Stelle
24.8k
Fork
6.4k
Merge medio
59m
PR unite (30g)
418

Preparare l'ambiente

Apri in Codespaces

Avvia il container di sviluppo del progetto nel browser, con il tuo account GitHub.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di pingdotgg/t3code

Tutte le issue di pingdotgg/t3code

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.