github mksglu/context-mode v1.0.26

latest releases: v1.0.33, v1.0.32, v1.0.31...
8 hours ago

New Platforms

  • Kiro IDE (#137): Full hook support — PreToolUse routing, PostToolUse capture, SessionStart/PreCompact continuity, and UserPromptSubmit. Kiro joins as the 10th supported platform.

  • Zed Editor: MCP-only adapter with routing instructions. Zed uses stdio-based MCP — no hooks needed.

  • Pi Coding Agent: Native gateway extension with shared session modules. Hooks into Pi's tool_call, before_compaction, after_compaction, and before_prompt_build lifecycle events.

Search Engine Improvements

  • Reciprocal Rank Fusion: Replaced cascading fallback strategy with RRF — merges FTS5 BM25 and semantic signals into a single ranked list. More relevant results, fewer missed matches.

  • Query term proximity reranking: Multi-term queries now boost results where terms appear close together. "session continuity" ranks passages with adjacent terms higher.

  • BM25 title weight 2x → 5x: Headings and titles now weighted 5x in BM25 scoring, improving precision for navigational queries.

  • contentType filter: New parameter on ctx_search — filter results by content type (e.g., source:"session-events").

Bug Fixes

  • ABI-aware native binary caching (#148): Users with mise/asdf running concurrent sessions with different Node.js versions no longer crash with NODE_MODULE_VERSION mismatch. Per-ABI binaries are cached side-by-side and swapped at startup (~10ms). First encounter per ABI triggers a one-time rebuild.

  • UTF-8 BOM in hook stdin (#139): Windows editors and tools that prepend a BOM to stdin no longer crash hook JSON parsing. All hooks now strip BOM before JSON.parse.

  • Worktree/SDK project directory resolution: process.cwd() is now captured before process.chdir() in start.mjs, fixing incorrect project directory detection in worktree and SDK contexts.

  • Session loader path matching: Replaced fragile endsWith() with path.basename() for session file detection, fixing false matches on paths containing "session" in parent directories.

OpenClaw

  • Install UX (#147): New npm run install:openclaw command with preflight guards (checks state dir exists, gateway binary present). Handles build, native deps, extension registration, and gateway restart in one step. Thanks @ipedro!

  • E2E test suite (#136): Synthetic E2E tests for OpenClaw with CI workflow. Tests plugin registration, hook lifecycle, and session isolation without a live gateway. Thanks @ipedro!

  • Env var passthrough & portability: Install script respects $OPENCLAW_STATE_DIR, echo replaced with printf for POSIX shell compatibility.

Infrastructure

  • Version sync: Pi extension package.json now included in npm version lifecycle hook — all 6 manifests stay in sync.

  • Packaging guard tests: CI now validates that native-abi.mjs is in package.json files array, that start.mjs imports it, and that the module exports correctly. Prevents marketplace install breakage.

  • Test suite: 1172 tests across 39 files, 3 OS (Ubuntu, macOS, Windows). All green.


Full diff: v1.0.25...v1.0.26

Contributors: @ipedro (#136, #147)

Don't miss a new context-mode release

NewReleases is sending notifications on new releases.