Skip to content

v1.3.289

Choose a tag to compare

@topcheer topcheer released this 22 Nov 03:42
· 104 commits to main since this release
00fda5b

ggcode v1.3.289

Highlights

  • Prompt prefix-cache stability (the #5892 ten-round fix series). The dynamic system-head sections (package symbol map, dependency graph) were silently truncated by 200ms scan budgets smaller than the real full-scan cost. Every 5-minute head refresh published a different partial snapshot (package counts flipped, fan-in cycled), invalidating the LLM prompt prefix cache every cycle - with ~200k-token conversations a full-cache miss as often as every 5 minutes. Root cause: both scan budgets raised to 2s (rounds 12/13); six earlier hardening PRs surfaced every silent truncation entrance into the stable-fallback path. #5390 CI race round 2 also fixed: ledger lock now owner-checked (kill -0 liveness before stale-break) and git forks moved out of the critical section - the release-CI test failure loop is gone.
  • Verified by provider-reported cache hits. Post-fix instrumentation (opt-in via ~/.ggcode/ctx-sample) shows consecutive turns at hit_ratio=1.0 with cache_read ≈ previous turn's full input. Cache misses dropped from every-5-min to effectively never.
  • WebUI: teammate activity streams into the subagent panel.
  • Provider: genai upgraded to v1.79.1 with APIVersion pinned to v1beta.

Fixes and improvements

  • fix(agent): stop dual-writing the system head from UpdateSystemPrompt (#5892)
  • fix(context): prefix drift pinpointing instrumentation - opt-in anchor-gated JSONL sink
  • fix(scripts): #5390 CI race round 2 - owner-checked lock breaking + git forks out of critical section
  • fix(swarm): archive direct-delivered task results - teammate_results no longer misattributes stale outputs
  • fix(agent): perceive user interjections mid-tool via progress-side checkpoints (#5842)
  • fix(tui): Ctrl+L new-session switch re-binds the swarm session instead of panicking (#5872)
  • fix(tui): sidebar task tracker no longer hides the Swarm Teams section (#5874)
  • fix(debug): ring buffer returns most-recent entries + three noise-reduction passes
  • feat(tui): update-loop saturation probe for accumulated freeze diagnosis
  • perf(regex): lazy domain-grouped compilation for permission/tool regex fleets (#5876)
  • perf(memory): cached compiled regexes, no per-call recompiles (#5831)

Upgrade notes

  • No config changes. Prefix-cache improvements are automatic.
  • Optional observability: touch ~/.ggcode/ctx-sample enables the per-turn cache-hit sampler; touch ~/.ggcode/prefixdrifting enables head-rewrite drift records. Both default off.

Compare

Changelog

  • fix(scripts): #5390 CI race round 2 - owner-checked lock breaking + git forks out of critical section
  • fix(agentruntime): prefix-drift round 13 - raise dep-graph budget above full-scan cost (fan-in three-state cycling)
  • fix(agentruntime): prefix-drift round 12 - raise symbol scan budget above full-scan cost (true root cause)
  • fix(agentruntime): prefix-drift round 10 - surface dirHasGoFiles probe failures (fourth entrance)
  • fix(agentruntime): prefix-drift round 8 - surface extract-stage failures in symbol map
  • fix(agentruntime): prefix-drift round 7 - surface ReadDir failures during dir collection
  • fix(agentruntime): prefix-drift round 5 - surface directory-collection truncation
  • fix(context): reset anchor-gate cache in drift pin test (CI determinism)
  • fix(agent,context): prefix-drift round 3 - session-start hook bare head, Add-path observability
  • fix(agent,runtime,context): prefix-drift round 2 - bare-head landing, symbols jitter, drift-sink rotation
  • fix(agent): stop dual-writing the system head from UpdateSystemPrompt (#5892 drift finding)
  • feat(context): prefix drift pinpointing instrumentation (#5807 follow-up)
  • docs(guide): teammate_results lifecycle reflects per-task archived result (#5890)
  • fix(swarm): archive direct-delivered task results (stale teammate_results)
  • fix(debug): ring returns most-recent entries + fourth noise pass
  • chore(debug): third ring-noise pass - truncate command echoes in agent logs
  • chore(debug): second ring-noise pass - qq/ctx/agentruntime/calibrator/mcp
  • fix(provider): pin genai APIVersion to v1beta; re-upgrade genai to v1.79.1
  • deps-weekly: echo-plugin submodule dependency refresh (PR rework)
  • fix(debug): cut ring-buffer noise from speculate and usage probes
  • feat(tui): add update-loop saturation probe for accumulated freeze diagnosis
  • feat(webui): stream teammate activity into the WebUI subagent panel
  • feat(config): add 'etunnel' clear branch to the config tool Delete
  • perf(regex): lazy domain-grouped compilation for permission/tool regex fleets (#5876)
  • fix(tui): sidebar task tracker must not hide the Swarm Teams section (#5874)
  • fix(tui): Ctrl+L new-session switch must re-bind, not panic, the swarm session (#5872)
  • fix(agent): perceive user interjections mid-tool via progress-side checkpoints (#5842)
  • perf(memory): cache compiled regexes, stop per-call recompiles (#5831)
  • deps: revert google.golang.org/genai to v1.77.0 (CI linux red, suspect BaseURL behavior change)
  • deps: bump direct deps 2026-11-21