feat: handle ExitWorktree tool in character state mapping and tool display #202

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

Summary

CLI v2.1.72 added the ExitWorktree tool to leave an EnterWorktree session. This tool is not currently mapped in Hikari's character state system or tool display, meaning it will appear as an unrecognised tool.

Required Changes

Backend (wsl_bridge.rs)

  • Add ExitWorktree to the tool classification arrays alongside EnterWorktree
  • Map it to an appropriate CharacterState (likely the same as EnterWorktree)

Frontend

  • Ensure the permission modal renders ExitWorktree tool inputs correctly
  • Update the agent/tool activity display to show ExitWorktree events cleanly
  • Update the worktree status indicator to reflect when a worktree session has been exited

Reference

  • CLI v2.1.72: "Added ExitWorktree tool to leave an EnterWorktree session"

This issue was created with help from Hikari~ 🌸

## Summary CLI v2.1.72 added the `ExitWorktree` tool to leave an `EnterWorktree` session. This tool is not currently mapped in Hikari's character state system or tool display, meaning it will appear as an unrecognised tool. ## Required Changes ### Backend (`wsl_bridge.rs`) - Add `ExitWorktree` to the tool classification arrays alongside `EnterWorktree` - Map it to an appropriate `CharacterState` (likely the same as `EnterWorktree`) ### Frontend - Ensure the permission modal renders `ExitWorktree` tool inputs correctly - Update the agent/tool activity display to show `ExitWorktree` events cleanly - Update the worktree status indicator to reflect when a worktree session has been exited ## Reference - CLI v2.1.72: "Added `ExitWorktree` tool to leave an `EnterWorktree` session" ✨ This issue was created with help from Hikari~ 🌸
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#202