feat: consume worktree field from status line hook events #206

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

Summary

CLI v2.1.69 added a worktree field to status line hook commands. This field contains name, path, branch, and original_repo_directory when running in a --worktree session. Hikari's worktree UI doesn't yet consume this richer metadata.

Required Changes

Backend (types.rs)

  • Add a worktree: Option<WorktreeInfo> field to the relevant hook event structs
  • Define WorktreeInfo struct with name, path, branch, original_repo_directory fields

Frontend

  • Display the worktree branch name and path in the worktree status indicator
  • Show the original_repo_directory as context so users know which base repo the worktree belongs to
  • Update the worktree panel/badge to surface this richer information

Reference

  • CLI v2.1.69: "Added worktree field to status line hook commands with name, path, branch, and original repo directory when running in a --worktree session"

This issue was created with help from Hikari~ 🌸

## Summary CLI v2.1.69 added a `worktree` field to status line hook commands. This field contains `name`, `path`, `branch`, and `original_repo_directory` when running in a `--worktree` session. Hikari's worktree UI doesn't yet consume this richer metadata. ## Required Changes ### Backend (`types.rs`) - Add a `worktree: Option<WorktreeInfo>` field to the relevant hook event structs - Define `WorktreeInfo` struct with `name`, `path`, `branch`, `original_repo_directory` fields ### Frontend - Display the worktree branch name and path in the worktree status indicator - Show the `original_repo_directory` as context so users know which base repo the worktree belongs to - Update the worktree panel/badge to surface this richer information ## Reference - CLI v2.1.69: "Added `worktree` field to status line hook commands with name, path, branch, and original repo directory when running in a `--worktree` session" ✨ 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#206