github mksglu/context-mode v1.0.133

latest release: v1.0.134
5 hours ago

v1.0.133

Critical hotfix for v1.0.132. Three bugs surfaced after release: CI couldn't rebuild bundles (so npm got stale builds), ctx_fetch_and_index was throwing in the sandbox, and the per-conversation stats bar wasn't reading the new measurement data.

Fixes

ctx_fetch_and_index now works. The embedded SSRF DNS guard called classifyIp(...) literally, but esbuild had renamed the symbol when bundling. The result was ReferenceError: classifyIp is not defined at every fetch. Fix wraps the embedded source so the canonical name is preserved regardless of bundler rename. This bug pre-dated v1.0.132 — it lived in whatever build first introduced the SSRF guard.

ctx_stats per-conversation bar now uses real indexed content. v1.0.132 wired chunks.session_id / chunks.event_id foreign keys at indexer time, but the stats render path only queried session_events.LENGTH(data) (event metadata, ~200 bytes per session). v1.0.133 adds getContentBytesForSession() that joins session events to content DB chunks via the FK, summing real indexed-content bytes. Per-conversation bar now reflects the actual data that ctx_fetch_and_index, ctx_index, and ctx_execute kept out of context.

CI now runs. v1.0.132's #564 hard-fail (Linux + Node < 22.5 → exit 1) had a self-blocking side effect: GitHub's Ubuntu runners use Node 20 by default, so npm install aborted before bundle rebuild could finish. v1.0.132's npm package shipped with v1.0.131-era bundles — the source had the fixes, the runtime didn't. Workflows now pin Node 22.5+ across bundle.yml and ci.yml.

Behavior change for users

After upgrading and restarting Claude Code:

  • Existing sessions where chunks were indexed before v1.0.132's FK landed → bar stays empty (that data was indexed without attribution; no backfill is shipped per architect verdict).
  • New sessions where you call ctx_fetch_and_index → bar populates with real indexed-content bytes, not estimates.

Tests

3242+ pass. 8 pre-existing OpenCode baseline failures unchanged.

Compatibility

15 adapters, 3 OS. No schema migration. engines.node >=22.5.0 from v1.0.132 is preserved — Linux installs on Node < 22.5 still hard-fail by design.

Upgrade

npm install -g context-mode@latest
# Restart Claude Code (Cmd+Q + reopen) to load the new MCP server.

Don't miss a new context-mode release

NewReleases is sending notifications on new releases.