Skip to content

Commit b9d4fde

Browse files
committed
docs: add learning about Claude Code hook schema keys
Signed-off-by: Jose Alekhinne <alekhinejose@gmail.com>
1 parent 0a0f4b3 commit b9d4fde

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

.context/LEARNINGS.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -344,3 +344,5 @@ directory component (e.g., `/home/user/ctx/internal/...`).
344344

345345
- **[2026-01-25-2208]** defer os.Chdir(x) fails errcheck linter. Use
346346
defer func() { _ = os.Chdir(x) }() to explicitly ignore the error return value.
347+
348+
- **[2026-01-26-0553]** Claude Code settings.local.json hook keys are 'PreToolUse' and 'SessionEnd' (not 'PreToolUseHooks'/'SessionEndHooks'). The 'Hooks' suffix causes 'Invalid key in record' errors.

0 commit comments

Comments
 (0)