Skip to content

fix: use correct CC WorktreeCreate input field#1964

Merged
max-sixty merged 1 commit intomainfrom
cc-hooks
Apr 7, 2026
Merged

fix: use correct CC WorktreeCreate input field#1964
max-sixty merged 1 commit intomainfrom
cc-hooks

Conversation

@max-sixty
Copy link
Copy Markdown
Owner

CC sends {"name": "..."} on stdin to WorktreeCreate hooks. The jq filter was using .worktree_name // .branch // empty, which would always produce empty output since neither field exists.

Fixed to .name per the CC hooks docs and community implementations. The WorktreeRemove hook's .worktree_path was already correct.

This was written by Claude Code on behalf of @max-sixty

CC sends `{"name": "..."}` on stdin, not `worktree_name` or `branch`.
The previous jq filter `.worktree_name // .branch // empty` would always
produce empty output, silently breaking the hook.

Co-Authored-By: Claude <noreply@anthropic.com>
@max-sixty max-sixty merged commit 49f0906 into main Apr 7, 2026
25 checks passed
@max-sixty max-sixty deleted the cc-hooks branch April 7, 2026 03:12
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