feat: update max_output_tokens upper bound to 128k for Opus 4.6 and Sonnet 4.6 #231

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

Background

CLI v2.1.77 raised the default maximum output token limit for Claude Opus 4.6 to 64k tokens, and raised the configurable upper bound for both Opus 4.6 and Sonnet 4.6 to 128k tokens.

Why It Matters for Hikari Desktop

Hikari Desktop exposes a max_output_tokens configuration option passed via CLAUDE_CODE_MAX_OUTPUT_TOKENS when spawning Claude Code. The ConfigSidebar.svelte UI may have a hard-coded upper bound or validation that prevents users from setting values above the previous limit.

We should:

  1. Verify the max_output_tokens input in ConfigSidebar.svelte allows values up to 128000 for Opus 4.6 and Sonnet 4.6
  2. Update any hard-coded maximum validation or tooltip text
  3. Consider surfacing per-model limits so the UI reflects the actual ceiling for the selected model

Acceptance Criteria

  • ConfigSidebar.svelte max_output_tokens input allows up to 128000
  • Tooltip or helper text updated to reflect the new per-model limits
  • Tests updated if validation constants changed

This issue was created with help from Hikari~ 🌸

## Background CLI v2.1.77 raised the default maximum output token limit for Claude Opus 4.6 to 64k tokens, and raised the configurable upper bound for both Opus 4.6 and Sonnet 4.6 to 128k tokens. ## Why It Matters for Hikari Desktop Hikari Desktop exposes a `max_output_tokens` configuration option passed via `CLAUDE_CODE_MAX_OUTPUT_TOKENS` when spawning Claude Code. The `ConfigSidebar.svelte` UI may have a hard-coded upper bound or validation that prevents users from setting values above the previous limit. We should: 1. Verify the `max_output_tokens` input in `ConfigSidebar.svelte` allows values up to 128000 for Opus 4.6 and Sonnet 4.6 2. Update any hard-coded maximum validation or tooltip text 3. Consider surfacing per-model limits so the UI reflects the actual ceiling for the selected model ## Acceptance Criteria - [ ] `ConfigSidebar.svelte` `max_output_tokens` input allows up to 128000 - [ ] Tooltip or helper text updated to reflect the new per-model limits - [ ] Tests updated if validation constants changed ✨ 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#231