Skip to content

The agent that grows with you

fix(desktop,tui): reasoning pill and effort rows say ultra sends max on this route

teknium1171a1777b52f
diff --git a/apps/desktop/src/app/chat/composer/model-pill.test.tsx b/apps/desktop/src/app/chat/composer/model-pill.test.tsx
index 6d569d6fa13..79d9248330e 100644
--- a/apps/desktop/src/app/chat/composer/model-pill.test.tsx
+++ b/apps/desktop/src/app/chat/composer/model-pill.test.tsx
@@ -144,6 +144,7 @@ describe('ModelPill per-surface model label', () => {
$model: atom('tile/claude-sonnet'),
$provider: atom('anthropic'),
$reasoningEffort: atom('high'),
+ $reasoningEffortWire: atom(''),
$runtimeId: atom('tile-runtime'),
$storedId: atom('stored-tile'),
$turnStartedAt: atom<number | null>(null)
diff --git a/apps/desktop/src/app/chat/composer/reasoning-pill.test.tsx b/apps/desktop/src/app/chat/composer/reasoning-pill.test.tsx
index c79aa7d9965..1498f46f410 100644
--- a/apps/desktop/src/app/chat/composer/reasoning-pill.test.tsx
+++ b/apps/desktop/src/app/chat/composer/reasoning-pill.test.tsx
@@ -16,7 +16,7 @@ const modelState = (over: Partial<ChatBarState['model']> = {}): ChatBarState['mo
...over
})
-const tileView = (reasoningEffort: string): SessionView => ({
+const tileView = (reasoningEffort: string, reasoningEffortWire = ''): SessionView => ({
kind: 'tile',
$awaitingResponse: atom(false),
$busy: atom(false),
@@ -28,6 +28,7 @@ const tileView = (reasoningEffort: string): SessionView => ({
$model: atom('tile/claude-sonnet'),
$provider: atom('anthropic'),
$reasoningEffort: atom(reasoningEffort),
+ $reasoningEffortWire: atom(reasoningEffortWire),
$runtimeId: atom('tile-runtime'),
$storedId: atom('stored-tile'),
$turnStartedAt: atom<number | null>(null)
@@ -39,6 +40,32 @@ afterEach(() => {
})
describe('ReasoningPill', () => {
+ it('shows a clamped pick as what the route sends, never as a distinct level (#61634)', () => {
+ // The gateway says this route clamps `ultra` to `max`: compact "Ultra→Max",
+ // tooltip in the CLI's `/reasoning` wording.
+ const { unmount } = render(
+ <SessionViewProvider value={tileView('ultra', 'max')}>
+ <ReasoningPill disabled={false} model={modelState()} />
+ </SessionViewProvider>
+ )
+
+ const pill = screen.getByTestId('reasoning-pill')
+
+ expect(pill.textContent).toBe('Ultra→Max')
+ expect(pill.getAttribute('aria-label')).toBe('Effort: Ultra (sends Max on this route)')
+ unmount()
+
+ // A verbatim wire level (or one the gateway has not stamped yet) makes no claim.
+ render(
+ <SessionViewProvider value={tileView('high', 'high')}>
+ <ReasoningPill disabled={false} model={modelState()} />
+ </SessionViewProvider>
+ )
+
+ expect(screen.getByTestId('reasoning-pill').textContent).toBe('High')
+ expect(screen.getByTestId('reasoning-pill').getAttribute('aria-label')).toBe('Effort: High')
+ })
+
it("shows THIS surface's live effort, falling back to the profile default when the session has none", () => {
$defaultReasoningEffort.set('high')
diff --git a/apps/desktop/src/app/chat/composer/reasoning-pill.tsx b/apps/desktop/src/app/chat/composer/reasoning-pill.tsx
index d13700ced17..2e0818678aa 100644
--- a/apps/desktop/src/app/chat/composer/reasoning-pill.tsx
+++ b/apps/desktop/src/app/chat/composer/reasoning-pill.tsx
@@ -10,7 +10,7 @@ import { releaseTypingFocus } from '@/components/ui/keyboard-first'
import { Tip } from '@/components/ui/tooltip'
import { useI18n } from '@/i18n'
import { ChevronDown } from '@/lib/icons'
-import { reasoningEffortLabel } from '@/lib/reasoning-effort'
+import { reasoningEffortClamp, reasoningEffortLabel } from '@/lib/reasoning-effort'
import { cn } from '@/lib/utils'
import { $defaultReasoningEffort } from '@/store/session'
@@ -34,6 +34,7 @@ export function ReasoningPill({ disabled, model }: { disabled: boolean; model: C
const copy = useI18n().t.shell.modelOptions
const view = useSessionView()
const reasoningEffort = useStore(view.$reasoningEffort)
+ const reasoningEffortWire = useStore(view.$reasoningEffortWire)
const defaultEffort = useStore($defaultReasoningEffort)
const [open, setOpen] = useState(false)
@@ -41,8 +42,16 @@ export function ReasoningPill({ disabled, model }: { disabled: boolean; model: C
return null
}
- const label = reasoningEffortLabel(reasoningEffort || defaultEffort || DEFAULT_REASONING_EFFORT)
- const title = `${copy.effort}: ${label}`
+ const effort = reasoningEffort || defaultEffort || DEFAULT_REASONING_EFFORT
+ // A clamped pick (`ultra` → `max`) keeps the pill compact ("Ultra→Max") and
+ // spells out the CLI's wording in the tooltip, so Ultra is never shown as a
+ // distinct wire level the route does not have (#61634).
+ const clamp = reasoningEffortClamp(effort, reasoningEffortWire)
+ const label = reasoningEffortLabel(effort, reasoningEffortWire)
+
+ const title = clamp
+ ? `${copy.effort}: ${copy[clamp.effort]} (${copy.sendsOnRoute(copy[clamp.wire])})`
+ : `${copy.effort}: ${label}`
// Closing the menu ends its claim on the keyboard: Radix restores focus to
// this pill (a toolbar button), so without the release the Enter that
diff --git a/apps/desktop/src/app/chat/session-tile.tsx b/apps/desktop/src/app/chat/session-tile.tsx
index c1b7836b348..0ee974ed593 100644
--- a/apps/desktop/src/app/chat/session-tile.tsx
+++ b/apps/desktop/src/app/chat/session-tile.tsx
@@ -149,6 +149,7 @@ function buildTileView(storedSessionId: string): SessionView {
$model: computed($state, state => state?.model ?? ''),
$provider: computed($state, state => state?.provider ?? ''),
$reasoningEffort: computed($state, state => state?.reasoningEffort ?? ''),
+ $reasoningEffortWire: computed($state, state => state?.reasoningEffortWire ?? ''),
$runtimeId,
// Constant for the tile's lifetime — a plain atom, not a computed.
$storedId: atom(storedSessionId),
diff --git a/apps/desktop/src/app/chat/session-view.tsx b/apps/desktop/src/app/chat/session-view.tsx
index ff084c5bcd6..4d9599b31c4 100644
--- a/apps/desktop/src/app/chat/session-view.tsx
+++ b/apps/desktop/src/app/chat/session-view.tsx
@@ -12,6 +12,7 @@ import {
$currentModel,
$currentProvider,
$currentReasoningEffort,
+ $currentReasoningEffortWire,
$messages,
$selectedStoredSessionId,
$turnStartedAt
@@ -58,6 +59,8 @@ export interface SessionView {
$provider: ReadableAtom<string>
$fast: ReadableAtom<boolean>
$reasoningEffort: ReadableAtom<string>
+ /** Gateway-reported level the route sends for `$reasoningEffort` ('' = unknown). */
+ $reasoningEffortWire: ReadableAtom<string>
}
/** The active session's own slice, or `undefined` while it's a draft. */
@@ -104,6 +107,7 @@ export const PRIMARY_SESSION_VIEW: SessionView = {
$model: primaryField<string>(state => state.model, $currentModel),
$provider: primaryField<string>(state => state.provider, $currentProvider),
$reasoningEffort: primaryField<string>(state => state.reasoningEffort, $currentReasoningEffort),
+ $reasoningEffortWire: primaryField<string>(state => state.reasoningEffortWire ?? '', $currentReasoningEffortWire),
$runtimeId: $activeSessionId,
$storedId: $selectedStoredSessionId,
$turnStartedAt: primaryField<number | null>(state => state.turnStartedAt, $turnStartedAt)
diff --git a/apps/desktop/src/app/contrib/hooks/use-session-tile-delegate.ts b/apps/desktop/src/app/contrib/hooks/use-session-tile-delegate.ts
index d58578e6dff..9e328360047 100644
--- a/apps/desktop/src/app/contrib/hooks/use-session-tile-delegate.ts
+++ b/apps/desktop/src/app/contrib/hooks/use-session-tile-delegate.ts
@@ -403,6 +403,9 @@ export function useSessionTileDelegate({
...(typeof info?.model === 'string' ? { model: info.model } : {}),
...(typeof info?.provider === 'string' ? { provider: info.provider } : {}),
...(typeof info?.reasoning_effort === 'string' ? { reasoningEffort: info.reasoning_effort } : {}),
+ ...(typeof info?.reasoning_effort_wire === 'string'
+ ? { reasoningEffortWire: info.reasoning_effort_wire }
+ : {}),
...(typeof info?.fast === 'boolean' ? { fast: info.fast } : {}),
messages:
state.messages.length > 0 ? state.messages : toChatMessages(prefetch?.messages ?? resumed?.messages ?? [])
diff --git a/apps/desktop/src/app/session/hooks/use-message-stream/gateway-event/session-info.ts b/apps/desktop/src/app/session/hooks/use-message-stream/gateway-event/session-info.ts
index 29a7b629ddc..84fa3b54f95 100644
--- a/apps/desktop/src/app/session/hooks/use-message-stream/gateway-event/session-info.ts
+++ b/apps/desktop/src/app/session/hooks/use-message-stream/gateway-event/session-info.ts
@@ -18,6 +18,7 @@ import {
setCurrentFastMode,
setCurrentPersonality,
setCurrentReasoningEffort,
+ setCurrentReasoningEffortWire,
setCurrentServiceTier,
setCurrentUsage,
setSessions,
@@ -242,6 +243,10 @@ export function handleSessionInfoEvent(ctx: GatewayEventContext): boolean {
setCurrentReasoningEffort(payload.reasoning_effort)
}
+ if (typeof payload?.reasoning_effort_wire === 'string') {
+ setCurrentReasoningEffortWire(payload.reasoning_effort_wire)
+ }
+
if (typeof payload?.service_tier === 'string') {
setCurrentServiceTier(payload.service_tier)
}
diff --git a/apps/desktop/src/app/session/hooks/use-message-stream/utils.ts b/apps/desktop/src/app/session/hooks/use-message-stream/utils.ts
index d93508c8ca6..7ff3859915b 100644
--- a/apps/desktop/src/app/session/hooks/use-message-stream/utils.ts
+++ b/apps/desktop/src/app/session/hooks/use-message-stream/utils.ts
@@ -7,7 +7,16 @@ import type { ClientSessionState } from '../../../types'
type SessionRuntimeStatePatch = Partial<
Pick<
ClientSessionState,
- 'branch' | 'cwd' | 'fast' | 'model' | 'personality' | 'provider' | 'reasoningEffort' | 'serviceTier' | 'yolo'
+ | 'branch'
+ | 'cwd'
+ | 'fast'
+ | 'model'
+ | 'personality'
+ | 'provider'
+ | 'reasoningEffort'
+ | 'reasoningEffortWire'
+ | 'serviceTier'
+ | 'yolo'
>
>
@@ -38,6 +47,10 @@ export function sessionInfoStatePatch(payload: GatewayEventPayload | undefined):
patch.reasoningEffort = payload.reasoning_effort
}
+ if (typeof payload?.reasoning_effort_wire === 'string') {
+ patch.reasoningEffortWire = payload.reasoning_effort_wire
+ }
+
if (typeof payload?.service_tier === 'string') {
patch.serviceTier = payload.service_tier
}
diff --git a/apps/desktop/src/app/session/hooks/use-session-actions/utils.ts b/apps/desktop/src/app/session/hooks/use-session-actions/utils.ts
index e0c5e52b093..0a1917b4753 100644
--- a/apps/desktop/src/app/session/hooks/use-session-actions/utils.ts
+++ b/apps/desktop/src/app/session/hooks/use-session-actions/utils.ts
@@ -29,6 +29,7 @@ import {
setCurrentPersonality,
setCurrentProvider,
setCurrentReasoningEffort,
+ setCurrentReasoningEffortWire,
setCurrentServiceTier,
setCurrentUsage,
setMessagingSessions,
@@ -1689,7 +1690,16 @@ export async function resolveSessionOwner(storedSessionId: null | string): Promi
type SessionRuntimeStatePatch = Partial<
Pick<
ClientSessionState,
- 'branch' | 'cwd' | 'fast' | 'model' | 'personality' | 'provider' | 'reasoningEffort' | 'serviceTier' | 'yolo'
+ | 'branch'
+ | 'cwd'
+ | 'fast'
+ | 'model'
+ | 'personality'
+ | 'provider'
+ | 'reasoningEffort'
+ | 'reasoningEffortWire'
+ | 'serviceTier'
+ | 'yolo'
>
>
@@ -1745,6 +1755,10 @@ function publishRuntimeToComposer(state: SessionRuntimeStatePatch): void {
setCurrentReasoningEffort(state.reasoningEffort)
}
+ if (state.reasoningEffortWire !== undefined) {
+ setCurrentReasoningEffortWire(state.reasoningEffortWire)
+ }
+
if (state.serviceTier !== undefined) {
setCurrentServiceTier(state.serviceTier)
}
@@ -1809,6 +1823,10 @@ export function applyRuntimeInfo(
sessionState.reasoningEffort = info.reasoning_effort
}
+ if (typeof info.reasoning_effort_wire === 'string') {
+ sessionState.reasoningEffortWire = info.reasoning_effort_wire
+ }
+
if (typeof info.service_tier === 'string') {
sessionState.serviceTier = info.service_tier
}
diff --git a/apps/desktop/src/app/session/hooks/use-session-state-cache.ts b/apps/desktop/src/app/session/hooks/use-session-state-cache.ts
index 2411a5c7c7a..3f2e198d3ae 100644
--- a/apps/desktop/src/app/session/hooks/use-session-state-cache.ts
+++ b/apps/desktop/src/app/session/hooks/use-session-state-cache.ts
@@ -16,6 +16,7 @@ import {
setCurrentPersonality,
setCurrentProvider,
setCurrentReasoningEffort,
+ setCurrentReasoningEffortWire,
setCurrentServiceTier,
setTurnStartedAt,
setYoloActive
@@ -44,6 +45,7 @@ function syncRuntimeMetadataToView(state: ClientSessionState) {
setCurrentModel(state.model ?? '')
setCurrentProvider(state.provider ?? '')
setCurrentReasoningEffort(state.reasoningEffort ?? '')
+ setCurrentReasoningEffortWire(state.reasoningEffortWire ?? '')
setCurrentServiceTier(state.serviceTier ?? '')
setCurrentFastMode(state.fast ?? false)
setYoloActive(state.yolo ?? false)
diff --git a/apps/desktop/src/app/settings/model-settings.tsx b/apps/desktop/src/app/settings/model-settings.tsx
index bf302fa2f31..80f841174cd 100644
--- a/apps/desktop/src/app/settings/model-settings.tsx
+++ b/apps/desktop/src/app/settings/model-settings.tsx
@@ -1,5 +1,5 @@
import type { ModelOptionProvider } from '@hermes/shared'
-import { DEFAULT_REASONING_EFFORT, REASONING_EFFORT_VALUES } from '@hermes/shared'
+import { DEFAULT_REASONING_EFFORT, isReasoningEffort, REASONING_EFFORT_VALUES } from '@hermes/shared'
import { useCallback, useEffect, useMemo, useRef, useState } from 'react'
import { Button } from '@/components/ui/button'
@@ -1136,8 +1136,9 @@ export function ModelSettings({ onMainModelChanged, scopeProfile }: ModelSetting
{' · '}
{current.reasoning_effort === 'none'
? `${m.reasoning} ${m.reasoningOff}`
- : (t.shell.modelOptions[current.reasoning_effort as keyof typeof t.shell.modelOptions] ??
- current.reasoning_effort)}
+ : (isReasoningEffort(current.reasoning_effort)
+ ? t.shell.modelOptions[current.reasoning_effort]
+ : current.reasoning_effort)}
</span>
)}
</span>
diff --git a/apps/desktop/src/app/shell/model-catalog-menu.tsx b/apps/desktop/src/app/shell/model-catalog-menu.tsx
index f99d8862c05..2dcdcf2c8e3 100644
--- a/apps/desktop/src/app/shell/model-catalog-menu.tsx
+++ b/apps/desktop/src/app/shell/model-catalog-menu.tsx
@@ -57,6 +57,8 @@ export const ModelMenuCloseContext = createContext<() => void>(() => {})
* `effort` is '' for "inherit the default" and 'none' for thinking off. */
export interface ModelChoice {
effort: string
+ /** Level the route actually sends for `effort` (`session.info.reasoning_effort_wire`); '' = unknown. */
+ effortWire?: string
fast: boolean
model: string
provider: string
@@ -516,7 +518,9 @@ export function ModelCatalogMenu({
const meta = [
fastControl.kind !== 'none' && fastControl.on ? copy.fast : null,
- (caps?.reasoning ?? true) ? reasoningEffortLabel(effEffort || defaultEffort) : null
+ (caps?.reasoning ?? true)
+ ? reasoningEffortLabel(effEffort || defaultEffort, isCurrent ? current.effortWire : undefined)
+ : null
]
.filter(Boolean)
.join(' ')
@@ -576,6 +580,7 @@ export function ModelCatalogMenu({
canDisableReasoning={caps?.can_disable_reasoning ?? undefined}
defaultEffort={defaultEffort}
effort={effEffort}
+ effortWire={isCurrent ? current.effortWire : undefined}
fastControl={fastControl}
isActive={isCurrent}
model={family.id}
diff --git a/apps/desktop/src/app/shell/model-edit-submenu.tsx b/apps/desktop/src/app/shell/model-edit-submenu.tsx
index 9b77c081fb0..f7b38ced10b 100644
--- a/apps/desktop/src/app/shell/model-edit-submenu.tsx
+++ b/apps/desktop/src/app/shell/model-edit-submenu.tsx
@@ -12,7 +12,7 @@ import {
} from '@/components/ui/dropdown-menu'
import { Switch } from '@/components/ui/switch'
import { useI18n } from '@/i18n'
-import { isThinkingEnabled, resolveReasoningEffort } from '@/lib/reasoning-effort'
+import { isThinkingEnabled, reasoningEffortClamp, resolveReasoningEffort } from '@/lib/reasoning-effort'
// Hermes' real reasoning levels live in lib/reasoning-effort; `none` is owned
// by the Thinking toggle, not the radio.
@@ -71,6 +71,9 @@ interface ModelEditSubmenuProps {
/** This row's effective reasoning effort (live for the active model, else its
* preset) — the submenu shows and edits from this, never the raw session. */
effort: string
+ /** Gateway-reported level the route actually sends for `effort` (active row
+ * only; '' = unknown). A clamped pick is spelled out on its radio row. */
+ effortWire?: string
/** How fast mode is offered for this model (param toggle vs. variant swap). */
fastControl: FastControl
/** Whether this row's model is the active one. */
@@ -109,6 +112,7 @@ export function ModelOptionsContent({
canDisableReasoning,
defaultEffort,
effort,
+ effortWire,
fastControl,
isActive,
onSelectModel,
@@ -119,6 +123,7 @@ export function ModelOptionsContent({
const copy = t.shell.modelOptions
const effortValue = resolveReasoningEffort(effort, defaultEffort)
+ const clamp = reasoningEffortClamp(effortValue, effortWire)
const thinkingOn = isThinkingEnabled(effort, defaultEffort)
const showThinkingToggle = reasoning && canDisableReasoning !== false
@@ -178,7 +183,7 @@ export function ModelOptionsContent({
onSelect={event => event.preventDefault()}
value={value}
>
- {copy[value]}
+ {clamp?.effort === value ? `${copy[value]} (${copy.sendsOnRoute(copy[clamp.wire])})` : copy[value]}
</DropdownMenuRadioItem>
))}
</DropdownMenuRadioGroup>
diff --git a/apps/desktop/src/app/shell/reasoning-menu-panel.tsx b/apps/desktop/src/app/shell/reasoning-menu-panel.tsx
index b50078df877..0837d1c5ebc 100644
--- a/apps/desktop/src/app/shell/reasoning-menu-panel.tsx
+++ b/apps/desktop/src/app/shell/reasoning-menu-panel.tsx
@@ -42,6 +42,7 @@ export function ReasoningMenuPanel(props: ModelMenuHostProps) {
canDisableReasoning={caps?.can_disable_reasoning ?? undefined}
defaultEffort={defaultEffort}
effort={controller.current.effort}
+ effortWire={controller.current.effortWire}
fastControl={resolveFastControl(
currentModel || model,
providerModels,
diff --git a/apps/desktop/src/app/shell/use-model-menu-controller.ts b/apps/desktop/src/app/shell/use-model-menu-controller.ts
index 738c2002454..ced8d91f0c8 100644
--- a/apps/desktop/src/app/shell/use-model-menu-controller.ts
+++ b/apps/desktop/src/app/shell/use-model-menu-controller.ts
@@ -58,6 +58,7 @@ export function useModelMenuController({
const currentModel = useStore(view.$model)
const currentProvider = useStore(view.$provider)
const currentReasoningEffort = useStore(view.$reasoningEffort)
+ const currentReasoningEffortWire = useStore(view.$reasoningEffortWire)
const modelPresets = useStore($modelPresets)
const defaultEffort = useStore($defaultReasoningEffort) || DEFAULT_REASONING_EFFORT
const touchesPrimary = view.kind === 'primary'
@@ -84,7 +85,12 @@ export function useModelMenuController({
markComposerSelectionManual()
setCurrentReasoningEffort(next)
} else if (activeSessionId) {
- sessionTileDelegate()?.updateSession(activeSessionId, state => ({ ...state, reasoningEffort: next }))
+ // The wire level belonged to the previous pick; the gateway re-stamps it.
+ sessionTileDelegate()?.updateSession(activeSessionId, state => ({
+ ...state,
+ reasoningEffort: next,
+ reasoningEffortWire: ''
+ }))
}
// Preset-only without a session: the gateway's `config.set` falls back to
@@ -100,7 +106,11 @@ export function useModelMenuController({
if (touchesPrimary) {
setCurrentReasoningEffort(previous)
} else {
- sessionTileDelegate()?.updateSession(activeSessionId, state => ({ ...state, reasoningEffort: previous }))
+ sessionTileDelegate()?.updateSession(activeSessionId, state => ({
+ ...state,
+ reasoningEffort: previous,
+ reasoningEffortWire: ''
+ }))
}
setModelPreset(provider, model, { effort: previous })
@@ -154,6 +164,7 @@ export function useModelMenuController({
current: {
effort: currentReasoningEffort,
+ effortWire: currentReasoningEffortWire,
fast: currentFastMode,
model: optionsModel,
provider: optionsProvider
diff --git a/apps/desktop/src/app/types.ts b/apps/desktop/src/app/types.ts
index 1c4efe0acaf..7ed0a6079d2 100644
--- a/apps/desktop/src/app/types.ts
+++ b/apps/desktop/src/app/types.ts
@@ -161,6 +161,9 @@ export interface ClientSessionState {
model: string
provider: string
reasoningEffort: string
+ /** Gateway-reported wire level for `reasoningEffort`; '' until the backend
+ * has stamped the current pick (so a clamp is never inferred client-side). */
+ reasoningEffortWire?: string
serviceTier: string
fast: boolean
yolo: boolean
diff --git a/apps/desktop/src/components/assistant-ui/connector-tool.test.tsx b/apps/desktop/src/components/assistant-ui/connector-tool.test.tsx
index 8c1ee3e57c8..381166d3593 100644
--- a/apps/desktop/src/components/assistant-ui/connector-tool.test.tsx
+++ b/apps/desktop/src/components/assistant-ui/connector-tool.test.tsx
@@ -71,6 +71,7 @@ function view(sessionId: string): SessionView {
$model: atom(''),
$provider: atom(''),
$reasoningEffort: atom(''),
+ $reasoningEffortWire: atom(''),
$runtimeId: atom(sessionId),
$storedId: atom(sessionId),
$turnStartedAt: atom(null),
diff --git a/apps/desktop/src/components/assistant-ui/mcp-setup-tool.test.tsx b/apps/desktop/src/components/assistant-ui/mcp-setup-tool.test.tsx
index 09ecdd1f0be..ad7ef6b646d 100644
--- a/apps/desktop/src/components/assistant-ui/mcp-setup-tool.test.tsx
+++ b/apps/desktop/src/components/assistant-ui/mcp-setup-tool.test.tsx
@@ -59,6 +59,7 @@ function view(sessionId: string): SessionView {
$model: atom(''),
$provider: atom(''),
$reasoningEffort: atom(''),
+ $reasoningEffortWire: atom(''),
$runtimeId: atom(sessionId),
$storedId: atom(sessionId),
$turnStartedAt: atom(null),
diff --git a/apps/desktop/src/components/assistant-ui/thread/message-parts-connectors.test.tsx b/apps/desktop/src/components/assistant-ui/thread/message-parts-connectors.test.tsx
index e28fe52ab32..b30714d83c3 100644
--- a/apps/desktop/src/components/assistant-ui/thread/message-parts-connectors.test.tsx
+++ b/apps/desktop/src/components/assistant-ui/thread/message-parts-connectors.test.tsx
@@ -75,6 +75,7 @@ function view(sessionId: string, storedId: string): SessionView {
$model: atom(''),
$provider: atom(''),
$reasoningEffort: atom(''),
+ $reasoningEffortWire: atom(''),
$runtimeId: atom(sessionId),
$storedId: atom(storedId),
$turnStartedAt: atom(null),
diff --git a/apps/desktop/src/i18n/ar.ts b/apps/desktop/src/i18n/ar.ts
index 7bca0e561ff..da351f67645 100644
--- a/apps/desktop/src/i18n/ar.ts
+++ b/apps/desktop/src/i18n/ar.ts
@@ -2572,6 +2572,7 @@ export const ar = defineLocale({
medium: 'متوسط',
high: 'عالٍ',
max: 'أقصى',
+ sendsOnRoute: (level: string) => `يُرسل ${level} على هذا المسار`,
updateFailed: 'فشل تحديث خيار النموذج',
fastFailed: 'فشل تحديث الوضع السريع'
},
diff --git a/apps/desktop/src/i18n/en.ts b/apps/desktop/src/i18n/en.ts
index 95aa2c735a2..7f83644f10f 100644
--- a/apps/desktop/src/i18n/en.ts
+++ b/apps/desktop/src/i18n/en.ts
@@ -3620,6 +3620,7 @@ export const en: Translations = {
xhigh: 'Extra High',
max: 'Max',
ultra: 'Ultra',
+ sendsOnRoute: (level: string) => `sends ${level} on this route`,
updateFailed: 'Model option update failed',
fastFailed: 'Fast mode update failed'
},
diff --git a/apps/desktop/src/i18n/ja.ts b/apps/desktop/src/i18n/ja.ts
index 039471d1f88..5df822755f5 100644
--- a/apps/desktop/src/i18n/ja.ts
+++ b/apps/desktop/src/i18n/ja.ts
@@ -2992,6 +2992,7 @@ export const ja = defineLocale({
xhigh: '特高',
max: '最大',
ultra: 'ウルトラ',
+ sendsOnRoute: (level: string) => `このルートでは ${level} を送信`,
updateFailed: 'モデルオプションの更新に失敗しました',
fastFailed: '高速モードの更新に失敗しました'
},
diff --git a/apps/desktop/src/i18n/ru.ts b/apps/desktop/src/i18n/ru.ts
index 4744586e4c7..f130c027ee3 100644
--- a/apps/desktop/src/i18n/ru.ts
+++ b/apps/desktop/src/i18n/ru.ts
@@ -3290,6 +3290,7 @@ export const ru = defineLocale({
xhigh: 'Очень высокое',
max: 'Максимум',
ultra: 'Ультра',
+ sendsOnRoute: (level: string) => `на этом маршруте отправляется ${level}`,
updateFailed: 'Не удалось обновить опцию модели',
fastFailed: 'Не удалось обновить быстрый режим'
},
diff --git a/apps/desktop/src/i18n/types.ts b/apps/desktop/src/i18n/types.ts
index bc729aaa0ce..41b5ca36178 100644
--- a/apps/desktop/src/i18n/types.ts
+++ b/apps/desktop/src/i18n/types.ts
@@ -3138,6 +3138,8 @@ export interface Translations {
xhigh: string
max: string
ultra: string
+ /** The CLI's `/reasoning` clamp note, e.g. "sends Max on this route". */
+ sendsOnRoute: (level: string) => string
updateFailed: string
fastFailed: string
}
diff --git a/apps/desktop/src/i18n/zh-hant.ts b/apps/desktop/src/i18n/zh-hant.ts
index 8617eaf80b3..43a4d173a14 100644
--- a/apps/desktop/src/i18n/zh-hant.ts
+++ b/apps/desktop/src/i18n/zh-hant.ts
@@ -2953,6 +2953,7 @@ export const zhHant = defineLocale({
xhigh: '極高',
max: '最高',
ultra: '超高',
+ sendsOnRoute: (level: string) => `此路由實際傳送 ${level}`,
updateFailed: '模型選項更新失敗',
fastFailed: '快速模式更新失敗'
},
diff --git a/apps/desktop/src/i18n/zh.ts b/apps/desktop/src/i18n/zh.ts
index 7f455384d85..4f1dad24107 100644
--- a/apps/desktop/src/i18n/zh.ts
+++ b/apps/desktop/src/i18n/zh.ts
@@ -3706,6 +3706,7 @@ export const zh = defineLocale({
xhigh: '极高',
max: '最高',
ultra: '超高',
+ sendsOnRoute: (level: string) => `此路由实际发送 ${level}`,
updateFailed: '模型选项更新失败',
fastFailed: '快速模式更新失败'
},
diff --git a/apps/desktop/src/lib/chat-messages/types.ts b/apps/desktop/src/lib/chat-messages/types.ts
index 3f998e8e0a6..57127ff758e 100644
--- a/apps/desktop/src/lib/chat-messages/types.ts
+++ b/apps/desktop/src/lib/chat-messages/types.ts
@@ -83,6 +83,7 @@ export type GatewayEventPayload = {
model?: string
provider?: string
reasoning_effort?: string
+ reasoning_effort_wire?: string
service_tier?: string
fast?: boolean
approval_mode?: string
diff --git a/apps/desktop/src/lib/chat-runtime.ts b/apps/desktop/src/lib/chat-runtime.ts
index 50e00fa2a18..d5492db55dd 100644
--- a/apps/desktop/src/lib/chat-runtime.ts
+++ b/apps/desktop/src/lib/chat-runtime.ts
@@ -29,6 +29,7 @@ export function createClientSessionState(
model: '',
provider: '',
reasoningEffort: '',
+ reasoningEffortWire: '',
serviceTier: '',
fast: false,
yolo: false,
diff --git a/apps/desktop/src/lib/reasoning-effort.test.ts b/apps/desktop/src/lib/reasoning-effort.test.ts
index 1bbecd8a5e7..b2ee5506eef 100644
--- a/apps/desktop/src/lib/reasoning-effort.test.ts
+++ b/apps/desktop/src/lib/reasoning-effort.test.ts
@@ -1,7 +1,7 @@
import { DEFAULT_REASONING_EFFORT, REASONING_EFFORT_VALUES } from '@hermes/shared'
import { describe, expect, it } from 'vitest'
-import { isThinkingEnabled, reasoningEffortLabel, resolveReasoningEffort } from './reasoning-effort'
+import { isThinkingEnabled, reasoningEffortClamp, reasoningEffortLabel, resolveReasoningEffort } from './reasoning-effort'
describe('reasoning-effort', () => {
it('labels every level it claims to support', () => {
@@ -14,6 +14,17 @@ describe('reasoning-effort', () => {
expect(reasoningEffortLabel('bogus')).toBe('bogus')
})
+ it('labels a route clamp from the gateway wire level only, never by inference', () => {
+ expect(reasoningEffortLabel('ultra', 'max')).toBe('Ultra→Max')
+ expect(reasoningEffortClamp('ultra', 'max')).toEqual({ effort: 'ultra', wire: 'max' })
+ // Unknown ('' — not stamped yet / optimistic pick) or verbatim: plain label, no claim.
+ expect(reasoningEffortLabel('ultra', '')).toBe('Ultra')
+ expect(reasoningEffortLabel('ultra')).toBe('Ultra')
+ expect(reasoningEffortLabel('high', 'high')).toBe('High')
+ expect(reasoningEffortClamp('high', 'high')).toBeNull()
+ expect(reasoningEffortClamp('none', '')).toBeNull()
+ })
+
it('treats empty as inherit and only `none` as off', () => {
expect(isThinkingEnabled('none')).toBe(false)
expect(isThinkingEnabled('high')).toBe(true)
diff --git a/apps/desktop/src/lib/reasoning-effort.ts b/apps/desktop/src/lib/reasoning-effort.ts
index 87e968ff4c0..87c6b32ce32 100644
--- a/apps/desktop/src/lib/reasoning-effort.ts
+++ b/apps/desktop/src/lib/reasoning-effort.ts
@@ -1,4 +1,4 @@
-import { DEFAULT_REASONING_EFFORT, isReasoningEffort } from '@hermes/shared'
+import { DEFAULT_REASONING_EFFORT, isReasoningEffort, type ReasoningEffort } from '@hermes/shared'
import { normalize } from '@/lib/text'
@@ -15,8 +15,37 @@ const SHORT_LABELS: Record<string, string> = {
ultra: 'Ultra'
}
-export function reasoningEffortLabel(effort: string): string {
+/**
+ * A pick the route does not send verbatim: `ultra` is a Hermes-internal step
+ * that every route clamps to its strongest level (`max` on OpenAI-compatible wires), and the
+ * CLI's `/reasoning` says so ("ultra (sends max on this route)"). The wire
+ * level comes from the gateway's `session.info.reasoning_effort_wire`; nothing
+ * is inferred client-side, so an unknown ('' — not yet stamped, or an
+ * optimistic pick) or verbatim wire reads as "no clamp".
+ */
+export function reasoningEffortClamp(
+ effort: string,
+ wire: string | undefined
+): { effort: ReasoningEffort; wire: ReasoningEffort } | null {
+ const picked = normalize(effort)
+ const sent = normalize(wire ?? '')
+
+ if (!sent || sent === picked || !isReasoningEffort(picked) || !isReasoningEffort(sent)) {
+ return null
+ }
+
+ return { effort: picked, wire: sent }
+}
+
+/** Compact label; a clamped pick shows both ends ("Ultra→Max") so the pill
+ * never presents a Hermes step as a wire level the route does not have. */
+export function reasoningEffortLabel(effort: string, wire?: string): string {
const key = normalize(effort)
+ const clamp = reasoningEffortClamp(effort, wire)
+
+ if (clamp) {
+ return `${SHORT_LABELS[clamp.effort]}→${SHORT_LABELS[clamp.wire]}`
+ }
return key ? (SHORT_LABELS[key] ?? effort) : ''
}
diff --git a/apps/desktop/src/store/session.ts b/apps/desktop/src/store/session.ts
index 90001e154bc..63009562e8f 100644
--- a/apps/desktop/src/store/session.ts
+++ b/apps/desktop/src/store/session.ts
@@ -1465,6 +1465,19 @@ export const markComposerSelectionManual = (): void => {
export const setCurrentReasoningEffort = (next: Updater<string>) => {
updateAtom($currentReasoningEffort, next)
persistString(COMPOSER_EFFORT_KEY, $currentReasoningEffort.get() || null)
+ // The wire level is only meaningful for the effort the gateway computed it
+ // for; an optimistic pick clears it until the next session.info re-stamps.
+ $currentReasoningEffortWire.set('')
+}
+
+/** The level the route actually sends for `$currentReasoningEffort`
+ * (`session.info.reasoning_effort_wire`): '' when unknown, equal when verbatim,
+ * weaker when the route clamps a Hermes-internal step such as `ultra`. Never
+ * persisted — it describes the live route, not a user preference. */
+export const $currentReasoningEffortWire = atom('')
+
+export const setCurrentReasoningEffortWire = (next: string) => {
+ $currentReasoningEffortWire.set(next)
}
// The profile's `agent.reasoning_effort`, mirrored from config so surfaces that
diff --git a/apps/desktop/src/types/hermes.ts b/apps/desktop/src/types/hermes.ts
index 0773ab74d55..f0cfee2dc06 100644
--- a/apps/desktop/src/types/hermes.ts
+++ b/apps/desktop/src/types/hermes.ts
@@ -738,6 +738,8 @@ export interface SessionRuntimeInfo {
personality?: string
provider?: string
reasoning_effort?: string
+ /** What the route actually sends for `reasoning_effort` (empty when unset; equal when verbatim). */
+ reasoning_effort_wire?: string
running?: boolean
service_tier?: string
skills?: Record<string, string[]> | string[]
diff --git a/ui-tui/src/__tests__/appChromeStatusRule.test.tsx b/ui-tui/src/__tests__/appChromeStatusRule.test.tsx
index 8b8ce428525..5ec8ef72a06 100644
--- a/ui-tui/src/__tests__/appChromeStatusRule.test.tsx
+++ b/ui-tui/src/__tests__/appChromeStatusRule.test.tsx
@@ -104,6 +104,20 @@ const baseProps = {
voiceLabel: ''
}
+describe('StatusRule model label', () => {
+ it('shows a clamped effort as what the route sends, never as a distinct level (#61634)', () => {
+ const clamped = textContent(
+ StatusRule({ ...baseProps, modelReasoningEffort: 'ultra', modelReasoningEffortWire: 'max' })
+ )
+
+ expect(clamped).toContain('ultra→max')
+ // Verbatim (or not-yet-stamped) wire levels make no claim.
+ expect(textContent(StatusRule({ ...baseProps, modelReasoningEffort: 'high', modelReasoningEffortWire: 'high' })))
+ .toContain('opus 4.8 high')
+ expect(textContent(StatusRule({ ...baseProps, modelReasoningEffort: 'ultra' }))).toContain('opus 4.8 ultra')
+ })
+})
+
describe('StatusRule session title', () => {
it('marks only estimated context occupancy at every visible width', () => {
for (const cols of [80, 120, 200]) {
diff --git a/ui-tui/src/components/appChrome.tsx b/ui-tui/src/components/appChrome.tsx
index d5ece234736..b049890ceb7 100644
--- a/ui-tui/src/components/appChrome.tsx
+++ b/ui-tui/src/components/appChrome.tsx
@@ -438,12 +438,23 @@ function IdleSince({ endedAt }: { endedAt: number }) {
return `✓ ${fmtDuration(now - endedAt)}`
}
-const effortLabel = (effort?: string) => {
+// `wire` is the level the route actually sends (session.info.reasoning_effort_wire):
+// a clamped Hermes step such as `ultra` reads `ultra→max`, like the CLI's
+// "ultra (sends max on this route)", never as a distinct wire level (#61634).
+const effortLabel = (effort?: string, wire?: string) => {
const value = String(effort ?? '')
.trim()
.toLowerCase()
- return value && value !== 'medium' && value !== 'normal' && value !== 'default' ? value : ''
+ const sent = String(wire ?? '')
+ .trim()
+ .toLowerCase()
+
+ if (!value || value === 'medium' || value === 'normal' || value === 'default') {
+ return ''
+ }
+
+ return sent && sent !== value ? `${value}→${sent}` : value
}
const shortModelLabel = (model: string) =>
@@ -456,8 +467,8 @@ const shortModelLabel = (model: string) =>
.replace(/\b(\d+)\s+(\d+)\b/g, '$1.$2')
.trim()
-const modelLabel = (model: string, effort?: string, fast?: boolean) =>
- [shortModelLabel(model), effortLabel(effort), fast ? 'fast' : ''].filter(Boolean).join(' ')
+const modelLabel = (model: string, effort?: string, fast?: boolean, effortWire?: string) =>
+ [shortModelLabel(model), effortLabel(effort, effortWire), fast ? 'fast' : ''].filter(Boolean).join(' ')
export function GoodVibesHeart({ tick, t }: { tick: number; t: Theme }) {
const [active, setActive] = useState(false)
@@ -497,6 +508,7 @@ export function StatusRule({
model,
modelFast,
modelReasoningEffort,
+ modelReasoningEffortWire,
indicatorStyle = 'kaomoji',
notice,
usage,
@@ -533,7 +545,7 @@ export function StatusRule({
: ''
const bar = !segs.compactCtx && usage.context_max && ok('context_pct') ? ctxBar(pct) : ''
- const modelText = modelLabel(model, modelReasoningEffort, modelFast)
+ const modelText = modelLabel(model, modelReasoningEffort, modelFast, modelReasoningEffortWire)
// Battery read-out — the first (pinned) status-bar element when enabled.
const showBattery = !!battery && battery.available && battery.percent != null && ok('battery')
@@ -948,6 +960,7 @@ interface StatusRuleProps {
model: string
modelFast?: boolean
modelReasoningEffort?: string
+ modelReasoningEffortWire?: string
indicatorStyle?: IndicatorStyle
notice?: Notice | null
sessionStartedAt?: null | number
diff --git a/ui-tui/src/components/appLayout.tsx b/ui-tui/src/components/appLayout.tsx
index d05e60fb501..276c794965d 100644
--- a/ui-tui/src/components/appLayout.tsx
+++ b/ui-tui/src/components/appLayout.tsx
@@ -508,6 +508,7 @@ const StatusRulePane = memo(function StatusRulePane({
model={ui.info?.model ?? ''}
modelFast={ui.info?.fast || ui.info?.service_tier === 'priority'}
modelReasoningEffort={ui.info?.reasoning_effort}
+ modelReasoningEffortWire={ui.info?.reasoning_effort_wire}
notice={ui.notice}
onSessionCountClick={() => patchOverlayState({ sessions: true })}
sessionStartedAt={status.sessionStartedAt}
diff --git a/website/docs/user-guide/desktop.md b/website/docs/user-guide/desktop.md
index 41315179f3c..8bdca11227c 100644
--- a/website/docs/user-guide/desktop.md
+++ b/website/docs/user-guide/desktop.md
@@ -99,7 +99,7 @@ With **Group by → Projects**, each project row previews its three most recent
#### Choosing a model
-The model picker lives in the **composer**, just left of the microphone. Click it to switch the model; hover a model row for its options (thinking, effort, fast). Next to it, a **reasoning pill** shows the active model's effort level (`Med`, `High`, …) and opens the same options directly, so you can change effort without finding the model's row. The pill is hidden for models whose catalog reports no reasoning control. When the gateway flags a switch as risky (a large cached context, an expensive model, a data-training tier), the app asks first in a dialog: **Switch anyway** applies it, **Keep current model** (or Esc) leaves everything as it was.
+The model picker lives in the **composer**, just left of the microphone. Click it to switch the model; hover a model row for its options (thinking, effort, fast). Next to it, a **reasoning pill** shows the active model's effort level (`Med`, `High`, …) and opens the same options directly, so you can change effort without finding the model's row. The pill is hidden for models whose catalog reports no reasoning control. When the route clamps a Hermes-internal step (`ultra` is sent as the route's strongest level, e.g. `max`), the pill shows both ends (`Ultra→Max`) and its tooltip spells out the same wording as the CLI, `Ultra (sends Max on this route)`, so the level you see is the level that is sent. When the gateway flags a switch as risky (a large cached context, an expensive model, a data-training tier), the app asks first in a dialog: **Switch anyway** applies it, **Keep current model** (or Esc) leaves everything as it was.
The **microphone** is dictation; hover it and the other voice toggles fan out above it — **Read replies aloud** and the **wake word** ear. A toggle that is on shows as a solid disc. Starting a full voice conversation stays on the primary button to the right. In the HUD and in narrow tiles the same controls fold into one menu behind the mic instead. When dictation talks to the speech-to-text provider directly (client-direct voice), the request honours the same `stt.openai.timeout` budget (default 60 s) as the gateway's own transcription client, so a slow endpoint fails with "Transcription timed out" instead of leaving the mic stuck on transcribing.