Skip to content

Wrap additionalContext in hookSpecificOutput#3

Open
bgitzis wants to merge 1 commit into
ProducerGuy:mainfrom
bgitzis:fix/hook-specific-output
Open

Wrap additionalContext in hookSpecificOutput#3
bgitzis wants to merge 1 commit into
ProducerGuy:mainfrom
bgitzis:fix/hook-specific-output

Conversation

@bgitzis
Copy link
Copy Markdown

@bgitzis bgitzis commented May 11, 2026

Claude Code 2.1.x requires hook JSON for UserPromptSubmit and PostToolUse to nest additionalContext inside hookSpecificOutput (with a matching hookEventName field). The previous top-level shape silently stopped injecting the timecode into the model's context.

systemMessage stays at the top level — that field still belongs there.

…tToolUse

Claude Code 2.1.x requires hook JSON for UserPromptSubmit and PostToolUse
to nest `additionalContext` inside `hookSpecificOutput` (with a matching
`hookEventName` field). The previous top-level shape silently stopped
injecting the timecode into the model's context.

systemMessage stays at the top level — that field still belongs there.

Refs: vim-0xz
@bgitzis bgitzis changed the title Wrap additionalContext in hookSpecificOutput for UserPromptSubmit/Pos… Wrap additionalContext in hookSpecificOutput May 11, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants