The best way to control Claude Code, Codex and more from any computer or phone
perf(web): the model picker sidebar compiles with the React Compiler (#20596)
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Julius Marminge committed
Oct 16, 2026 at 22:03 UTC
e6483180610d8364c052b733998d11c4afe1665f
1 file changed
+6
-1
apps/web/src/components/chat/ModelPickerSidebar.tsx
+6
-1
@@ -65,7 +65,12 @@ export const ModelPickerSidebar = memo(function ModelPickerSidebar(props: {
65
return;
66
}
67
setSelectedIndicatorTop(selectedItem.offsetTop + selectedItem.offsetHeight / 2 - 10);
68
- }, [props.instanceEntries, props.selectedInstanceId, showFavorites]);
68
+ }, [
69
+ // oxlint-disable-next-line react/exhaustive-effect-dependencies -- Adding, removing or reordering providers moves the selected item, so the indicator re-measures.
70
+ props.instanceEntries,
71
+ props.selectedInstanceId,
72
+ showFavorites,
73
+ ]);
74
75
return (
76
<Toolbar.Root