feat: expose showClearContextOnPlanAccept setting in config UI (v2.1.81) #239

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

Context

Claude Code v2.1.81 changed plan mode to hide the "clear context" option by default. Users can restore it by setting:

"showClearContextOnPlanAccept": true

in their Claude Code settings.

Why This Matters

Hikari Desktop's config sidebar (ConfigSidebar.svelte) manages Claude Code settings. This new boolean option should be surfaced so users can opt back in to the previous behaviour without editing JSON manually.

Tasks

  • Add a showClearContextOnPlanAccept toggle to src/lib/components/ConfigSidebar.svelte
  • Wire it through to the Claude Code settings file appropriately
  • Document the default (false = hidden) vs opt-in behaviour
  • Add tests for the new setting

References

  • Claude Code v2.1.81 changelog
  • src/lib/components/ConfigSidebar.svelte

This issue was created with help from Hikari~ 🌸

## Context Claude Code v2.1.81 changed plan mode to **hide** the "clear context" option by default. Users can restore it by setting: ```json "showClearContextOnPlanAccept": true ``` in their Claude Code settings. ## Why This Matters Hikari Desktop's config sidebar (`ConfigSidebar.svelte`) manages Claude Code settings. This new boolean option should be surfaced so users can opt back in to the previous behaviour without editing JSON manually. ## Tasks - [ ] Add a `showClearContextOnPlanAccept` toggle to `src/lib/components/ConfigSidebar.svelte` - [ ] Wire it through to the Claude Code settings file appropriately - [ ] Document the default (`false` = hidden) vs opt-in behaviour - [ ] Add tests for the new setting ## References - Claude Code v2.1.81 changelog - `src/lib/components/ConfigSidebar.svelte` ✨ This issue was created with help from Hikari~ 🌸
Author
Owner

Resolved in PR #263. Added show_clear_context_on_plan_accept: bool (default true) to ClaudeStartOptions and HikariConfig, passes showClearContextOnPlanAccept: false in the --settings JSON when disabled, added TypeScript interface field, config sidebar toggle, and wired through all start_claude invocations.

Resolved in PR #263. Added `show_clear_context_on_plan_accept: bool` (default `true`) to `ClaudeStartOptions` and `HikariConfig`, passes `showClearContextOnPlanAccept: false` in the `--settings` JSON when disabled, added TypeScript interface field, config sidebar toggle, and wired through all `start_claude` invocations. ✨
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#239