feat: expose --name CLI flag as session name input in the UI #226

Closed
opened 2026-03-20 08:25:55 -07:00 by hikari · 0 comments
Owner

Background

CLI v2.1.76 added the -n / --name <name> flag to set a display name for a session at startup.

Why It Matters for Hikari Desktop

Hikari Desktop already shows session names in the tab bar and session history panel. However, session names can currently only be set post-hoc via tab rename. Passing --name at startup means Claude Code itself knows the name from the very first message, which ensures it persists correctly across /resume flows (CLI v2.1.75 also noted a bug where /resume lost session names).

We should:

  1. Add an optional "Session name" field to the new conversation flow (e.g. InputBar or a new conversation dialog)
  2. Pass the value as --name <name> in the claude command constructed in wsl_bridge.rs
  3. Keep the field optional — if blank, do not pass the flag

Acceptance Criteria

  • Optional session name input in the new conversation flow
  • ClaudeStartOptions struct extended with session_name: Option<String>
  • wsl_bridge.rs passes --name flag when session_name is Some
  • Tests for the new flag construction path

This issue was created with help from Hikari~ 🌸

## Background CLI v2.1.76 added the `-n` / `--name <name>` flag to set a display name for a session at startup. ## Why It Matters for Hikari Desktop Hikari Desktop already shows session names in the tab bar and session history panel. However, session names can currently only be set post-hoc via tab rename. Passing `--name` at startup means Claude Code itself knows the name from the very first message, which ensures it persists correctly across `/resume` flows (CLI v2.1.75 also noted a bug where `/resume` lost session names). We should: 1. Add an optional "Session name" field to the new conversation flow (e.g. `InputBar` or a new conversation dialog) 2. Pass the value as `--name <name>` in the `claude` command constructed in `wsl_bridge.rs` 3. Keep the field optional — if blank, do not pass the flag ## Acceptance Criteria - [ ] Optional session name input in the new conversation flow - [ ] `ClaudeStartOptions` struct extended with `session_name: Option<String>` - [ ] `wsl_bridge.rs` passes `--name` flag when `session_name` is `Some` - [ ] Tests for the new flag construction path ✨ This issue was created with help from Hikari~ 🌸
naomi closed this issue 2026-03-23 14:28:09 -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#226