feat: handle --channels permission relay in permission UI (v2.1.81) #238

Closed
opened 2026-03-23 14:01:55 -07:00 by hikari · 1 comment
Owner

Context

Claude Code v2.1.81 added a --channels permission relay. Channel servers that declare the permission capability can now forward tool approval prompts to the user's phone.

Why This Matters

Hikari Desktop has its own permission handling UI (permission sprite state, approval/denial flow). We should be aware of this new relay mechanism and decide:

  1. Whether to expose --channels as a config option
  2. Whether our existing permission UI needs to account for prompts that may be relayed from a channel server
  3. Whether the stream-json protocol surfaces any new message types related to channel-relayed permissions

Tasks

  • Investigate the --channels flag and how channel permission relay appears in stream-json output
  • Determine if any new message types or tool use blocks are emitted
  • Update src-tauri/src/types.rs if new types are needed
  • Consider adding --channels as a config option in the UI if useful
  • Add tests for any new message handling

References

  • Claude Code v2.1.81 changelog
  • src-tauri/src/types.rs
  • src-tauri/src/wsl_bridge.rs

This issue was created with help from Hikari~ 🌸

## Context Claude Code v2.1.81 added a `--channels` permission relay. Channel servers that declare the permission capability can now forward tool approval prompts to the user's phone. ## Why This Matters Hikari Desktop has its own permission handling UI (`permission` sprite state, approval/denial flow). We should be aware of this new relay mechanism and decide: 1. Whether to expose `--channels` as a config option 2. Whether our existing permission UI needs to account for prompts that may be relayed from a channel server 3. Whether the stream-json protocol surfaces any new message types related to channel-relayed permissions ## Tasks - [ ] Investigate the `--channels` flag and how channel permission relay appears in stream-json output - [ ] Determine if any new message types or tool use blocks are emitted - [ ] Update `src-tauri/src/types.rs` if new types are needed - [ ] Consider adding `--channels` as a config option in the UI if useful - [ ] Add tests for any new message handling ## References - Claude Code v2.1.81 changelog - `src-tauri/src/types.rs` - `src-tauri/src/wsl_bridge.rs` ✨ This issue was created with help from Hikari~ 🌸
Author
Owner

Investigation

Investigated the --channels permission relay feature (v2.1.81).

Hikari Desktop does not have a PreToolUse hook response mechanism — workspace trust is enforced at session start via --allowedTools flags rather than through live permission relay. There is no plumbing to respond to permission requests mid-session via channels.

This feature is only relevant to implementations that intercept and respond to PreToolUse hooks, which Hikari Desktop does not do. Closing as not applicable.

Closed with help from Hikari~ 🌸

## Investigation Investigated the `--channels` permission relay feature (v2.1.81). Hikari Desktop does not have a PreToolUse hook response mechanism — workspace trust is enforced at session start via `--allowedTools` flags rather than through live permission relay. There is no plumbing to respond to permission requests mid-session via channels. This feature is only relevant to implementations that intercept and respond to PreToolUse hooks, which Hikari Desktop does not do. Closing as not applicable. ✨ Closed 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#238