v10.4.2

thedotmack/claude-memv10.4.2Feb 25, 2026by thedotmack

AI Summary

This is a bug fix release (v10.4.2) that addresses critical issues in the claude-mem plugin including PostToolUse hook crashes with 5-second latency caused by missing break statements and unhandled promise rejections, CLAUDE_PLUGIN_ROOT fallback for Stop hooks in environments where the variable isn't injected, and a version sync issue where plugin.json was stuck at an older version.

Key Highlights

  • Fixed PostToolUse hook crashes and 5-second latency by adding missing break statements to all 7 switch cases in worker-service.ts
  • Added .catch() on main() to handle unhandled promise rejections
  • Added POSIX shell-level CLAUDE_PLUGIN_ROOT fallback in hooks.json for Stop hooks
  • Added script-level self-resolution via import.meta.url in bun-runner.js
  • Fixed plugin.json version being stuck at 10.4.0 while other files were at 10.4.1

Full Release Notes

## Bug Fixes

- **Fix PostToolUse hook crashes and 5-second latency (#1220)**: Added missing `break` statements to all 7 switch cases in `worker-service.ts` preventing fall-through execution, added `.catch()` on `main()` to handle unhandled promise rejections, and removed redundant `start` commands from hook groups that triggered the 5-second `collectStdin()` timeout
- **Fix CLAUDE_PLUGIN_ROOT fallback for Stop hooks (#1215)**: Added POSIX shell-level `CLAUDE_PLUGIN_ROOT` fallback in `hooks.json` for environments where the variable isn't injected, added script-level self-resolution via `import.meta.url` in `bun-runner.js`, and regression test added in `plugin-distribution.test.ts`
- **Sync plugin.json version**: Fixed `plugin.json` being stuck at 10.4.0 while other version files were at 10.4.1