github mksglu/context-mode v1.0.54

6 hours ago

v1.0.54

Major stability release with 12 bug fixes, 6 merged PRs, and 1 new platform adapter. Focus: compaction safety, upgrade reliability, cross-platform compatibility, and contributor experience.

Bug Fixes

Compaction & Session Safety

  • fix(openclaw): stop owning compaction to preserve thinking blocksownsCompaction: false prevents Anthropic thinking/redacted_thinking block corruption during OpenClaw compaction. Fixes #191.
  • fix: defer cache dir cleanup to avoid breaking active sessions — Old plugin version directories are no longer deleted mid-session. Age-gated lazy cleanup (>1h) runs on next session start instead. Fixes #181.
  • fix(hooks): self-heal updates ALL hook types, not just PreToolUse — After marketplace auto-update, stale paths in settings.json are now corrected for SessionStart, PostToolUse, PreCompact, and UserPromptSubmit — not just PreToolUse. Fixes #187.
  • fix(hooks): clean stale hook paths from settings during upgradeconfigureAllHooks() now removes stale context-mode entries before registering fresh ones. PR #188 by @s-naveenkumar-001.

Upgrade Reliability

  • fix: replace execSync with execFileSync in upgrade path — All 12 execSync calls replaced with execFileSync across cli.ts and server.ts inline fallback. Bypasses /bin/sh which stalls in Claude Code's sandboxed execution context. Also eliminates shell injection surface. Fixes #185.
  • fix(executor): use execFileSync for rustc compilation — Paths with spaces (e.g., Windows GitHub Actions Runner temp dirs) no longer break Rust compilation. Originally from PR #193 by @escapeboy.

Cross-Platform

  • fix: dot-prefix temp dirs to prevent VS Code auto-open — Changed temp directory prefix from ctx-mode- to .ctx-mode- so VS Code file watchers ignore them. Fixes #186.
  • fix: defer AGENTS.md write to session_startwriteRoutingInstructions moved from plugin init (gateway cwd) to session_start (real workspace path) in OpenClaw adapter. Includes path traversal prevention via regex + containment check. PR #183 by @DrakoTrogdor.
  • fix: use process.execPath and probe ~/.bun/bin for snap/PATH-limited envs — Snap Node.js and non-PATH bun installs now detected correctly. getRuntimeSummary() fixed to handle full bun paths. PR #190 by @luispabon.

New Platform

  • feat: add KiloCode platform adapter — Extends OpenCodeAdapter for both OpenCode and KiloCode platforms. Detects via KILO/KILO_PID env vars and ~/.config/kilo/ directory. Includes routing instructions, tool-naming, and 9 tests. PR #167 by @mikij.

Improvements

  • dx: add cross-batch search tip to batch_execute output — Each batch result now shows a tip directing the LLM to use ctx_search for cross-source queries.
  • fix(store): scope batch_execute to exact source labelctx_batch_execute no longer leaks stale content from previous batches via LIKE partial matching. Uses exact sources.label = ? matching. Adds sourceMatchMode type union, idx_sources_label index, and formatBatchQueryResults() extraction. PR #182 by @rich-jojo.
  • docs: add Windows notes for Codex AGENTS.md — PowerShell cmdlets, MSYS2 paths, absolute path requirements, and quoting guidance. PR #192 by @Minghou-Lei.
  • test: isolate HOME during vitest runs — Tests no longer pollute contributor's real home directory with ~/.<client>/context-mode/ folders. Per-suite setup-home.ts with dual-layer isolation. PR #180 by @rich-jojo.
  • docs: move Privacy & Architecture section after Try It — README now leads with the problem statement and install instructions.
  • ci: add GitHub Sponsors funding configuration

Contributors

Thanks to everyone who contributed to this release:

Stats

  • 46 files changed, 1280 insertions, 404 deletions
  • 1277 tests passing across 40 test files
  • 12 platform adapters supported (Claude Code, Gemini CLI, Cursor, VS Code Copilot, OpenCode, KiloCode, OpenClaw, Pi, Codex, Kiro, Zed, Antigravity)

Don't miss a new context-mode release

NewReleases is sending notifications on new releases.