fix(webui): keep the reasoning slider visible while levels load (#6707)

This commit is contained in:
chengyongru authored and GitHub committed 2026-11-18 18:28:01 +08:00
1 parent f6f49ccca5
commit d1e1d7bc5e
6 files changed
+65 -14

No files matched your search

@@ -12,7 +12,7 @@ function Control({ fast = true, defaultEffort = "medium", onChange }: {
}) {
const [value, setValue] = useState<SessionModelOptions>({ reasoning_effort: null, codex_fast_mode: null });
const efforts = ["low", "medium", "high"];
return <ModelOptionsControl data={{ value, efforts, capability: {
return <ModelOptionsControl data={{ value, efforts, effortsPending: false, capability: {
reasoning_effort: { default: defaultEffort, values: efforts },
...(fast ? { codex_fast_mode: { default: true } } : {}),
} }} onChange={(next) => { setValue(next); onChange?.(next); }} />;