Skip to content
Source
Sign inSign up
pingdotgg/t3code

fix(antigravity): reject unsupported manual compaction #22217

Mergedarhammahajan(GitHub profile, opens in a new tab)merged 6 commits intomain fromrefs/pull/22217/headmerged by maria-rcks View on GitHub

Problem

Investigation for #22205 found a false compaction capability in the Antigravity adapter.

Antigravity ACP 1.3.0 treats /compact as ordinary model input. A live test returned an assistant summary, while context usage increased from 15,393 to 15,697 tokens. The adapter currently declares compaction support and can record successful compaction after an ordinary reply.

Change

Set supportsCompaction to false. Antigravity provider sessions no longer expose compactThread, so standalone /compact requests receive the existing unsupported-compaction error.

Replace the capability-flag assertion with a regression test covering the provider-session interface. Update the provider guide to explain the difference between CLI and ACP support.

The missing context-meter button reported in #22205 remains correct for ACP 1.3.0. A working button requires native compaction support from the ACP runtime.

Scope and approval

Small, focused bug fix under the contribution-policy exception for obvious defects. The change corrects an unsupported provider capability, with matching regression coverage and documentation.

Verification

  • 66 focused tests passed across adapter behavior, provider metadata, web availability checks, mobile command suggestions, and shared ACP handling.
  • Server typecheck, targeted lint, formatting, and diff checks passed.
  • A live ACP probe used a disposable profile and workspace. Existing conversations remained untouched.
  • The live probe exercised ACP directly; the complete T3 UI path was not tested.

Fix implemented by 6.1 Sol inside T3 Code and audited by Claude Opus 5.5.

    1. github-actions[bot](GitHub profile, opens in a new tab) added labelsvouch:unvouched

    2. Approvability

      Verdict: Needs Human Approval

      Macroscope's review found this PR requires human approval — This focused fix stops Antigravity ACP sessions from exposing manual compaction and adds regression coverage and documentation. Because it changes the default product behavior for Antigravity users, the change warrants human review.

      You can add or adjust custom eligibility rules. [Learn more](https://docs.macroscope.com/approvability#example-custom-eligibility-rules).
    3. coderabbitai[bot](GitHub profile, opens in a new tab)commented
      Review in Change Stack →

      No actionable comments were generated in the recent review.

      Recent review info
      Run configuration
      Commits

      Reviewing files that changed from the base of the PR and between 7e6af9114bfa5b908182fbb797231a69c00747e5 and 2be72d61af54712e81da4c70c82e260caca423bc.

      Files selected for processing: 3
      • apps/server/src/orchestration-v2/Adapters/AntigravityAdapterV2.test.ts
      • apps/server/src/orchestration-v2/Adapters/AntigravityAdapterV2.ts
      • docs/user/providers-antigravity.md
      Files skipped from review as they are similar to previous changes: 1
      • docs/user/providers-antigravity.md

      Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 6 remain after this review.

      Walkthrough

      The Antigravity ACP adapter now reports manual compaction as unsupported. A test checks that sessions do not expose compactThread. Provider documentation describes the limitation and recommends starting a new thread for fresh context.

      Changes: Antigravity manual compaction

      Layer / File(s)Summary
      Disable and document manual compaction
      apps/server/src/orchestration-v2/Adapters/AntigravityAdapterV2.ts, apps/server/src/orchestration-v2/Adapters/AntigravityAdapterV2.test.ts, docs/user/providers-antigravity.md
      The adapter sets supportsCompaction to false. The test checks that the session does not expose compactThread. The documentation states that manual compaction is unavailable through the ACP runtime and recommends starting a new thread.
      Priority: Normal

      Estimated code review effort: 2 (Simple) | ~10 minutes

      Change: Bug fix

      Possibly related issues

      • pingdotgg/t3code#22205: The change disables Antigravity compaction and adds a session regression test for the reported behavior.
      • pingdotgg/t3code#22636: The change establishes that Antigravity ACP does not support native compaction, but does not address the issue’s handoff recovery requirement.

      Suggested reviewers: juliusmarminge

      Merge Risk: Minimal · up to 2be72

      Manual Antigravity compaction is disabled as intended. No actionable merge-blocking risk remains.

      Security architecture risk: Minimal · up to 671c6

      The change removes an unsupported operation rather than granting additional access. Unsupported compaction requests follow the existing failure path without starting a model turn. No introduced or worsened security concern was identified in the reviewed change.

      Retained concerns No architecture-level concerns identified.

      Security review details

      Security Blast Radius

      • inferred — The effective change is limited to Antigravity manual compaction. It removes a provider invocation path; it does not expand agent permissions or replace the existing permission-mode and workspace-root control wiring.

      Resilience and Maintainability Implications

      • observed — Unsupported startup interrupts event ingestion and uses the existing failed-run finalization path. The failure marks the provider thread reusable, and finalization checks the current run attempt and expected running status before committing, limiting stale concurrent updates. These mechanisms predate the capability change.
      Pre-merge checks: Passed 4
      Check nameStatusExplanation
      Title checkPassedThe title clearly and concisely describes the main change: rejecting unsupported manual compaction in the Antigravity adapter.
      Description checkPassedThe description includes all required sections. It explains the problem, the implementation, scope and approval rationale, focused verification results, limitations, and tool usage.
      Linked Issues checkPassedCheck skipped because no linked issues were found for this pull request.
      Out of Scope Changes checkPassedCheck skipped because no linked issues were found for this pull request.
      Finishing Touches
      🧪 Generate unit tests (beta)
      • Create a new PR
      • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
      Comment `@coderabbitai help` to get the list of available commands.
    4. maria-rckscommented

      Note

      Written by gpt-6.1-sol on behalf of Maria

      updated this original pr, preserving @arhammahajan's commits and intent. merged current main, resolved the stale permission-mode test conflict in favor of main, shortened the capability comment, and added the diagnostic annotation required by main's typecheck. the fix remains one capability flag, one provider-session regression test, and the provider guidance.

      verified: the regression fails with main's capability setting and passes with this change; 125 focused tests passed. blacksmith vp run check:changed passed formatting, lint, knip, graphql, both affected typechecks, and adapter tests. all 27 reported checks are green on 7e6af9114bfa5b908182fbb797231a69c00747e5; coderabbit reported no actionable findings. two independent reviewers approved that head.

      browser evidence uses the real client, server, and antigravity adapter with the existing acp fixture, with matching initial conversations. main falsely records an ordinary reply as "context compacted". the updated branch rejects /compact before sending a provider prompt. the client shows its existing generic provider-start error instead of claiming success. a normal follow-up still works.

      unverified: a live google session and native mobile/desktop clients. web, desktop, mobile, mcp, and scheduled requests share the server rejection path. @arhammahajan, native compaction support in the acp runtime remains the upstream limitation; this pr deliberately disables the unsupported operation.

      main: ordinary reply falsely marked as compacted

      updated branch: compaction rejected without a false success

      main: typing compact produces a false success

      updated branch: typing compact produces the existing provider error

    5. maria-rckscommented

      Note

      Written by gpt-6.1-sol on behalf of Maria

      Verified in a real dev environment

      checked exact head 7e6af9114bfa5b908182fbb797231a69c00747e5 on this disposable linux vm. the pr is open; its commits are by arhammahajan and maria-rcks.

      created ../main at fetched github/main (cb7e3814d7), installed dependencies with vp i, and started its real server in the background with isolated empty state (server 16733, web 8693). then checked out the exact pr head, ran vp i, and started its real server with separate state (server 13773, web 5733). drove both paired web clients using the repository's playwright and /usr/bin/google-chrome.

      added the real repository through the app. real codex gpt-6.1-sol turns returned verification-ok on both versions. on the pr, reopening the repository thread and sending a second turn returned follow-up-ok; the client subsequently showed done. installed the real antigravity 1.3.0 runtime through settings. no mocks, fixtures, demo data, or seeded conversations were used.

      27 reported ci checks are green on this head. no source changes, commits, or pushes. command transcript.

      this recording proves only the neighboring codex follow-up path. uploaded playback and seeking were checked.

      pr head: real codex follow-up returns follow-up-ok

      Not verified

      the actual antigravity compaction change remains unverified. this vm has no configured google login or antigravity api credentials. after installing the runtime, settings shows "installed · sign-in not checked" and zero models. i could not start an authenticated antigravity session, reproduce main falsely recording an ordinary /compact reply as successful compaction, or prove this head rejects compaction while preserving normal antigravity follow-ups. codex and the earlier fixture-based evidence do not establish those results.

      native desktop, ios/android, and remote/relay/tunnel paths were not exercised. the required changed-behavior verdict is unverifiable, rather than verified from ci or another provider. completing it requires an authenticated antigravity account on this environment, followed by the same /compact and normal follow-up flow on main and this head.

      antigravity 1.3.0 installed, awaiting account sign-in

    6. Note

      Written by gpt-6.1-sol on behalf of Maria

      merged current github/main into the existing contributor head without rebasing. preserved main's sign-in classification hook and tests alongside the compaction regression. pushed 2be72d61af54712e81da4c70c82e260caca423bc to the original branch. the diff remains 3 files, 48 additions and 1 deletion.

      blacksmith vp run check:changed refs/remotes/task/base passed formatting, lint, both knip passes, graphql, three package typechecks, and all 12 selected tests. two independent reviewers found no blocker or should-fix findings on this exact head. no actionable bot findings were present. ci is running on the new head.

      authenticated antigravity compaction and normal follow-up through the real client remain unverified; the existing evidence records missing google credentials. no new runtime or browser claims are made by this merge-only update.

    7. maria-rcks merged thisf5372d2

    8. maria-rcks closed this

Sign in to join this conversation.