Skip to content

[Bug]: Antigravity: a failed context-summarization checkpoint permanently bricks the thread #30414

Open

Description

@dbolser

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. Have a long Antigravity thread (Agent Platform / Vertex), long enough to trigger context summarization.
  2. Let the credentials fail transiently, so the next turn fails. In my case user ADC expired with invalid_rapt.
  3. Fix the credentials. New threads now work.
  4. Send another message in the original thread.

Expected behavior

The failed summarization checkpoint is retried with the now-valid credentials, and the turn proceeds.

Actual behavior

Every new turn fails immediately with the old, stored error:

agent executor error: context summarization: checkpoint step 841 failed: error executing cascade step: CORTEX_STEP_TYPE_CHECKPOINT: doRequest: error sending request: Post "https://aiplatform.googleapis.com/v1beta1/projects/<project>/locations/global/publishers/google/models/gemini-4-argon:streamGenerateContent?alt=sse": auth: "invalid_grant" "reauth related error (invalid_rapt)"

From the runtime's conversation DB (antigravity-acp/conversations/<id>.db, table steps):

idx step_type status time (UTC) note
840 14 3 19:27:00 user turn
841 23 (checkpoint) 7 (failed) 19:27:00 real auth failure
842 17 3 19:27:01 error message
843 14 3 20:09:45 user turn after the fix (19:40)
844 17 3 20:09:46 same "checkpoint step 841 failed" error

The runtime that handled step 843 started at 20:09, after the fix, and fresh threads on the same runtime succeed. So the error is replayed from the stored failed step 841, not caused by a new auth attempt. The thread is permanently stuck.

This may be upstream in the Antigravity runtime, not in T3, but T3 has no recovery path for it: no retry, and no "re-summarize" or "fork from before step N" option.

Impact

Major degradation or frequent failure

Version or commit

T3 Code 0.1.6 (Linux AppImage), managed Antigravity ACP runtime release 2e37012c…, agy 1.4.12

Environment

Linux Mint 22.3 (kernel 6.8), desktop app, Antigravity with authMethod: "agent-platform"

Related: #28870 (a different error that permanently breaks an Antigravity thread).

Activity

  1. Timmiethy commented on Nov 29, 2026

    @Timmiethy

    Hit the exact same issue, triggered by a transient HTTP 429 quota limit during compaction rather than expired auth, plus a few additional details and a working local recovery workaround:

    Trigger & symptom

    • During a long thread, CORTEX_STEP_TYPE_CHECKPOINT (step_type = 23) hit HTTP 429:
      error executing cascade step: CORTEX_STEP_TYPE_CHECKPOINT: Error 429, Message: Individual quota reached. Please upgrade your subscription to increase your limits. Resets in 1h4m30s
    • That step was persisted with status = 7 in antigravity-acp/conversations/<session-id>.db (steps table).
    • After quota reset (other Antigravity threads on the same machine worked fine), every follow-up turn in this thread still failed in ~300 ms replaying the frozen "Your limit will reset in 1 hour, 4 minutes." error and appending another step_type = 17 (Agent execution terminated due to error) row.

    Provider-switch note (T3 Code side)

    • Switching the thread to another provider (Codex) and switching back to Antigravity did not recover it — T3 Code still resumed the same wedged Antigravity sessionId via session/load.
    • Having a T3-side recovery option (e.g., reset/discard the cached native session ID and start a fresh session with a provider context handoff when a resumed session repeatedly fails on the same checkpoint error) would give users a way out even if the underlying bug is in the Antigravity ACP runtime.

    Working manual workaround

    1. Stop the idle agy_acp_server.par process holding that thread's session in memory.
    2. Back up conversations/<session-id>.db.
    3. Remove the failed checkpoint step and the failed retry rows after it:
      DELETE FROM steps WHERE idx >= <failed_checkpoint_idx>;
      DELETE FROM executor_metadata WHERE idx >= <first_retry_exec_idx>;
      PRAGMA wal_checkpoint(TRUNCATE);
    4. Send a follow-up message in T3 Code — session/load loads cleanly, re-runs CORTEX_STEP_TYPE_CHECKPOINT with valid quota, and the thread resumes normally without losing prior history.

    Environment

    • T3 Code v0.1.8-nightly.20261104.4192 (WSL Linux)
    • Managed Antigravity ACP runtime 1.4.5 (gemini-4-neon)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions