[Bug]: Antigravity adapter claims manual compaction support although ACP 1.3.0 treats /compact as model input
维护者通常 1 天内回复
还没有人认领这个 Issue。
评估
- 难度
- 2/5
- 预计耗时
- 1-3 小时
- 新手友好度
- 75/100
- Issue 类型
- 缺陷
- 描述清晰度
- 描述清楚
- 活跃度
- 活跃
- 技术栈
- typescript
调研方向
从 apps/server/src/orchestration-v2/Adapters/AntigravityAdapterV2.ts 中的 supportsCompaction 设置开始,然后追踪共享 ACP 适配器如何处理压缩,并查看现有的提供方会话测试。添加回归测试,证明 Antigravity 不会将普通的提示完成报告为压缩成功;当不支持的功能被禁用且测试验证了该行为时,即告完成。
由索引模型根据 Issue 内容生成。
描述
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 — Antigravity adapter's manual-compaction capability.
Summary
Antigravity's CLI has /compact, but the Antigravity ACP 1.3.0 runtime used by T3 does not handle it as a native compaction command. T3's Antigravity adapter nevertheless sets supportsCompaction: true.
The missing Compact context button is consistent with the runtime's advertised capabilities. Adding compact to the command catalog would expose an action that does not perform native compaction. The bug is the adapter's unsupported compaction capability and the resulting possibility of reporting successful compaction for an ordinary model response.
Steps to reproduce
The runtime behavior was verified directly over ACP in a disposable workspace and profile, using a copied credential file and no existing conversations:
- Start the managed Antigravity ACP 1.3.0 executable.
- Send
initialize,authenticatewithoauth-personal, andsession/newwith an empty MCP server list. - Send a
session/promptcontaining synthetic records and a marker to remember; wait for completion and recordusage_update. - Send a standalone
/compacttext block throughsession/prompt. - Inspect the response and subsequent usage updates.
Expected behavior
T3 should expose manual compaction only when its provider runtime can perform it. Unsupported compaction requests should fail clearly, without being sent to the model or recorded as successful compaction. The context-meter action should remain unavailable until Antigravity exposes a working manual-compaction path through ACP.
Actual behavior and runtime evidence
In the isolated ACP test:
- Agent version:
1.3.0. - Advertised commands:
planandlogout. - Initial prompt: assistant replied
READY; context usage was 15,393 / 1,048,576 tokens. /compact: assistant generated an ordinary summary of the synthetic records; context usage increased to 15,697 tokens. No compaction update was emitted.- Follow-up asking for the marker succeeded; context usage increased again to 15,881 tokens.
Inspection of the Python source bundled in the installed ACP runtime confirms that its command parser recognizes the advertised built-in plan command, with logout handled separately. /compact is passed through as ordinary model input. No manual-compaction handler was found in that source.
T3 source diagnosis
AntigravityAdapterV2setssupportsCompaction: true.- The shared ACP adapter consequently exposes
compactThread, forwarding/compactas a prompt. - Its turn-finalization path emits a completed
Context compacteditem when that prompt completes successfully and the flavor enables compaction. Ordinary prompt completion does not prove native compaction occurred. - The UI visibility check requires
compactin the advertised command catalog, which correctly keeps the button hidden for this runtime.
The false-success path above is traced from T3 source; the live reproduction exercised the native ACP runtime directly, not the complete T3 UI path.
Suggested fix
Disable Antigravity's unsupported manual-compaction capability and add regression coverage at the provider-session boundary. Document the ACP limitation. Do not inject a synthetic compact catalog entry unless a working native compaction path is implemented and verified.
Impact
Minor bug or occasional failure — T3 can treat an ordinary assistant summary as successful context compaction even though context usage has not decreased.
Version or commit
Source investigated: main at 069e63b11758. Installed T3 Code version: 0.1.1-nightly.20261020.3386.
Environment
- Antigravity ACP: 1.3.0
- OS: macOS 27.0.1
Related issues
- #15291 concerns missing Antigravity context usage and is closed.
- #16663 concerns ACP registry agents advertising native compaction while their adapter cannot dispatch it; this is a different capability mismatch.
Workaround
Start a new thread when a fresh context is needed. Do not rely on /compact sent through Antigravity ACP 1.3.0 to reduce context usage.
- 主要语言
- TypeScript
- 星标
- 24.8k
- 派生
- 6.4k
- 平均合并
- 10 小时 8 分钟
- 30 天内合并 PR
- 323
环境准备
在浏览器里用你自己的 GitHub 账号启动这个项目的开发容器。
- 没有 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
pingdotgg/t3code 的其他 Issue
-
难度 2/5 1-3 小时 新手友好度 72/100
维护者通常 1 天内回复
-
bug needs-triage
难度 2/5 1-3 小时 新手友好度 62/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 72/100
维护者通常 1 天内回复
-
GitLab errors hide glab's stderr behind a generic "GitLab CLI command failed"可能已有人在做 关联的 PR 仍在进行中或已合并。 未关闭
难度 2/5 1-3 小时 新手友好度 73/100
维护者通常 1 天内回复
-
needs more info via-triage
难度 2/5 1-3 小时 新手友好度 64/100
pingdotgg/t3code#22054 · 3 条评论 ·
维护者通常 1 天内回复
相似的 Issue
-
check:passed streams:edit
难度 2/5 1-3 小时 新手友好度 68/100
维护者通常 1 天内回复
-
area:mcp bug has repro platform:vscode regression
难度 2/5 1-3 小时 新手友好度 68/100
anthropics/claude-code#103970 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 78/100
维护者通常 1 天内回复
-
bug
难度 2/5 1-3 小时 新手友好度 84/100
维护者通常 1 天内回复
-
sdk-typescript: unquoted COPY globs in shell form are silently dropped from the image build context未关闭bug javascript
难度 2/5 1-3 小时 新手友好度 78/100
维护者通常 1 天内回复