v1.3.129
v1.3.129
Released: 2026-07-06
Agent Improvements
- Progressive context clearing tiers — Three-tier context management: tool-result clearing at 75% threshold, tool-use input clearing for large arguments, and LLM-based compaction at 88%. Purely mechanical clearing operations run without LLM calls, saving tokens cost-effectively.
- Semantic repetition detection — New
repetitionTrackerdetects failed edit clusters on the same file (3/5/7 failure escalation) and read-edit-fail cycles. Prevents infinite near-miss loops that exact-match loop detection misses. - Deterministic overseer — Trajectory analysis agent that monitors for tool spam, read-only stalls, file-stuck patterns, error escalation, and task drift. Injects targeted guidance messages when pathological patterns are detected.
- Async auto-verify — Build verification now runs asynchronously instead of blocking the agent loop, allowing continued work during compilation.
- Makefile-aware build detection — Auto-verify now detects build systems (Makefile, npm scripts, cargo, etc.) and suggests appropriate verification commands.
- Incomplete todo check — Agent checks for incomplete todos before finishing and prompts to complete them.
TUI & UX
- Model panel: context window and max tokens editing — Users can now directly edit context window and max tokens values in the model panel with K/M/G suffix support (e.g.,
256k,1M,2G). - Model panel field overwrite fix — Fixed a bug where editing context window would silently drop the value due to premature field clearing.
- Model panel focus management — Input blur on panel open, focus restoration on close for smoother UX.
Tools
- mobile_device multi-platform listing —
devicesaction now lists both iOS and Android whenplatform=auto, instead of only showing one platform. - mobile_device multi-device support — Transport ID targeting for operations on specific Android devices, with stale cache cleanup.
- read_file line count — Reports total line count in truncation messages and large-file errors.
- glob result sorting — Results are now sorted alphabetically and capped at 500 matches.
- run_command line-aware truncation — Output truncation preserves line boundaries.
- edit_file fuzzy diagnostics — Shows nearest-match suggestions when exact text matching fails.
- web_fetch content-aware extraction — Improved HTML-to-text extraction.
Data Safety
- Session index fsync —
saveIndex()now uses Create+Write+Sync+Close+Rename pattern (matchingSave()) for crash durability. Previously usedWriteFilewithout fsync, risking empty/partial index on crash. - Session Save fsync — Added
f.Sync()before atomic rename inSave()for crash durability. - Temp image cleanup —
cleanupOldTempImages()removes files older than 24h from$TMPDIR/ggcode-images/on TUI startup, preventing unbounded disk usage. - Tunnel image persistence — Mobile-sent images are now persisted to temp directory with proper
sourcePath, fixing a bug where the agent couldn't locate image files.
Provider & Integration
- Anthropic prompt caching — System prompt and tools are now cached using Anthropic's prompt caching feature, reducing latency and token costs for Anthropic models.
- A2A push notification timeout — Added 10s timeout to push notification HTTP requests to prevent hanging.
- Session-scoped model/vendor persistence — Model and vendor changes are now saved per-session instead of globally, matching the existing permission mode pattern.
CI & Testing
- OOM prevention — CI and verify-ci now use
-p 1sequential execution and memory limits to prevent OOM kills. - Integration test tagging — Heavy external-dependency tests tagged with
integration_localto exclude from default CI runs. - LSP test resilience — Tests now skip gracefully when external language servers fail to initialize.
- safego.Go fixes — Replaced bare goroutines with
safego.Go()for panic recovery.
Mobile
- Image sending — Mobile app can now send images to the desktop agent. Images are properly persisted to temp directory for agent access.