chore: CLI v2.1.75–v2.1.80 audit and support (#223–#232) #233

Merged
naomi merged 10 commits from chore/cli into main 2026-03-23 14:28:09 -07:00
Owner

Summary

This PR implements all tickets filed from the CLI v2.1.74 → v2.1.80 changelog audit (issues #223–#232).

Changes by Issue

  • Closes #223feat: handle Elicitation and ElicitationResult hook events
    New ElicitationModal.svelte component, Rust parsing for [Elicitation Hook] and [ElicitationResult Hook], new store methods, and TypeScript event types.

  • Closes #224feat: handle StopFailure hook event for API error turns
    Rust parsing for [StopFailure Hook]; frontend shows error toast + error character state.

  • Closes #225feat: handle PostCompact hook event
    Rust parsing for [PostCompact Hook]; frontend shows info toast + success character state.

  • Closes #226feat: expose --name CLI flag as session name at startup
    Added session_name field to ClaudeStartOptions; StatusBar.doConnect() passes the conversation name.

  • Closes #227fix: tighten startup watchdog and correct misleading comment
    Startup watchdog tightened from 60 s → 30 s; corrected a comment that said "5 minutes" whilst the code used 60 seconds.

  • Closes #228fix: document cost estimation review and update default model fallback
    Default model fallback updated from claude-sonnet-4-5-20250929claude-sonnet-4-6; added doc comment explaining why char-based estimation is unaffected by v2.1.75 token overcounting fix.

  • Closes #229chore: update supported CLI version constant to 2.1.80
    SUPPORTED_CLI_VERSION bumped in CliVersion.svelte.

  • Closes #230feat: surface memory file last-modified timestamps in MemoryBrowserPanel
    Backend populates last_modified Unix timestamp; frontend formats and displays it per file.

  • Closes #231feat: update max_output_tokens upper bound and helper text for 128k
    Input max raised to 128 000; placeholder and helper text updated to reflect model-dependent defaults and 128 k ceiling for Opus/Sonnet 4.6.

  • Closes #232fix: document non-streaming fallback compatibility with mid-session watchdog
    Added doc comment above STUCK_TIMEOUT explaining the 5-minute watchdog is intentionally larger than the CLI's 2-minute non-streaming API fallback.


This PR was created with help from Hikari~ 🌸

## Summary This PR implements all tickets filed from the CLI v2.1.74 → v2.1.80 changelog audit (issues #223–#232). ### Changes by Issue - **Closes #223** — `feat: handle Elicitation and ElicitationResult hook events` New `ElicitationModal.svelte` component, Rust parsing for `[Elicitation Hook]` and `[ElicitationResult Hook]`, new store methods, and TypeScript event types. - **Closes #224** — `feat: handle StopFailure hook event for API error turns` Rust parsing for `[StopFailure Hook]`; frontend shows error toast + error character state. - **Closes #225** — `feat: handle PostCompact hook event` Rust parsing for `[PostCompact Hook]`; frontend shows info toast + success character state. - **Closes #226** — `feat: expose --name CLI flag as session name at startup` Added `session_name` field to `ClaudeStartOptions`; `StatusBar.doConnect()` passes the conversation name. - **Closes #227** — `fix: tighten startup watchdog and correct misleading comment` Startup watchdog tightened from 60 s → 30 s; corrected a comment that said "5 minutes" whilst the code used 60 seconds. - **Closes #228** — `fix: document cost estimation review and update default model fallback` Default model fallback updated from `claude-sonnet-4-5-20250929` → `claude-sonnet-4-6`; added doc comment explaining why char-based estimation is unaffected by v2.1.75 token overcounting fix. - **Closes #229** — `chore: update supported CLI version constant to 2.1.80` `SUPPORTED_CLI_VERSION` bumped in `CliVersion.svelte`. - **Closes #230** — `feat: surface memory file last-modified timestamps in MemoryBrowserPanel` Backend populates `last_modified` Unix timestamp; frontend formats and displays it per file. - **Closes #231** — `feat: update max_output_tokens upper bound and helper text for 128k` Input max raised to 128 000; placeholder and helper text updated to reflect model-dependent defaults and 128 k ceiling for Opus/Sonnet 4.6. - **Closes #232** — `fix: document non-streaming fallback compatibility with mid-session watchdog` Added doc comment above `STUCK_TIMEOUT` explaining the 5-minute watchdog is intentionally larger than the CLI's 2-minute non-streaming API fallback. --- ✨ This PR was created with help from Hikari~ 🌸
hikari added 10 commits 2026-03-20 15:01:22 -07:00
Parses [Elicitation Hook] and [ElicitationResult Hook] from Claude Code
stderr, emits claude:elicitation and claude:elicitation-result Tauri
events, and renders an ElicitationModal for MCP server input requests.
Parses [StopFailure Hook] from stderr, emits claude:stop-failure, and
transitions the character to error state with a toast notification.
Parses [PostCompact Hook] from stderr, emits claude:post-compact, shows
a toast notification, and briefly sets the character to success state.
Adds session_name to ClaudeStartOptions and passes --name to Claude Code
on initial session start, keeping tab names in sync with Claude Code.
Reduces the startup watchdog from 60 s to 30 s and corrects the comment
that incorrectly stated "5 minutes". CLI v2.1.79 fixed the subprocess
stdin hang that originally necessitated the longer timeout.
Confirms char-based estimation is unaffected by the CLI v2.1.75 token
overcounting fix. Updates default model fallback to claude-sonnet-4-6.
Extends MemoryFileInfo with last_modified (Unix timestamp) populated via
fs::metadata on native platforms, and displays a formatted date in the
file list as secondary text.
Adds max="128000" to the config input and updates the placeholder and
helper text to reflect the new per-model limits from CLI v2.1.77.
Confirms usage tracking is correct for non-streaming API responses and
documents the intentional 5-min/2-min timing relationship with CLI v2.1.79.
chore: update supported CLI version constant to 2.1.80 (#229)
Security Scan and Upload / Security & DefectDojo Upload (pull_request) Successful in 59s
CI / Lint & Test (pull_request) Successful in 16m31s
CI / Build Linux (pull_request) Successful in 21m31s
CI / Build Windows (cross-compile) (pull_request) Successful in 31m32s
fb4d1d8f52
All blocking issues from the v2.1.75–v2.1.80 audit cycle have been
addressed. Bumps SUPPORTED_CLI_VERSION from 2.1.74 to 2.1.80.
naomi merged commit 4134e11c88 into main 2026-03-23 14:28:09 -07:00
naomi deleted branch chore/cli 2026-03-23 14:28:10 -07:00
Sign in to join this conversation.
No Reviewers
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: nhcarrigan/hikari-desktop#233