diff --git a/gui/src/components/ComboBox.tsx b/gui/src/components/ComboBox.tsx index c12e3e2d1..3cba113df 100644 --- a/gui/src/components/ComboBox.tsx +++ b/gui/src/components/ComboBox.tsx @@ -815,7 +815,7 @@ const ComboBox = React.forwardRef((props: ComboBoxProps, ref) => { setContextLengthFillPercentage( tokenEstimate / Math.max(1, contextLength - 600) ); - }, [selectedContextItems, contextLength]); + }, [selectedContextItems.length, contextLength]); const [isComposing, setIsComposing] = useState(false);