Skip to content

v0.5.2

Choose a tag to compare

@github-actions github-actions released this 03 Apr 16:34
· 3 commits to master since this release

v0.5.2

New Features

  • TUI Sidebar — Live context breakdown bar in OpenCode's terminal UI showing token usage split across System Prompt, Compartments, Facts, Memories, and Conversation. Includes historian status, memory counts, dreamer last run, and pending queue count. Updates after every message.
  • TUI Commands/ctx-status, /ctx-flush, and /ctx-aug work directly in TUI mode via dialogs and toasts.
  • Doctor CLIbunx @cortexkit/opencode-magic-context doctor auto-detects and fixes configuration issues: verifies plugin registration, checks for conflicts (compaction, DCP, OMO hooks), ensures TUI sidebar is configured, and adds the plugin entry to opencode.json if missing.
  • Startup Conflict Detection — On startup, the plugin checks for compaction/DCP/OMO conflicts and warns the active session with a fix suggestion.
  • Auto tui.json Setup — Server plugin automatically adds the TUI plugin entry to tui.json on startup and notifies the user to restart.
  • JSON Schema — Published magic-context.schema.json for editor autocomplete and validation. Setup wizard adds $schema automatically.

Improvements

  • ctx_search message filter — Message history results now exclude messages still in the live context (not yet compartmentalized), reducing noise from content the agent can already see.
  • Comment-preserving config edits — CLI config writes (setup, doctor) now use comment-json to preserve user comments through read-modify-write cycles.
  • Nudge anchor reset — Rolling nudge positions properly reset after queue execution so they don't drift to unreachable token counts.
  • Status dialog/ctx-status in TUI shows full categorized progress bar with per-model config resolution for thresholds and TTL.

Bug Fixes

  • Fixed enabled schema default from false to true (zero-config installs no longer silently disabled the plugin).
  • Fixed protected_tags config range from 1-20 to 1-100.
  • Fixed TUI crash when installed from npm — conflict-fixer.ts no longer imports comment-json (npm dep unavailable in TUI's raw-source runtime).
  • Fixed doctor issue counting and config filename display.

Documentation

  • README: Added TUI Sidebar section, Startup Conflict Detection section, JSON Schema tip, dream_runs and compression_depth storage tables.
  • CONFIGURATION.md: Added JSON Schema and Doctor sections, fixed enabled default and protected_tags range.
Sidebar New Status Dialog
image image