The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.
Rust agent-orchestrationai-agentsai-assistantdesktopllmlocal-firstmcppersonal-aiprivacyrustsecond-braintauri
fix(aui): correct reasoning effort picker to show all options
Steven Enamakele70e97526f9b
diff --git a/app/src/features/conversations/aui/ReasoningEffortPicker.tsx b/app/src/features/conversations/aui/ReasoningEffortPicker.tsxnew file mode 100644index 0000000000..e3da2f3fa9--- /dev/null+++ b/app/src/features/conversations/aui/ReasoningEffortPicker.tsx@@ -0,0 +1,53 @@+/**+ * The composer's thinking-level control. Sits beside the model trigger and+ * picks the reasoning effort every send asks for (`reasoning_effort` on+ * `openhuman.channel_web_chat`), which the core turns into the provider's+ * reasoning setting. `default` leaves the choice to the provider.+ */+import { useT } from '../../../lib/i18n/I18nContext';++export const REASONING_EFFORTS = ['default', 'none', 'low', 'medium', 'high', 'xhigh'] as const;++export type ReasoningEffortChoice = (typeof REASONING_EFFORTS)[number];++/** Narrows a stored/config value to a known choice; anything else is `default`. */+export function toReasoningEffortChoice(value: string | null | undefined): ReasoningEffortChoice {+ const normalized = (value ?? '').trim().toLowerCase();+ if (normalized === 'off') return 'none';+ if (normalized === 'max') return 'xhigh';+ return (REASONING_EFFORTS as readonly string[]).includes(normalized)+ ? (normalized as ReasoningEffortChoice)+ : 'default';+}++export function ReasoningEffortPicker({+ value,+ onChange,+ disabled = false,+}: {+ value: ReasoningEffortChoice;+ onChange: (value: ReasoningEffortChoice) => void;+ disabled?: boolean;+}) {+ const { t } = useT();+ const label = t('composer.reasoning.label');+ return (+ <select+ data-testid="composer-reasoning-effort"+ data-analytics-id="chat-reasoning-effort"+ aria-label={label}+ title={label}+ value={value}+ disabled={disabled}+ onChange={event => onChange(toReasoningEffortChoice(event.target.value))}+ className="h-7 min-w-0 cursor-pointer rounded-md border-none bg-transparent px-2 text-xs font-medium text-content-muted transition-colors hover:bg-surface-hover hover:text-content focus:outline-none focus-visible:ring-1 focus-visible:ring-line disabled:opacity-50">+ {REASONING_EFFORTS.map(effort => (+ <option key={effort} value={effort}>+ {t(`composer.reasoning.${effort}`)}+ </option>+ ))}+ </select>+ );+}++export default ReasoningEffortPicker;