Skip to content

Commit 0974860

Browse files
maria-rcksvoltcrash
authored andcommitted
fix(web): show unset thinking in the composer model control
1 parent b199e36 commit 0974860

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

‎apps/web/src/components/chat/ComposerModelEffort.tsx‎

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,11 @@ export function describeComposerEffort(
130130
? `${reasoning.label} ${reasoning.currentValue === true ? "On" : "Off"}`
131131
: ultrathink
132132
? "Ultrathink"
133-
: getProviderOptionCurrentLabel(reasoning, modelSelection, traits.reportedModelSelection);
133+
: (getProviderOptionCurrentLabel(
134+
reasoning,
135+
modelSelection,
136+
traits.reportedModelSelection,
137+
) ?? (reasoning.id === "thinking" ? reasoning.label : null));
134138
const fast = display.speedLabel === "Fast" || display.speedLabel === "Ultrafast";
135139
// Agent options such as modes live in the picker; the trigger adds only the context window.
136140
const contextWindow =

0 commit comments

Comments
 (0)