Skip to content

v1.6.0 — 256k Auto-Compaction Watermark Context Bar & ↻N Session Compaction Badge

Choose a tag to compare

@github-actions github-actions released this 11 Nov 23:35
· 42 commits to main since this release

✨ What's New in v1.6.0 / v1.6.0 更新亮点

1. Compaction-Watermark-Scaled Context Bar (256k) & ↻N Badge / 对齐 256k 自动会话压缩水位线进度条与 ↻N 计数徽章

  • Why / 背景: On 1.0M Gemini models, Antigravity CLI triggers CHECKPOINT ("Conversation compacted") auto-compaction around ~256k active prompt tokens, resetting active tokens back to ~27k. Scaling the context bar against 1.0M caused it to oscillate forever between 2.6% ↔ 24.5% in green without warning before compaction.
  • New Default (display.contextScale = "compaction"):
    • Scales the context progress bar, percentage, and warning (60%) / critical (85%) colors directly against the 256k auto-compaction watermark (automatically falling back to 1.0M if active tokens bypass auto-compaction).
    • Tracks incremental CHECKPOINT steps in transcript.jsonl (TranscriptCursor v2 self-healing upgrade) and displays ↻N (cN in ascii glyph mode; amber highlight at ↻3+):
      • zh-Hans: ├─ 上下文 ████████▓··· 73.4% (188k/256k · ↻5) · ⚡ 98% 缓存
      • en: ├─ Ctx ████████▓··· 73.4% (188k/256k · ↻5) · ⚡ 98% Cache
  • Configurable Scale (display.contextScale): Switch anytime via agy-hud set display.contextScale=window to display the raw 1.0M ceiling while retaining the ↻N badge (17.9% (188k/1.0M · ↻5)).
  • preview --last & report Fidelity: Persists compactionCount and lastCompactionTokens in last-snapshot.json and exports deterministic regression cases in agy-hud report.

2. CLI Reliability Fix / 可靠性修复

  • AGY_HUD_DISABLE=1 Pipe Drain: Drains piped statusLine JSON (<= 150 ms) when AGY_HUD_DISABLE=1 is set (matching AGY_HUD_NESTED=1), preventing parent EPIPE (BrokenPipe) races on fast Linux static musl startups.

📦 Upgrade / 一键升级

Inside agy CLI:

/agy-hud:hud-update

Or from terminal:

~/.gemini/antigravity-cli/agy-hud/bin/agy-hud update