Skip to content

Commit a7c5597

Browse files
committed
release notes: v0.21.8
1 parent 56c74cd commit a7c5597

1 file changed

Lines changed: 29 additions & 0 deletions

File tree

.alfonso/release-notes/v0.21.8.md

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
# v0.21.8 — See how much work Magic Context is doing for you
2+
3+
## What's New
4+
5+
- **Total tokens metric, per session.** The TUI sidebar and the dashboard's session Meta tab now show a "Total tokens" number: the cumulative prompt size Magic Context has processed for this session over its lifetime, summed across every turn. It's the simplest way to see how much aggregate context Magic Context has been managing without having to read the live percentage on every turn.
6+
7+
- **Per-historian-run cost visibility in the dashboard.** The dashboard Session Viewer has a new **Historian** tab that lists every historian, compressor, recomp, dreamer, sidekick, and user-memory-review invocation that ran for this session, with the model and token usage for each. No more guessing how much background work the plugin is doing for you — every child-session compaction call is now individually attributable. Dreamer cards in the Dreamer page also surface per-task token totals.
8+
9+
- **TUI sidebar context bar fills the actual sidebar width.** Previously the breakdown bar was hard-pinned at 24 characters, leaving empty space on wide sidebars and clipping on narrow ones. The bar now resizes itself proportionally to whatever width the sidebar is rendered at.
10+
11+
## What's Fixed
12+
13+
- **Work-metrics on every transform pass, not just execute passes.** The new lifetime Total-tokens metric was initially gated on the same internal trigger as the actual work-doing passes — which meant low-pressure sessions sitting below their execute threshold would show 0 forever, even after many turns. The metric is a pure database read and write with no impact on context bytes, so it now updates on every pass and reflects real cumulative work immediately.
14+
15+
## Under the hood
16+
17+
The plugin now records every Magic Context child-session invocation (historian, compressor, recomp, dreamer, sidekick, user-memory-review, plus their Pi equivalents) into a new `subagent_invocations` table in the Magic Context database, along with their token usage and model. This is what powers the new Historian tab and Dreamer cost columns, and is the foundation for upcoming work on per-session cost attribution and benchmarking.
18+
19+
Schema additions (migrations v20 and v21) are strictly additive — no existing data is rewritten, and downgrading to an older Magic Context version simply leaves the new columns/table unread.
20+
21+
## Upgrade
22+
23+
```bash
24+
npx @cortexkit/magic-context@latest doctor --force
25+
```
26+
27+
The `--force` flag clears OpenCode's cached plugin install so v0.21.8 takes effect on next launch.
28+
29+
No config or behavior changes — strictly additive release.

0 commit comments

Comments
 (0)