From d683172d6f0a34b382133a1462652d07ebfbf1f1 Mon Sep 17 00:00:00 2001 From: Waleed Latif Date: Mon, 5 Oct 2026 01:12:25 -0700 Subject: [PATCH] fix(chat): label simple effort options with the effort they send The simple Chat effort picker labeled medium as Low, high as Medium, and xhigh as High. Derive its options from MOTHERSHIP_EFFORT_OPTIONS so each label names the effort it sends: Medium, High, Extra High. Values, the default (high), and the stored preference are unchanged. --- apps/sim/lib/mothership/model-options.ts | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/apps/sim/lib/mothership/model-options.ts b/apps/sim/lib/mothership/model-options.ts index 19cb2473e12..c3f28dc3607 100644 --- a/apps/sim/lib/mothership/model-options.ts +++ b/apps/sim/lib/mothership/model-options.ts @@ -17,12 +17,12 @@ export const MOTHERSHIP_MODEL_OPTIONS = [ { value: 'claude-opus-5-5', label: 'Opus 5.5' }, ] satisfies Array<{ value: ModelSelection['model']; label: string }> -/** Labels deliberately describe the simplified product dial; values are provider efforts. */ -export const MOTHERSHIP_SIMPLE_EFFORT_OPTIONS: Array<{ value: MothershipEffort; label: string }> = [ - { value: 'medium', label: 'Low' }, - { value: 'high', label: 'Medium' }, - { value: 'xhigh', label: 'High' }, -] +const SIMPLE_EFFORT_VALUES: ReadonlySet = new Set(['medium', 'high', 'xhigh']) + +/** The efforts the simple picker offers, labeled with the effort each one sends. */ +export const MOTHERSHIP_SIMPLE_EFFORT_OPTIONS = MOTHERSHIP_EFFORT_OPTIONS.filter((option) => + SIMPLE_EFFORT_VALUES.has(option.value) +) export function mothershipEffortOptions(model: ModelSelection['model']) { return model === 'gpt-6-sol'