github Yeachan-Heo/oh-my-claudecode v4.0.4
v4.0.4 - Hook Field Name Compatibility

latest releases: v4.9.1, v4.9.0, v4.8.2...
one month ago

What's Changed

Bug Fix: Hook Field Name Compatibility

All OMC hook scripts were reading camelCase field names (toolName, toolInput, toolOutput, sessionId, directory) but Claude Code sends snake_case (tool_name, tool_input, tool_response, session_id, cwd). This caused hooks to silently receive empty values and not function correctly.

Changes

  • 11 hook scripts updated to read snake_case first with camelCase fallback for backwards compatibility
  • 5 template hooks updated to match
  • PostToolUse hooks now return suppressOutput: true when no meaningful message, reducing "hook error" display noise (related to Claude Code display bug #10936)

Files Modified

  • scripts/post-tool-verifier.mjs - PostToolUse verification
  • scripts/project-memory-posttool.mjs - Project memory learning
  • scripts/pre-tool-enforcer.mjs - PreToolUse enforcement
  • scripts/keyword-detector.mjs - Mode keyword detection
  • scripts/persistent-mode.cjs / .mjs - Persistent mode (Stop hook)
  • scripts/session-start.mjs - Session initialization
  • scripts/project-memory-session.mjs - Session memory
  • scripts/skill-injector.mjs - Skill auto-injection
  • templates/hooks/* - All template hooks

Update

omc update

Full Changelog: v4.0.3...v4.0.4

Don't miss a new oh-my-claudecode release

NewReleases is sending notifications on new releases.