Skip to content

v0.22.3

Choose a tag to compare

@github-actions github-actions released this 04 Jun 20:29

v0.22.3 — Tag-residue overflow fix, leaner internal agents, and log privacy

A focused patch: a community fix for runaway tag-marker corruption, Magic Context's own background agents no longer carry the user-facing context machinery, and dreamer logs stop printing absolute project paths.

What's Fixed

  • Runaway §N§ tag markers no longer corrupt chat history (#97). When the model mimicked Magic Context's §N§ tag notation in its own output, the persistence-boundary cleanup stripped the bare § character but left the digits behind — so §40827§ became 40827, which then accumulated across turns (40827 40827 40827 …) and could eventually blow up the prompt into a context overflow. Persisted assistant text now removes whole §N§ pairs (digits and all), and tag-only "ghost" messages left over after a tool drop are pruned instead of lingering as empty parts. Thanks to @Zireael for the fix.

  • Dreamer logs no longer print absolute project paths. The dreamer, dream-timer, and git-commit log lines printed the full project directory (e.g. dir=/Users/<you>/Work/<client-project>), which carried your username and project name — and those lines flow into doctor --issue reports. They now log only the opaque project identity (git:<sha> / dir:<hash>), which still uniquely correlates a run for debugging without exposing anything sensitive.

What's Changed

  • Magic Context's own background agents now bypass the Magic Context pipeline. The historian, dreamer, sidekick, and memory-migration sessions are short-lived helpers with their own fixed instructions — but they were still being handed the full ## Magic Context guidance block and run through the message transform (tagging, heuristic drops) like a normal session. That was wasted tokens and a second, contradictory identity on top of their real one. These internal sessions are now fully exempted from both the system-prompt injection and the message transform. No effect on your own sessions or on regular subagents.

Upgrade

npx @cortexkit/magic-context@latest doctor --force

If OpenCode still loads a cached older plugin after upgrading, --force clears the cached install so the new version takes effect on next launch.