feat: support WorktreeCreate and WorktreeRemove hook events in terminal #150

Closed
opened 2026-02-24 11:00:29 -08:00 by hikari · 0 comments
Owner

Summary

Claude CLI 2.1.50 added two new hook event types:

  • WorktreeCreate — fires when worktree isolation creates a new worktree
  • WorktreeRemove — fires when a worktree is cleaned up

Current behaviour

Our terminal only knows about the hook events defined prior to 2.1.50. New event types would appear as unrecognised system messages, or be silently dropped depending on how wsl_bridge.rs handles them.

Desired behaviour

These events should be parsed and displayed in the terminal with appropriate labels, similar to other hook events. Consider adding a distinctive icon or label (e.g. [worktree]) so users can see when isolated worktrees are being created/destroyed.

References

  • Claude CLI changelog 2.1.50

This issue was created with help from Hikari~ 🌸

## Summary Claude CLI 2.1.50 added two new hook event types: - `WorktreeCreate` — fires when worktree isolation creates a new worktree - `WorktreeRemove` — fires when a worktree is cleaned up ## Current behaviour Our terminal only knows about the hook events defined prior to 2.1.50. New event types would appear as unrecognised system messages, or be silently dropped depending on how `wsl_bridge.rs` handles them. ## Desired behaviour These events should be parsed and displayed in the terminal with appropriate labels, similar to other hook events. Consider adding a distinctive icon or label (e.g. `[worktree]`) so users can see when isolated worktrees are being created/destroyed. ## References - Claude CLI changelog 2.1.50 ✨ This issue was created with help from Hikari~ 🌸
naomi closed this issue 2026-02-24 20:48:51 -08:00
Sign in to join this conversation.
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: nhcarrigan/hikari-desktop#150