fix(core): prevent UI shift after vim edit (#5315)

This commit is contained in:
Gal Zahavi 2025-08-05 14:55:54 -07:00 committed by GitHub
parent 8d993156e7
commit aacae1de43
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
9 changed files with 81 additions and 15 deletions

View file

@ -93,6 +93,7 @@ export const useGeminiStream = (
performMemoryRefresh: () => Promise<void>,
modelSwitchedFromQuotaError: boolean,
setModelSwitchedFromQuotaError: React.Dispatch<React.SetStateAction<boolean>>,
onEditorClose: () => void,
) => {
const [initError, setInitError] = useState<string | null>(null);
const abortControllerRef = useRef<AbortController | null>(null);
@ -133,6 +134,7 @@ export const useGeminiStream = (
config,
setPendingHistoryItem,
getPreferredEditor,
onEditorClose,
);
const pendingToolCallGroupDisplay = useMemo(