@devries-cameron20 / t3code Mirror · read-only / commits / 37d3667de4
Fork 0

The best way to control Claude Code, Codex and more from any computer or phone

Mirrored from https://github.com/Camo67/t3code.git

Synced Nov 24, 17:45 UTC

fix(web): keep model picker shortcuts in sync (#5400)

Theo Browne committed Aug 5, 2026 at 07:23 UTC 37d3667de4e45ffb42dc96e8b7fbf39e3a78c1da
1 file changed +5 -1
apps/web/src/components/chat/ModelPickerContent.tsx
+5 -1
@@ -541,6 +541,10 @@ export const ModelPickerContent = memo(function ModelPickerContent(props: {
541 }
542 return mapping.size > 0 ? mapping : EMPTY_MODEL_JUMP_LABELS;
543 }, [keybindings, modelJumpCommandByKey, modelJumpShortcutContext]);
544 + const modelListExtraData = useMemo(
545 + () => ({ favoritesSet, modelJumpLabelByKey }),
546 + [favoritesSet, modelJumpLabelByKey],
547 + );
548
549 useEffect(() => {
550 const onWindowKeyDown = (event: globalThis.KeyboardEvent) => {
@@ -710,7 +714,7 @@ export const ModelPickerContent = memo(function ModelPickerContent(props: {
714 <LegendList<string>
715 ref={modelListRef}
716 data={filteredItemKeys}
713 - extraData={favoritesSet}
717 + extraData={modelListExtraData}
718 keyExtractor={(modelKey) => modelKey}
719 renderItem={({ item: modelKey, index }) => {
720 if (legacySection?.key === modelKey) {