Skip to content
This repository was archived by the owner on Apr 27, 2026. It is now read-only.

v0.0.31

Latest

Choose a tag to compare

@Chronostasys Chronostasys released this 26 Apr 09:20
· 2 commits to master since this release
3cbbbab

What's New

✨ Features

  • Context Usage Bar — segmented progress bar in CLI status line showing prompt/budget ratio, compression threshold marker, output token reservation, color-coded fill level (#523)
  • Hooks System — full lifecycle hooks replacing old ToolHook/HookChain: 17 event types, 4 handler types (command/http/callback/mcp_tool), three-layer config loading (user→project→local), deny>defer>ask>allow decision priority (#502)

🏗️ Architecture

  • TokenTracker / CompressPipeline / PersistenceBridge — extracted from monolithic engine_run.go, each with focused unit tests (#523)
  • Unified setting key registry — AllSettingDefs in channel/setting_keys.go is sole source of truth; no more scattered scope checks (#523)
  • RPC dispatch with generics — deduplicated callback registration in serverapp (#518)

🔧 Bug Fixes

  • Token count double-counting — EstimateTotal() was adding completionTokens (output tokens) to context size, causing premature masking; now uses promptTokens only (#523)
  • Token state persistence — SetTokenState/GetTokenState saves last Run API counts to DB per-tenant, survives restart (#523)
  • Tier model scope — vanguard_model/balance_model/swift_model moved from global to user-scoped so they persist to DB (#523)
  • SubAgent model resolution — tier model not found in subscriptions now falls back to parent agent LLM (#523)
  • CLI first-run setup loop — creates subscription when none exists instead of infinite loop (#521)
  • Remote TUI model display — shows model name in status bar on startup (#519)
  • sandbox_mode DB override — no longer overwritten on startup; runtime reinit preserved (#520)
  • structuredProgress.TokenUsage — populated from restored DB values so context bar shows data immediately (#522)
  • Linux installer — mode selection works when piped (#516)

📊 Stats

160 files changed, +15,489 / -6,502 lines across 8 PRs

Full Changelog: v0.0.30...v0.0.31

What's Changed

  • feat(cli): context usage progress bar with token state persistence by @Chronostasys in #523

Full Changelog: v0.0.30...v0.0.31