Skip to content

v5.13.11

Choose a tag to compare

@alexgreensh alexgreensh released this 09 Sep 21:00
· 1 commit to main since this release

Fix: UserPromptSubmit hook error (event-name mismatch)

Bug: every prompt could print UserPromptSubmit hook error — Failed to run: Hook returned incorrect event name: expected 'UserPromptSubmit' but got 'SessionStart', and Claude Code discarded the hook's context injection.

Cause: the single-JSON-object stdout path forced hookEventName to SessionStart for any non-SessionStart firing event.

Fix: a shared _safe_event() helper now honors the firing event across all three emitter paths, falling back to SessionStart only when the event is missing. Regression tests added. Codex/cowork mirrors and all manifests synced to 5.13.11.