Skip to content

The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.

fix(chat): allow model override to be cleared to null

Steven Enamakel03d0e76adabd
diff --git a/app/src/components/chat/ChatComposer.tsx b/app/src/components/chat/ChatComposer.tsx
index 460332b427..fb252966eb 100644
--- a/app/src/components/chat/ChatComposer.tsx
+++ b/app/src/components/chat/ChatComposer.tsx
@@ -116,7 +116,8 @@ export interface ChatComposerProps {
mascotDock?: React.ReactNode;
/** Per-composer model route selected from the assistant-ui-style control. */
modelOverride?: string | null;
- onModelOverrideChange?: (value: string, contextWindow?: number | null) => void;
+ /** `null` means managed — see `ModelQualityPill`'s `onValueChange`. */
+ onModelOverrideChange?: (value: string | null, contextWindow?: number | null) => void;
}
/**