The agent that grows with you
Python aiai-agentai-agentsanthropicchatgptclaudeclaude-codecodexhermeshermes-agentllmnous-researchopenai
Merge pull request #71601 from helix4u/fix/desktop-model-picker-authority
brooklyn!a135b278dd91
diff --cc apps/desktop/src/lib/model-status-label.tsindex 0a1f1481850,6e2f284a91e..5dde20746f8--- a/apps/desktop/src/lib/model-status-label.ts+++ b/apps/desktop/src/lib/model-status-label.ts@@@ -1,12 -1,32 +1,11 @@@-import { normalize } from '@/lib/text'--const REASONING_LABELS: Record<string, string> = {- none: 'Off',- minimal: 'Min',- low: 'Low',- medium: 'Med',- high: 'High',- xhigh: 'XHigh',- max: 'Max',- ultra: 'Ultra'-}--export function reasoningEffortLabel(effort: string): string {- const key = normalize(effort)-- if (!key) {- return ''- }-- return REASONING_LABELS[key] ?? effort-}+import { DEFAULT_REASONING_EFFORT, reasoningEffortLabel } from '@/lib/reasoning-effort'- /** Which model/provider a picker should mark "current". With a live session the- * gateway's `model.options` is authoritative; pre-session there is no server- * "current", so the sticky composer pick wins over the profile default the- * global options query returns — else the checkmark snaps back to the default- * and the pick looks ignored. */+ /** Which model/provider pair a picker should mark "current". SessionView state+ * also drives the composer label, so a complete pair there wins over an older+ * `model.options` response. During initial hydration (or pre-session startup),+ * options remain the fallback. Pick one complete pair before mixing fields so+ * a model is never shown under a different provider. */export function currentPickerSelection(- hasSession: boolean,store: { model: string; provider: string },options?: { model?: string; provider?: string }): { model: string; provider: string } {