Skip to content

feat(site): add reasoning effort slider to the chat model selector#26977

Draft
DanielleMaywood wants to merge 1 commit into
dm/reasoning-effort-2-per-turnfrom
dm/reasoning-effort-4-selector-slider
Draft

feat(site): add reasoning effort slider to the chat model selector#26977
DanielleMaywood wants to merge 1 commit into
dm/reasoning-effort-2-per-turnfrom
dm/reasoning-effort-4-selector-slider

Conversation

@DanielleMaywood

@DanielleMaywood DanielleMaywood commented Jul 2, 2026

Copy link
Copy Markdown
Contributor

Adds an "Effort" slider to the chat model selector dropdown, matching the Figma design: label with an info tooltip, a discrete slider, and a value badge (e.g. "Xhigh"), pinned below the model list.

Behavior

  • Rendered only when the selected model config has a max reasoning effort configured; slider steps span the provider's supported efforts up to the model's max.
  • Initialized from the chat's last_reasoning_effort when valid, else the model's default; re-clamps when switching models.
  • The selection is sent as reasoning_effort on chat creation, message send, and message edit (on edit only when the user changed the slider, so historical turns keep their original effort). The backend re-clamps regardless.
  • Wired into both the chat page composer and the new-chat create form.

Part of the reasoning effort stack (base: #26975).

🤖 Generated by Coder Agents on behalf of @DanielleMaywood

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant