feat: Claude Code CLI v2.1.105–v2.1.131 support #274

Merged
naomi merged 7 commits from feat/lotsa into main 2026-05-06 16:16:06 -07:00
Owner

Overview

Full audit and implementation of Claude Code CLI changelog entries from v2.1.105 through v2.1.131.

Changes

Implemented

  • #268 — Add claude-opus-4-7 to the model picker, update all model pricing and context window sizes (also fixes a bug where claude-opus-4-6 was coded as 200K context instead of 1M)
  • #269 — Expose effort level setting in UI via --effort <level> flag (low, medium, high, xhigh, max)
  • #273 — Expose prompt caching TTL env vars in UI (ENABLE_PROMPT_CACHING_1H / FORCE_PROMPT_CACHING_5M)
  • #267 — Add PreCompact hook support — emits claude:pre-compact event with "Compacting context..." toast and thinking state
  • #270 — Parse plugin_errors from stream-json init event and surface them as error output lines
  • #266 — Bump supported CLI version constant to 2.1.131

Closed as Not Applicable

  • #271 (autoScrollEnabled) — TUI-only setting; we manage our own scroll behaviour
  • #272 (tui fullscreen mode) — TUI-only setting; we use stream-json and never activate the TUI

Testing

All checks pass (./check-all.sh) including frontend lint, format, type check, Vitest coverage, Clippy, and Rust test coverage.

This PR was created with help from Hikari~ 🌸

## Overview Full audit and implementation of Claude Code CLI changelog entries from v2.1.105 through v2.1.131. ## Changes ### Implemented - **#268** — Add `claude-opus-4-7` to the model picker, update all model pricing and context window sizes (also fixes a bug where `claude-opus-4-6` was coded as 200K context instead of 1M) - **#269** — Expose effort level setting in UI via `--effort <level>` flag (`low`, `medium`, `high`, `xhigh`, `max`) - **#273** — Expose prompt caching TTL env vars in UI (`ENABLE_PROMPT_CACHING_1H` / `FORCE_PROMPT_CACHING_5M`) - **#267** — Add `PreCompact` hook support — emits `claude:pre-compact` event with "Compacting context..." toast and thinking state - **#270** — Parse `plugin_errors` from stream-json init event and surface them as error output lines - **#266** — Bump supported CLI version constant to `2.1.131` ### Closed as Not Applicable - **#271** (`autoScrollEnabled`) — TUI-only setting; we manage our own scroll behaviour - **#272** (`tui` fullscreen mode) — TUI-only setting; we use stream-json and never activate the TUI ## Testing All checks pass (`./check-all.sh`) including frontend lint, format, type check, Vitest coverage, Clippy, and Rust test coverage. ✨ This PR was created with help from Hikari~ 🌸
hikari added 6 commits 2026-05-06 15:03:26 -07:00
Adds Claude Opus 4.7 to the model picker as the new most capable model.
Reorganises model list to reflect current vs previous generation, and
marks Sonnet 4 and Opus 4 as deprecated (retiring June 15, 2026).

Also corrects claude-opus-4-6 context window from 200K to 1M tokens,
and updates pricing comments to reflect May 2026 source date.

Closes #268
Adds `--effort <level>` CLI flag support with a dropdown selector in the config sidebar. Valid options are low, medium, high, xhigh (Opus 4.7 only), and max.
Adds a dropdown to select ENABLE_PROMPT_CACHING_1H or FORCE_PROMPT_CACHING_5M env vars when starting Claude Code sessions. Requires Claude Code v2.1.108+.
Parses [PreCompact Hook] events from the CLI stream and emits a claude:pre-compact Tauri event. Shows a "Compacting context..." toast and thinking state on the frontend, complementing the existing PostCompact handling.
Adds plugin_errors field to the System init message type and emits a claude:output error event for each failed plugin, giving users visibility into plugin load failures within Hikari Desktop. Requires Claude Code v2.1.111+.
feat: update supported CLI version to 2.1.131 (#266)
Security Scan and Upload / Security & DefectDojo Upload (pull_request) Successful in 1m5s
CI / Lint & Test (pull_request) Failing after 9m35s
CI / Build Linux (pull_request) Has been skipped
CI / Build Windows (cross-compile) (pull_request) Has been skipped
c579fb3e40
Bumps the audited CLI version constant now that all v2.1.105-v2.1.131 changelog items have been implemented or triaged.
hikari added 1 commit 2026-05-06 15:27:36 -07:00
fix: resolve Clippy 1.95 warnings in sessions.rs and wsl_bridge.rs
Security Scan and Upload / Security & DefectDojo Upload (pull_request) Successful in 1m1s
CI / Lint & Test (pull_request) Successful in 16m29s
CI / Build Linux (pull_request) Successful in 20m48s
CI / Build Windows (cross-compile) (pull_request) Successful in 30m28s
eb2fbda07b
Replaces sort_by with sort_by_key + Reverse for unnecessary_sort_by lint,
and replaces manual > 0 guard before division with checked_div for
manual_checked_ops lint.
naomi merged commit 1c4432c4d8 into main 2026-05-06 16:16:06 -07:00
naomi deleted branch feat/lotsa 2026-05-06 16:16:06 -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#274