feat: CLI v2.1.81 features + global CLAUDE.md editor #263

Merged
naomi merged 1 commits from feat/cli-v2181 into main 2026-04-13 13:32:04 -07:00
Owner

Summary

Implements support for Claude Code CLI v2.1.81 features and adds a global CLAUDE.md editor, closing issues #237, #239, #244, #245, #246, #247, #248, and #262.

Stream-JSON forward-compatibility (#245, #246, #247, #248)

  • #248output_style field added to System init message; silently accepted for forward-compat
  • #245fast_mode_state field added to Result message; logged at debug level
  • #246model_usage field added to Result message; per-model breakdown logged at debug level
  • #247total_cost_usd field added to Result message; authoritative cost logged at debug level

New config options (#237, #239, #244)

  • #237bare_mode config toggle: passes --bare to Claude Code, suppressing UI chrome for scripted headless -p calls
  • #239show_clear_context_on_plan_accept toggle: passes showClearContextOnPlanAccept: false in --settings when disabled
  • #244custom_model_option text field: sets ANTHROPIC_CUSTOM_MODEL_OPTION env var for custom model providers

Global CLAUDE.md editor (#262)

  • New Tauri commands get_global_claude_md / save_global_claude_md read/write ~/.claude/CLAUDE.md (creates file + directory if absent)
  • New "Global Instructions" section in the Config Sidebar with a textarea and Save button

Bug fix (pre-existing)

disable_cron and disable_skill_shell_execution were saved to HikariConfig but never passed to start_claude invocations — fixed in all 9 call sites. All 3 new config fields are also wired through all 9 call sites.

All changes pass check-all.sh (ESLint → Prettier → svelte-check → Vitest → Clippy → cargo test with llvm-cov).

This PR was created with help from Hikari~ 🌸

## Summary Implements support for Claude Code CLI v2.1.81 features and adds a global CLAUDE.md editor, closing issues #237, #239, #244, #245, #246, #247, #248, and #262. ### Stream-JSON forward-compatibility (#245, #246, #247, #248) - **#248** — `output_style` field added to `System` init message; silently accepted for forward-compat - **#245** — `fast_mode_state` field added to `Result` message; logged at debug level - **#246** — `model_usage` field added to `Result` message; per-model breakdown logged at debug level - **#247** — `total_cost_usd` field added to `Result` message; authoritative cost logged at debug level ### New config options (#237, #239, #244) - **#237** — `bare_mode` config toggle: passes `--bare` to Claude Code, suppressing UI chrome for scripted headless `-p` calls - **#239** — `show_clear_context_on_plan_accept` toggle: passes `showClearContextOnPlanAccept: false` in `--settings` when disabled - **#244** — `custom_model_option` text field: sets `ANTHROPIC_CUSTOM_MODEL_OPTION` env var for custom model providers ### Global CLAUDE.md editor (#262) - New Tauri commands `get_global_claude_md` / `save_global_claude_md` read/write `~/.claude/CLAUDE.md` (creates file + directory if absent) - New "Global Instructions" section in the Config Sidebar with a textarea and Save button ### Bug fix (pre-existing) `disable_cron` and `disable_skill_shell_execution` were saved to `HikariConfig` but never passed to `start_claude` invocations — fixed in all 9 call sites. All 3 new config fields are also wired through all 9 call sites. All changes pass `check-all.sh` (ESLint → Prettier → svelte-check → Vitest → Clippy → cargo test with llvm-cov). ✨ This PR was created with help from Hikari~ 🌸
hikari added 7 commits 2026-04-13 11:29:34 -07:00
chore: update supported CLI version to 2.1.104 (closes #260)
Security Scan and Upload / Security & DefectDojo Upload (pull_request) Successful in 1m7s
CI / Lint & Test (pull_request) Successful in 17m8s
CI / Build Linux (pull_request) Successful in 23m21s
CI / Build Windows (cross-compile) (pull_request) Successful in 34m27s
f7654bfaf9
feat: implement CLI v2.1.81 features and global CLAUDE.md editor
Security Scan and Upload / Security & DefectDojo Upload (pull_request) Successful in 1m22s
CI / Lint & Test (pull_request) Successful in 16m52s
CI / Build Linux (pull_request) Successful in 22m33s
CI / Build Windows (cross-compile) (pull_request) Successful in 34m6s
1f155f9fe9
- #248: add output_style field to System init message (forward-compat)
- #245: add fast_mode_state field to Result message (forward-compat)
- #246: add model_usage field to Result message with per-model logging
- #247: add total_cost_usd field to Result message (authoritative cost)
- #237: add bare_mode config option (passes --bare flag to Claude Code)
- #239: add show_clear_context_on_plan_accept config option (settings JSON)
- #244: add custom_model_option config option (ANTHROPIC_CUSTOM_MODEL_OPTION env)
- #262: add global CLAUDE.md editor to config sidebar (get/save_global_claude_md commands)
- fix: wire disable_cron and disable_skill_shell_execution into all start_claude invocations
- fix: wire all new config fields into all start_claude invocations
hikari force-pushed feat/cli-v2181 from 1f155f9fe9 to 5d9e6fbd8e 2026-04-13 12:07:15 -07:00 Compare
naomi merged commit b88f25a61b into main 2026-04-13 13:32:04 -07:00
naomi deleted branch feat/cli-v2181 2026-04-13 13:32:04 -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#263