Repository navigation
v1.0.160
π v1.0.160 β 4 hook surfaces now flow through the platform bridge
2 commits Β· 5 hook files updated since v1.0.159. Event types that previously bypassed the platform-bridge wire (post-tool-use, pre-compact, session-start, user-prompt-submit) are now routed through attributeAndInsertEvents, closing a partial-coverage gap for analytics-opt-in users.
β¨ Highlights
- π Bypassed event types routed through bridge (
c084707) βposttooluse.mjs,precompact.mjs,sessionstart.mjs,userpromptsubmit.mjsall now emit through the platform-bridge wire viaattributeAndInsertEvents. Previously these surfaces wrote directly to SessionDB and never reached the bridge β analytics-opt-in users saw a partial event subset. - πͺ Lifecycle event coverage restored β all 5 hook event types (
PostToolUse,PreCompact,SessionStart,UserPromptSubmit,Stop) now route uniformly. No silent drops, no surface that the bridge can't observe.
π Bug Fixes
Hooks & routing
feat(hooks): route bypassed event types through bridge wire(c084707) β 4 hook files were calling SessionDB directly for non-PostToolUse events, bypassing the bridge entirely. The bridge wire is now the single insertion path; SessionDB writes happen as a side-effect ofattributeAndInsertEvents.
Files touched (5 hook surfaces)
hooks/posttooluse.mjsβ bypassed events:rejected,redirect,byte-accounting,tool_latencyhooks/precompact.mjsβ bypassed events:compaction_summary,snapshot-builthooks/sessionstart.mjsβ bypassed events: lifecyclesession_start,rule,rule_contenthooks/userpromptsubmit.mjsβ bypassed events: user prompt extractionshooks/session-loaders.mjsβattributeAndInsertEventsnow the canonical insert path
π¨ Features
- Forward-compat for v1.0.162 β this release is the foundation that v1.0.162's 9 new event types (
bash_outcome,file_read_metadata,webfetch_metadata,worktree_exit,agent_usage,session_settings_snapshot,git_commit,plan_enterslash,plan_exitmetadata) all ride. Without the unified wire-up, the new extractors would have shipped half-observable.
π¦ Install / upgrade
# Fresh install (Claude Code plugin marketplace)
/plugin add https://github.com/mksglu/context-mode
# npm global
npm install -g context-mode@1.0.160
# Existing install β in-place upgrade
context-mode upgradeThen restart your MCP session (or run /reload-plugins in Claude Code).
π Full changelog
π€ Release notes retroactively rewritten in v1.0.152 style β the original body undersold a foundational wire-format unification.