Skip to content

Commit d4afd15

Browse files
committed
🤖 fix: restore model favorites in ChatInput
The ORPC migration PR accidentally removed the model favorites integration from ChatInput. Restored: - defaultModel and setDefaultModel from useModelLRU() - useEffect to reset model to default when entering creation mode - defaultModel and onSetDefaultModel props passed to ModelSelector The ModelSelector.stories.tsx WithDefaultModel story documents the feature.
1 parent 90bc192 commit d4afd15

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

src/browser/components/ChatInput/index.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,6 @@ export const ChatInput: React.FC<ChatInputProps> = (props) => {
178178
[storageKeys.modelKey, addModel]
179179
);
180180

181-
182181
// When entering creation mode (or when the default model changes), reset the
183182
// project-scoped model to the explicit default so manual picks don't bleed
184183
// into subsequent creation flows.

0 commit comments

Comments
 (0)