Local-first AI coding agent desktop: Electron + Rust host core + pi Agent Harness + user-installable plugins
TypeScript ai-agentcoding-agentdesktop-appelectronglobali18nlocal-firstmcppipi-agentpi-desktoppluginsreactrusttypescript
refactor(composer): inline the reasoning slider under the menu entry (#417)
ushaioe1322ff92fe9
diff --git a/apps/desktop/src/features/chat/composer/ComposerModelPicker.tsx b/apps/desktop/src/features/chat/composer/ComposerModelPicker.tsxindex e972b763d..b9b46fcb3 100644--- a/apps/desktop/src/features/chat/composer/ComposerModelPicker.tsx+++ b/apps/desktop/src/features/chat/composer/ComposerModelPicker.tsx@@ -18,9 +18,9 @@ import type { useComposerModelMenu } from "./hooks/useComposerModelMenu";type ModelMenuController = ReturnType<typeof useComposerModelMenu>;/**- * Keys the native range input must own while focused. Without stopping- * propagation, ArrowLeft would leave the submenu for the menu root and- * Enter would re-commit the radio-list highlight instead of the slider.+ * Keys the native range input must own while focused. The menu root ignores+ * arrows, but stopping propagation keeps the keys unambiguous — they adjust+ * the level, never drive menu navigation — no matter where focus lands.*/const THINKING_SLIDER_KEYS = new Set(["ArrowLeft",@@ -76,9 +76,7 @@ export function ComposerModelPicker({modelGroups,flatModels,thinkingMenuLevels,- thinkingMode,showView,- showThinkingMode,selectModel,commitThinkingLevel,selectThinkingLevel,@@ -180,6 +178,61 @@ export function ComposerModelPicker({<span className="composer-menu-entry-value">{thinkingLabel}</span><IconChevronRight size={14} aria-hidden="true" /></button>+ {/* The slider sits directly under the Reasoning level entry+ (issue #417): one drag adjusts the level without entering the+ submenu, while the entry itself opens the classic radio list. */}+ {thinkingMenuLevels.length > 1 ? (+ <div className="composer-thinking-slider">+ <input+ ref={thinkingSliderRef}+ type="range"+ className="composer-thinking-range"+ min={0}+ max={thinkingMenuLevels.length - 1}+ step={1}+ value={thinkingSliderValue}+ aria-label={t("chat.reasoningLevel")}+ aria-valuetext={thinkingMenuLevels[thinkingSliderValue] ?? thinkingLevel}+ style={+ {+ "--composer-thinking-progress": `${thinkingSliderPercent}%`,+ } as CSSProperties+ }+ onChange={(event) => {+ const index = Number(event.target.value);+ setDragThinkingIndex(index);+ const level = thinkingMenuLevels[index];+ if (level && level !== thinkingLevel) void commitThinkingLevel(level);+ }}+ onBlur={() => setDragThinkingIndex(null)}+ onKeyDown={(event) => {+ if (THINKING_SLIDER_KEYS.has(event.key)) event.stopPropagation();+ }}+ />+ <div className="composer-thinking-ticks">+ {thinkingMenuLevels.map((level) => (+ <button+ key={level}+ type="button"+ className={`composer-thinking-tick ${thinkingLevel === level ? "active" : ""}`}+ role="menuitemradio"+ aria-checked={thinkingLevel === level}+ title={level}+ onClick={() => {+ if (level !== thinkingLevel) void commitThinkingLevel(level);+ }}+ onKeyDown={(event) => {+ // Enter must commit this tick in place, not run the+ // menu's list selection.+ if (event.key === "Enter") event.stopPropagation();+ }}+ >+ {level}+ </button>+ ))}+ </div>+ </div>+ ) : null}</div>) : (<>@@ -275,107 +328,23 @@ export function ComposerModelPicker({<div className="composer-thinking-heading">{t("chat.reasoningSupportedBy", { model: modelLabel })}</div>- {/* The value label is the gateway to the dropdown list (issue- #417): the slider is the default, but one click restores- the classic radio list for explicit selection. A- single-level binding has nothing to slide, so it renders- the radio list directly. */}- {thinkingMenuLevels.length > 1 ? (- <div className="composer-thinking-mode">+ <div className="composer-thinking-list" ref={thinkingListRef}>+ {thinkingMenuLevels.map((level, index) => (<button+ key={level}type="button"- className="composer-thinking-value"- role="menuitem"- aria-expanded={thinkingMode === "list"}- title={- thinkingMode === "list"- ? t("chat.reasoningSliderAdjust")- : t("chat.reasoningLevelList")- }- aria-label={`${t("chat.reasoningLevel")}: ${thinkingLevel}`}- onClick={() =>- showThinkingMode(thinkingMode === "list" ? "slider" : "list")- }- onKeyDown={(event) => {- // Enter must toggle, not run the menu's list selection.- if (event.key === "Enter") event.stopPropagation();- }}+ data-thinking-index={index}+ className={`composer-plus-item ${thinkingLevel === level ? "active" : ""} ${thinkingHighlight === index ? "kb-active" : ""}`}+ role="menuitemradio"+ aria-checked={thinkingLevel === level}+ onMouseMove={() => setThinkingHighlight(index)}+ onClick={() => void selectThinkingLevel(level)}>- <span className="composer-thinking-value-level">{thinkingLevel}</span>- <IconChevronDown size={12} aria-hidden="true" />+ <span className="flex-1">{level}</span>+ {thinkingLevel === level ? <IconCheck size={14} className="composer-model-check" aria-hidden="true" /> : null}</button>- </div>- ) : null}- {thinkingMode === "slider" && thinkingMenuLevels.length > 1 ? (- <div className="composer-thinking-slider">- <input- ref={thinkingSliderRef}- type="range"- className="composer-thinking-range"- min={0}- max={thinkingMenuLevels.length - 1}- step={1}- value={thinkingSliderValue}- aria-label={t("chat.reasoningLevel")}- aria-valuetext={thinkingMenuLevels[thinkingSliderValue] ?? thinkingLevel}- style={- {- "--composer-thinking-progress": `${thinkingSliderPercent}%`,- } as CSSProperties- }- onChange={(event) => {- const index = Number(event.target.value);- setDragThinkingIndex(index);- const level = thinkingMenuLevels[index];- if (level && level !== thinkingLevel) void commitThinkingLevel(level);- }}- onBlur={() => setDragThinkingIndex(null)}- onKeyDown={(event) => {- if (THINKING_SLIDER_KEYS.has(event.key)) event.stopPropagation();- }}- />- <div className="composer-thinking-ticks">- {thinkingMenuLevels.map((level) => (- <button- key={level}- type="button"- className={`composer-thinking-tick ${thinkingLevel === level ? "active" : ""}`}- role="menuitemradio"- aria-checked={thinkingLevel === level}- title={level}- onClick={() => {- if (level !== thinkingLevel) void commitThinkingLevel(level);- }}- onKeyDown={(event) => {- // Enter must commit this tick in place, not run the- // menu's list selection and return to the root.- if (event.key === "Enter") event.stopPropagation();- }}- >- {level}- </button>- ))}- </div>- </div>- ) : (- <div className="composer-thinking-list" ref={thinkingListRef}>- {thinkingMenuLevels.map((level, index) => (- <button- key={level}- type="button"- data-thinking-index={index}- className={`composer-plus-item ${thinkingLevel === level ? "active" : ""} ${thinkingHighlight === index ? "kb-active" : ""}`}- role="menuitemradio"- aria-checked={thinkingLevel === level}- onMouseMove={() => setThinkingHighlight(index)}- onClick={() => void selectThinkingLevel(level)}- >- <span className="flex-1">{level}</span>- {thinkingLevel === level ? <IconCheck size={14} className="composer-model-check" aria-hidden="true" /> : null}- </button>- ))}- </div>- )}+ ))}+ </div></>)}</>diff --git a/apps/desktop/src/features/chat/composer/hooks/useComposerModelMenu.ts b/apps/desktop/src/features/chat/composer/hooks/useComposerModelMenu.tsindex f6bbb6011..eb29986dc 100644--- a/apps/desktop/src/features/chat/composer/hooks/useComposerModelMenu.ts+++ b/apps/desktop/src/features/chat/composer/hooks/useComposerModelMenu.ts@@ -20,7 +20,6 @@ import {thinkingLevelForProvider,thinkingProviderForModel,type ComposerMenuView,- type ThinkingSelectionMode,} from "../model";type UseComposerModelMenuOptions = {@@ -52,7 +51,6 @@ export function useComposerModelMenu({const [query, setQuery] = useState("");const [modelHighlight, setModelHighlight] = useState(-1);const [thinkingHighlight, setThinkingHighlight] = useState(-1);- const [thinkingMode, setThinkingMode] = useState<ThinkingSelectionMode>("slider");const rootMenuRef = useRef<HTMLDivElement>(null);const modelSearchRef = useRef<HTMLInputElement>(null);const modelListRef = useRef<HTMLDivElement>(null);@@ -160,7 +158,6 @@ export function useComposerModelMenu({setQuery("");setModelHighlight(-1);setThinkingHighlight(-1);- setThinkingMode("slider");}, [open]);useEffect(() => {@@ -172,28 +169,19 @@ export function useComposerModelMenu({requestAnimationFrame(() => {if (view === "root") rootMenuRef.current?.querySelector<HTMLButtonElement>("button")?.focus();if (view === "model") modelSearchRef.current?.focus();- if (view === "thinking") {- // The slider is the default surface: focus its input so arrows land- // in the slider instead of the radio list. A single-level binding- // renders the radio list directly, so focus its first row instead.- if (thinkingMode === "slider" && thinkingMenuLevels.length > 1) {- thinkingSliderRef.current?.focus();- } else {- thinkingListRef.current?.querySelector<HTMLButtonElement>("button")?.focus();- }- }+ if (view === "thinking") thinkingListRef.current?.querySelector<HTMLButtonElement>("button")?.focus();if (view === "model" && modelHighlight >= 0) {modelListRef.current?.querySelector(`[data-model-index="${modelHighlight}"]`)?.scrollIntoView({ block: "nearest" });}- if (view === "thinking" && thinkingMode === "list" && thinkingHighlight >= 0) {+ if (view === "thinking" && thinkingHighlight >= 0) {thinkingListRef.current?.querySelector(`[data-thinking-index="${thinkingHighlight}"]`)?.scrollIntoView({ block: "nearest" });}});- }, [open, thinkingMenuLevels.length, thinkingMode, view]);+ }, [open, view]);useEffect(() => {if (!open || view !== "model" || modelHighlight < 0) return;@@ -213,8 +201,6 @@ export function useComposerModelMenu({setView(nextView);setModelHighlight(-1);setThinkingHighlight(-1);- // Entering the reasoning submenu always restarts on the slider (issue #417).- if (nextView === "thinking") setThinkingMode("slider");if (nextView !== "model") setQuery("");};@@ -252,22 +238,10 @@ export function useComposerModelMenu({};/**- * Toggle the reasoning submenu between its slider and radio-list- * presentations. The list opens with the current level highlighted so- * Up/Down/Enter behave exactly as before the slider existed.- */- const showThinkingMode = (mode: ThinkingSelectionMode) => {- setThinkingMode(mode);- setThinkingHighlight(- mode === "list" ? thinkingMenuLevels.indexOf(thinkingLevel) : -1,- );- };-- /**- * Commit a reasoning level while staying in the reasoning submenu, so a- * dragged slider or a tick click keeps its surface for further tweaks.- * Returns false when the configuration is rejected, mirroring the list- * selection path's error contract.+ * Commit a reasoning level without leaving the menu surface, so a dragged+ * root slider or a tick click keeps the menu where it is. Returns false+ * when the configuration is rejected, mirroring the list selection path's+ * error contract.** A drag can emit one commit per crossed stop. Idle sessions persist each* configure directly, so concurrent promises could resolve out of order and@@ -373,9 +347,7 @@ export function useComposerModelMenu({modelGroups: filteredModelGroups,flatModels,thinkingMenuLevels,- thinkingMode,showView,- showThinkingMode,selectModel,commitThinkingLevel,selectThinkingLevel,diff --git a/apps/desktop/src/features/chat/composer/model.ts b/apps/desktop/src/features/chat/composer/model.tsindex 2300465fd..a2dac7c19 100644--- a/apps/desktop/src/features/chat/composer/model.ts+++ b/apps/desktop/src/features/chat/composer/model.ts@@ -69,12 +69,6 @@ export type ComposerFileReference = {export type ComposerMenuView = "root" | "model" | "thinking";-/**- * How the reasoning submenu presents its levels: a draggable slider by- * default, with the radio list one value-label click away (issue #417).- */-export type ThinkingSelectionMode = "slider" | "list";-export type PromptEnhancementError = {message: string;code: string;diff --git a/apps/desktop/src/styles/composer-menus.css b/apps/desktop/src/styles/composer-menus.cssindex 85d0231bb..8e1a8fbcc 100644--- a/apps/desktop/src/styles/composer-menus.css+++ b/apps/desktop/src/styles/composer-menus.css@@ -235,41 +235,8 @@overflow-y: auto;}-/* Reasoning slider (issue #417): the submenu leads with a drag slider; the- value label toggles the classic radio list for dropdown selection. */-.composer-thinking-mode {- display: flex;- justify-content: flex-end;- padding: 0 4px 4px;-}--.composer-thinking-value {- display: inline-flex;- min-height: 24px;- align-items: center;- gap: 4px;- border-radius: var(--radius-sm);- padding: 0 8px;- background: var(--ds-tile-deep);- color: var(--ds-accent);- font-size: var(--text-sm);- line-height: var(--leading-compact);- cursor: pointer;- transition:- background var(--motion-duration-fast) var(--motion-ease-out),- color var(--motion-duration-fast) var(--motion-ease-out);-}--.composer-thinking-value:hover,-.composer-thinking-value:focus-visible {- background: var(--ds-bg-hover);- color: var(--ds-text-primary);-}--.composer-thinking-value > svg {- color: var(--ds-text-muted);-}-+/* Reasoning slider (issue #417): the menu root carries the slider directly+ under the Reasoning level entry; the entry opens the classic radio list. */.composer-thinking-slider {display: flex;flex-direction: column;diff --git a/apps/desktop/test/composer-model-thinking-menu.test.mjs b/apps/desktop/test/composer-model-thinking-menu.test.mjsindex b3d0fb547..dcb4a3049 100644--- a/apps/desktop/test/composer-model-thinking-menu.test.mjs+++ b/apps/desktop/test/composer-model-thinking-menu.test.mjs@@ -30,32 +30,32 @@ test("model and reasoning selection return to the root without closing", () => {assert.match(composerSource, /setView\("root"\);[\s\S]*?setThinkingHighlight\(-1\)/);assert.match(composerSource, /const thinkingMenuLevels: ThinkingLevel\[\] = availableThinkingLevels\.length/);});-test("the reasoning submenu leads with a slider and keeps the list behind the value label", () => {- assert.match(composerSource, /const \[thinkingMode, setThinkingMode\] = useState<ThinkingSelectionMode>\("slider"\)/);- assert.match(composerSource, /showThinkingMode\(thinkingMode === "list" \? "slider" : "list"\)/);- assert.match(composerSource, /aria-expanded=\{thinkingMode === "list"\}/);+test("the menu root carries the reasoning slider under the reasoning entry", () => {+ // The root view renders the slider directly beneath the Reasoning level+ // entry; the entry itself still opens the classic radio-list submenu.+ assert.match(composerSource, /onClick=\{\(\) => showView\("thinking"\)\}[\s\S]*?className="composer-thinking-slider"/);+ assert.match(composerSource, /\{thinkingMenuLevels\.length > 1 \? \(\s*<div className="composer-thinking-slider">/);assert.match(composerSource, /type="range"/);assert.match(composerSource, /className="composer-thinking-range"/);assert.match(composerSource, /aria-label=\{t\("chat.reasoningLevel"\)\}/);+ assert.match(composerSource, /aria-valuetext=\{thinkingMenuLevels\[thinkingSliderValue\] \?\? thinkingLevel\}/);assert.match(composerSource, /const commitThinkingLevel = async/);assert.match(composerSource, /if \(!\(await commitThinkingLevel\(level\)\)\) return;/);assert.match(composerSource, /if \(level && level !== thinkingLevel\) void commitThinkingLevel\(level\);/);- // The slider owns its arrow/Home/End keys; ArrowLeft must not leave the submenu.+ // The slider owns its arrow/Home/End keys so they adjust the level+ // instead of driving the menu's list navigation.assert.match(composerSource, /if \(THINKING_SLIDER_KEYS\.has\(event\.key\)\) event\.stopPropagation\(\);/);assert.match(composerSource, /composer-thinking-tick/);+ // A drag can emit one commit per crossed stop; sends serialize so+ // out-of-order configure responses cannot land a stale level.+ assert.match(composerSource, /thinkingCommitChainRef/);assert.match(stylesSource, /\.composer-thinking-range::-webkit-slider-runnable-track/);assert.match(stylesSource, /\.composer-thinking-range::-webkit-slider-thumb/);assert.match(stylesSource, /\.composer-thinking-range::-moz-range-thumb/);assert.match(stylesSource, /\.composer-thinking-tick\.active\s*\{/);+ // The slider/list toggle machinery is gone: one surface, one behavior.+ assert.doesNotMatch(composerSource, /thinkingMode|showThinkingMode|ThinkingSelectionMode/);});- // A single-level binding renders the radio list directly; the slider and- // its value toggle only exist when there is more than one stop.- assert.match(composerSource, /\{thinkingMenuLevels\.length > 1 \? \(\s*<div className="composer-thinking-mode">/);- assert.match(composerSource, /thinkingMode === "slider" && thinkingMenuLevels\.length > 1 \? \(/);- assert.match(composerSource, /thinkingMode === "slider" && thinkingMenuLevels\.length > 1\) \{/);- // Drag commits serialize so out-of-order configure responses cannot land a stale level.- assert.match(composerSource, /thinkingCommitChainRef/);- assert.match(composerSource, /aria-valuetext=\{thinkingMenuLevels\[thinkingSliderValue\] \?\? thinkingLevel\}/);test("opening the combined menu preloads model metadata before its submenu", () => {assert.match(diff --git a/docs/spec/04-ux/07-ui-design-system.md b/docs/spec/04-ux/07-ui-design-system.mdindex 399edd895..5084097fa 100644--- a/docs/spec/04-ux/07-ui-design-system.md+++ b/docs/spec/04-ux/07-ui-design-system.md@@ -905,16 +905,16 @@ The composer renders only controls connected to the active pi session:trigger shows a Bot icon, the current model, and reasoning level; `off` omitsthe level text. Its single `role="menu"`popover opens above the trigger at `bottom: calc(100% + 8px)` and starts with- exactly two current-value entries. Each entry replaces the menu contents- in-place with a back row and its submenu. The Model submenu contains search- plus sticky provider groups. Each model row begins at one tab stop beneath- its provider heading, making the provider → model hierarchy legible without- altering the model label. The Reasoning submenu leads with the current- level as a value label plus a drag slider across the selected provider's- real `supportedThinkingLevels`; the value label toggles the radio list with- a selected-row check. Slider commits apply without leaving the submenu,- while selecting from the list returns to the root without dismissing the- popover.+ exactly two current-value entries. When the binding enables more than one+ level, a drag slider across the selected provider's real+ `supportedThinkingLevels` sits directly beneath the Reasoning level entry;+ slider and tick commits apply without leaving the root. Each entry replaces+ the menu contents in-place with a back row and its submenu. The Model+ submenu contains search plus sticky provider groups. Each model row begins+ at one tab stop beneath its provider heading, making the provider → model+ hierarchy legible without altering the model label. The Reasoning submenu+ lists the enabled levels as radio rows with a selected-row check; selecting+ from the list returns to the root without dismissing the popover.- While the active session is running, the draft and runtime controls stayeditable as next-turn choices; only Send is disabled. Host configurationremains pinned for the in-flight turn and the latest queued choice isdiff --git a/docs/spec/04-ux/08-component-spec.md b/docs/spec/04-ux/08-component-spec.mdindex dfcbce7c6..a5b11a622 100644--- a/docs/spec/04-ux/08-component-spec.md+++ b/docs/spec/04-ux/08-component-spec.md@@ -2682,12 +2682,13 @@ reasoning-level control.live discovery updates them in the background without replacing a configuredalias with the wire ID or a second visible name.- The combined model × reasoning menu opens at `bottom: calc(100% + 8px)` with- `role="menu"`. Its root has exactly two `role="menuitem"` entries. The Model- submenu has a search input and sticky provider headings, while the Reasoning- level submenu starts with `Current model <model> supports these reasoning- levels`, a value label carrying the current level, and a drag slider with- one labeled stop per enabled level in canonical order (D432). The value- label toggles the classic radio list of levels.+ `role="menu"`. Its root has exactly two `role="menuitem"` entries and, when+ the binding enables more than one level, a drag slider with one labeled+ stop per enabled level directly beneath the Reasoning level entry (D432).+ The Model submenu has a search input and sticky provider headings, while+ the Reasoning level submenu starts with `Current model <model> supports+ these reasoning levels` and lists the binding's enabled levels as the+ classic radio rows.Model-row reasoning badges use published reasoning metadata; vision badgesuse the effective image-input capability for the row's provider binding(`supportsImages` when explicitly set, published image input otherwise).@@ -2695,10 +2696,8 @@ reasoning-level control.trailing check. Selecting a concrete model, or a level from the radio list,persists the complete session config, clears model filtering, and returnsto the root without dismissing the menu; slider and tick commits persist- the level while staying in the submenu. Closing and reopening always starts- at the root, and entering the Reasoning submenu always restarts on the- slider; a binding with a single enabled level renders the radio list- directly.+ the level while the menu stays where it is. Closing and reopening always+ starts at the root.- Unknown Custom/OpenAI-compatible models remain at `off` until the userexplicitly enables a level in Settings. The menu never auto-infers reasoningsupport; after an explicit binding selection it renders the configured level.diff --git a/docs/spec/06-delivery/04-e2e-test-plan.md b/docs/spec/06-delivery/04-e2e-test-plan.mdindex 31125ea23..4ebb9bd34 100644--- a/docs/spec/06-delivery/04-e2e-test-plan.md+++ b/docs/spec/06-delivery/04-e2e-test-plan.md@@ -3202,26 +3202,27 @@ identify the platform validation still needed.- **Preconditions**: One catalogued reasoning model, one non-reasoning model,and one unknown free-form model id.- **Steps**: 1) Open the Composer model × reasoning chip. 2) Confirm the root- contains only Model and Reasoning level entries with current values. 3) Open- Model, search for a model, and select a model from a provider group. 4) Confirm- the menu remains open at the root, then open Reasoning level, drag and click- the slider across multiple supported levels, click a tick label, then click- the value label to reveal the radio list and choose a level from it. 5)- Repeat with a non-reasoning provider and an unknown free-form model id;- exercise Escape, outside click, Up/Down, Enter, Left, and the slider's- arrow keys.+ contains the Model and Reasoning level entries with current values, plus a+ slider with one labeled stop per supported level directly beneath the+ Reasoning level entry. 3) Drag and click the slider across multiple+ supported levels and click a tick label, confirming the chip updates while+ the menu stays at the root. 4) Open Model, search for a model, and select a+ model from a provider group; confirm the menu remains open at the root.+ 5) Open Reasoning level and choose a level from the radio list. 6) Repeat+ with a non-reasoning provider and an unknown free-form model id; exercise+ Escape, outside click, Up/Down, Enter, Left, and the slider's arrow keys.- **Expected**: The chip is in the right toolbar with a Bot icon, before thestandalone prompt-enhancement Sparkles action and Send/Abort; Off omits thelevel text. The single anchored menu replaces its rootwith an in-place back row and submenu, never opens tabs or a second popover,and always reopens at the root. Model search filters sticky provider groups;reasoning levels come from the selected model binding's explicit binding- levels in canonical order. The submenu opens on a slider with one labeled- stop per level and the current level as a value label (a single-level- binding renders the radio list directly); slider and tick- commits update the chip immediately without leaving the submenu, and the- value label toggles the radio list, which uses radio semantics and a- trailing check and shows the current model support note. Selecting either+ levels in canonical order. The root carries a drag slider with one labeled+ stop per level directly beneath the Reasoning level entry when more than+ one level is enabled (a single-level binding hides the slider); slider and+ tick commits update the chip immediately while the menu stays at the root.+ The Reasoning level entry opens the radio list, which uses radio semantics,+ a trailing check, and the current model support note. Selecting eithervalue immediately updates the chip and root value, clears model filtering,and keeps the menu open. Anon-reasoning or unknown model starts at `off`, but an explicit Settingsdiff --git a/docs/spec/08-meta/decisions-log.md b/docs/spec/08-meta/decisions-log.mdindex b6d86308b..6acbc597b 100644--- a/docs/spec/08-meta/decisions-log.md+++ b/docs/spec/08-meta/decisions-log.md@@ -5418,22 +5418,25 @@ that was sitting at the bottom — including after the turn had finished.and every translation. See ADR 0251, D421, andE2E-PROJECT-delete-running-sessions-are-named-and-stopped.-## 2026-09-16 — The reasoning submenu leads with a slider (#417, D432)--- The Composer's Reasoning level submenu opened directly into a vertical radio- list. Issue #417 asked for a Codex-desktop-style slider while keeping the- existing click-to-list interaction.-- The submenu now opens with the support note, the current level as a value- label, and a native range input with one stop per enabled level plus a- clickable tick label per stop. Dragging the slider or clicking a tick+## 2026-09-16 — The menu root carries the reasoning slider (#417, D432)++- The Composer's Reasoning level selection lived only inside a vertical radio+ list one submenu deep. Issue #417 asked for a Codex-desktop-style slider+ while keeping the existing click-to-list interaction.+- The combined model × reasoning menu root now shows a native range input with+ one stop per enabled level plus a clickable tick label per stop, directly+ beneath the Reasoning level entry. Dragging the slider or clicking a tickcommits the level immediately through the same `configureActiveSession`- path and stays in the submenu for further tweaks; the value label toggles- the classic radio list, which keeps its radio semantics, trailing check,+ path and leaves the menu where it is, so quick adjustments never cost a+ submenu trip. The Reasoning level entry itself still opens the classic+ radio list, which keeps its radio semantics, trailing check,Up/Down/Enter/Left contract, and root-return behavior.-- The slider owns its arrow/Home/End/Enter keys while focused, so ArrowLeft- no longer leaves the submenu from the slider, while Escape still closes the- menu. Entering the submenu or reopening the menu always restarts on the- slider.+- The slider owns its arrow/Home/End/Enter keys while focused, so those keys+ adjust the level instead of driving menu navigation, while Escape still+ closes the menu. A drag can emit one commit per crossed stop, so commits+ serialize behind a promise chain and a local drag lead keeps the controlled+ input from snapping back while the store confirmation lands; a binding with+ a single enabled level hides the slider entirely.- Level values remain untranslated canonical strings, and the seven-levelladder, provider filtering, and clamping rules are unchanged. Renderer only:no protocol, storage, host, permission, or migration change. Seediff --git a/packages/i18n/src/locales/de/index.ts b/packages/i18n/src/locales/de/index.tsindex 9b42004e6..37b0880e1 100644--- a/packages/i18n/src/locales/de/index.ts+++ b/packages/i18n/src/locales/de/index.ts@@ -503,8 +503,6 @@ export const de = {"permissionMode": "Berechtigungsmodus","reasoningLevel": "Argumentationsebene","reasoningSupportedBy": "Aktuelles Modell {{model}} unterstützt diese Argumentationsebenen",- "reasoningLevelList": "Aus Liste wählen",- "reasoningSliderAdjust": "Mit Schieberegler anpassen","permissionInherit": "Standard","permissionAsk": "Immer nachfragen","permissionAcceptEdits": "Änderungen akzeptieren",diff --git a/packages/i18n/src/locales/en/index.ts b/packages/i18n/src/locales/en/index.tsindex b1212e126..8969cc355 100644--- a/packages/i18n/src/locales/en/index.ts+++ b/packages/i18n/src/locales/en/index.ts@@ -510,8 +510,6 @@ export const en = {permissionMode: "Permission mode",reasoningLevel: "Reasoning level",reasoningSupportedBy: "Current model {{model}} supports these reasoning levels",- reasoningLevelList: "Choose from list",- reasoningSliderAdjust: "Adjust with slider",permissionInherit: "Default",permissionAsk: "Ask every time",permissionAcceptEdits: "Accept edits",diff --git a/packages/i18n/src/locales/es/index.ts b/packages/i18n/src/locales/es/index.tsindex fffb46548..d6ca67969 100644--- a/packages/i18n/src/locales/es/index.ts+++ b/packages/i18n/src/locales/es/index.ts@@ -503,8 +503,6 @@ export const es = {"permissionMode": "Modo de permiso","reasoningLevel": "Nivel de razonamiento","reasoningSupportedBy": "El modelo actual {{model}} admite estos niveles de razonamiento",- "reasoningLevelList": "Elegir de la lista",- "reasoningSliderAdjust": "Ajustar con el control deslizante","permissionInherit": "Predeterminado","permissionAsk": "Preguntar siempre","permissionAcceptEdits": "Aceptar ediciones",diff --git a/packages/i18n/src/locales/fr/index.ts b/packages/i18n/src/locales/fr/index.tsindex 836b0f928..aef3cff6f 100644--- a/packages/i18n/src/locales/fr/index.ts+++ b/packages/i18n/src/locales/fr/index.ts@@ -503,8 +503,6 @@ export const fr = {"permissionMode": "Mode d'autorisation","reasoningLevel": "Niveau de raisonnement","reasoningSupportedBy": "Le modèle actuel {{model}} prend en charge ces niveaux de raisonnement",- "reasoningLevelList": "Choisir dans la liste",- "reasoningSliderAdjust": "Ajuster avec le curseur","permissionInherit": "Par défaut","permissionAsk": "Demander à chaque fois","permissionAcceptEdits": "Accepter les modifications",diff --git a/packages/i18n/src/locales/ko/index.ts b/packages/i18n/src/locales/ko/index.tsindex e49942c84..9cd491dc0 100644--- a/packages/i18n/src/locales/ko/index.ts+++ b/packages/i18n/src/locales/ko/index.ts@@ -512,8 +512,6 @@ export const ko = {permissionMode: "권한 모드",reasoningLevel: "추론 수준",reasoningSupportedBy: "현재 모델 {{model}}은(는) 다음 추론 수준을 지원합니다",- reasoningLevelList: "목록에서 선택",- reasoningSliderAdjust: "슬라이더로 조정",permissionInherit: "기본값",permissionAsk: "매번 묻기",permissionAcceptEdits: "편집 허용",diff --git a/packages/i18n/src/locales/tr/index.ts b/packages/i18n/src/locales/tr/index.tsindex 4a5633019..08c1e5803 100644--- a/packages/i18n/src/locales/tr/index.ts+++ b/packages/i18n/src/locales/tr/index.ts@@ -512,8 +512,6 @@ export const tr = {permissionMode: "İzin kipi",reasoningLevel: "Akıl yürütme düzeyi",reasoningSupportedBy: "Geçerli model {{model}} bu akıl yürütme düzeylerini destekliyor",- reasoningLevelList: "Listeden seç",- reasoningSliderAdjust: "Kaydırıcıyla ayarla",permissionInherit: "Varsayılan",permissionAsk: "Her seferinde sor",permissionAcceptEdits: "Düzenlemeleri kabul et",diff --git a/packages/i18n/src/locales/zh-CN/index.ts b/packages/i18n/src/locales/zh-CN/index.tsindex ebae54fd3..0ec901bbb 100644--- a/packages/i18n/src/locales/zh-CN/index.ts+++ b/packages/i18n/src/locales/zh-CN/index.ts@@ -508,8 +508,6 @@ export const zhCN = {permissionMode: "权限模式",reasoningLevel: "推理等级",reasoningSupportedBy: "当前模型 {{model}} 支持的推理等级",- reasoningLevelList: "从列表选择",- reasoningSliderAdjust: "滑动调整",permissionInherit: "跟随默认",permissionAsk: "每次询问",permissionAcceptEdits: "允许编辑",diff --git a/packages/i18n/src/locales/zh-TW/index.ts b/packages/i18n/src/locales/zh-TW/index.tsindex 0eb20073f..cb4fa1c17 100644--- a/packages/i18n/src/locales/zh-TW/index.ts+++ b/packages/i18n/src/locales/zh-TW/index.ts@@ -508,8 +508,6 @@ export const zhTW = {permissionMode: "許可權模式",reasoningLevel: "推理等級",reasoningSupportedBy: "當前模型 {{model}} 支援的推理等級",- reasoningLevelList: "從列表選擇",- reasoningSliderAdjust: "滑動調整",permissionInherit: "跟隨預設",permissionAsk: "每次詢問",permissionAcceptEdits: "允許編輯",