Skip to content

Commit b6a7381

Browse files
committed
Fix context window menu unreachable behind early return guard
The early return in TraitsMenuContent only checked effort and thinkingEnabled, causing the context window radio group to be unreachable for models that have context window options but lack effort levels or a thinking toggle. Updated the guard to also consider contextWindowOptions.length > 1.
1 parent 7c27621 commit b6a7381

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

apps/web/src/components/chat/TraitsPicker.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,7 @@ export const TraitsMenuContent = memo(function TraitsMenuContentImpl({
217217
],
218218
);
219219

220-
if (effort === null && thinkingEnabled === null) {
220+
if (effort === null && thinkingEnabled === null && contextWindowOptions.length <= 1) {
221221
return null;
222222
}
223223

0 commit comments

Comments
 (0)