feat: handle WorktreeCreate and WorktreeRemove hook events #213

Closed
opened 2026-03-10 09:16:20 -07:00 by hikari · 0 comments
Owner

Summary

CLI v2.1.69 fixed WorktreeCreate and WorktreeRemove plugin hook events that were previously being silently ignored. These events now fire correctly, and Hikari should handle them to keep its worktree UI in sync.

Required Changes

Backend (types.rs)

  • Add WorktreeCreate and WorktreeRemove variants to the hook event enum (if not already present)
  • Emit appropriate Tauri events when these hooks fire (e.g., claude:worktree-created, claude:worktree-removed)

Frontend

  • Listen for claude:worktree-created and claude:worktree-removed events
  • Update the worktree list/indicator in the UI to reflect the current state
  • Show a notification or status message when a worktree is created or removed

Reference

  • CLI v2.1.69: "Fixed WorktreeCreate and WorktreeRemove plugin hooks being silently ignored"

This issue was created with help from Hikari~ 🌸

## Summary CLI v2.1.69 fixed `WorktreeCreate` and `WorktreeRemove` plugin hook events that were previously being silently ignored. These events now fire correctly, and Hikari should handle them to keep its worktree UI in sync. ## Required Changes ### Backend (`types.rs`) - Add `WorktreeCreate` and `WorktreeRemove` variants to the hook event enum (if not already present) - Emit appropriate Tauri events when these hooks fire (e.g., `claude:worktree-created`, `claude:worktree-removed`) ### Frontend - Listen for `claude:worktree-created` and `claude:worktree-removed` events - Update the worktree list/indicator in the UI to reflect the current state - Show a notification or status message when a worktree is created or removed ## Reference - CLI v2.1.69: "Fixed `WorktreeCreate` and `WorktreeRemove` plugin hooks being silently ignored" ✨ This issue was created with help from Hikari~ 🌸
naomi closed this issue 2026-03-13 01:34:45 -07: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#213