diff --git a/CHANGELOG.md b/CHANGELOG.md index 3183bec1..1385a4e5 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,6 +8,24 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/). ## [Unreleased] +## [4.3.1] - 2025-10-26 + +### Fixed +- **SessionStart hook context injection**: Fixed context not being injected into new sessions due to npm output pollution + - Changed npm loglevel from `--loglevel=error` to `--loglevel=silent` in `plugin/hooks/hooks.json` + - npm install stdout/stderr was polluting hook JSON output, preventing proper context injection + - Hook now produces clean JSON output for reliable context injection +- **Hooks architecture consolidation**: Removed wrapper layer to simplify codebase + - Removed `src/bin/hooks/*` wrapper files + - Consolidated hook logic directly into `src/hooks/*-hook.ts` files + - Fixed double shebang issues (esbuild now adds shebang during build) + +### Technical Details +- Modified: `plugin/hooks/hooks.json` (line 25: npm install verbosity) +- Removed: All files in `src/bin/hooks/` directory +- Root cause: npm stderr/stdout interfering with hook's JSON hookSpecificOutput format + + ## [4.3.0] - 2025-10-25 ### Added diff --git a/README.md b/README.md index edfd07f3..f0ac8706 100644 --- a/README.md +++ b/README.md @@ -17,7 +17,7 @@ License - Version + Version Node @@ -151,18 +151,18 @@ See [MCP Search Tools Guide](docs/usage/search-tools.mdx) for detailed examples. --- -## What's New in v4.3.0 +## What's New in v4.3.1 -**Progressive Disclosure Context:** -- Enhanced context hook displays observation timeline with token cost visibility -- Table format shows ID, timestamp, type indicators (🔴 critical, 🟤 decision, 🔵 informational), title, and token counts -- Progressive disclosure instructions guide Claude on when to fetch full observation details vs. reading code -- Layered memory retrieval: Index → Details → Perfect Recall (code/transcripts) +**Critical Fix:** +- **SessionStart hook context injection**: Fixed context not being injected into new sessions + - npm install output was polluting hook JSON responses + - Changed npm loglevel to `--loglevel=silent` for clean output + - Context injection now works reliably across all sessions -**Improvements:** -- Added Agent Skills documentation and version bump management skill -- Removed hardcoded paths for project and Claude Code executable (fixes #23) -- Enhanced session summary handling and timeline rendering +**Code Quality:** +- Consolidated hooks architecture by removing wrapper layer +- Fixed double shebang issues in hook executables +- Simplified codebase maintenance See [CHANGELOG.md](CHANGELOG.md) for complete version history.