Skip to content

Commit f316a86

Browse files
ammarioclaude
andcommitted
🤖 Make model selection workspace-specific
Change model storage key from global "cmux-preferred-model" to workspace-specific "model:" + workspaceId. This ensures each workspace remembers its own model preference independently. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent 69f8cf9 commit f316a86

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/ChatInput.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -323,7 +323,7 @@ export const ChatInput: React.FC<ChatInputProps> = ({
323323
}) => {
324324
const [input, setInput] = usePersistedState("input:" + workspaceId, "");
325325
const [preferredModel, setPreferredModel] = usePersistedState<string>(
326-
"cmux-preferred-model",
326+
"model:" + workspaceId,
327327
defaultModel
328328
);
329329
const [isSending, setIsSending] = useState(false);

0 commit comments

Comments
 (0)