v1.0.132
Highlights
Stats now measure real data flow. ctx_fetch_and_index payload sizes now populate bytes_avoided end-to-end, so the "Where you are now" bar shows your actual savings instead of an estimate. Indexer attributes chunks to their source session via FK (chunks.session_id / chunks.event_id), so per-session and per-conversation breakdowns are accurate.
Linux Node 20 SIGSEGV class closed. Hard install gate: engines.node >= 22.5.0, scripts/postinstall.mjs exits non-zero on Linux + Node < 22.5 + no Bun, ctx_doctor emits a clear FAIL line. Resolves the "first tool call crashes" reports (#564 and prior class).
ctx_purge schema now serializes correctly to MCP clients. Dropped .refine() from the input schema (MCP SDK's normalizeObjectSchema returns undefined for ZodEffects, leaving clients with empty properties). Added a class-wide guard test asserting every registered tool has non-empty inputSchema.properties. Closes #563.
VS Code Copilot + JetBrains Copilot configs now use the global binary. Replaced npx -y context-mode (scaffold residue from March) with context-mode. The ephemeral form was bypassing the user's npm install -g context-mode, producing ABI-mismatched better-sqlite3 builds. Closes #567.
Anti-pattern docs centralized. "Capture vs filter" principle now lives in one place (skills/context-mode/references/anti-patterns.md §8) with a single reference from SKILL.md. Closes #569.
Two community PRs landed:
- #571 by @Kishan08 — Windows Visual Studio 2026+ year detection via
vswhere -property displayName(was hardcoded year map). Follow-up patch in this release: vswhere subprocess timeout 5s → 15s, year regex caps atcurrentYear+5. - #568 by @omercnet — process lifecycle idle self-shutdown + cross-adapter sibling sweep generalization. Follow-up patch in this release: documented
CONTEXT_MODE_IDLE_TIMEOUT_MSandCONTEXT_MODE_STARTUP_SWEEPenv vars (default 900000ms / 1), added realpath guard totests/lifecycle-e2e-real-binary.test.ts.
Tests
3242+ pass (full suite, baseline preserved). 8 pre-existing OpenCode failures unchanged from v1.0.122.
Compatibility
15 adapters, 3 OS. engines.node bump to >=22.5.0 (Linux strictly, others soft-warn via doctor). package.json schema unchanged. Behaviorally compatible with v1.0.131 — stats bar fills in (was empty for sessions without measurement).
Upgrade
npm install -g context-mode@latest
# Restart Claude Code (Cmd+Q + reopen) to pick up new MCP server.