diff --git a/extensions/vscode/e2e/tests/GUI.test.ts b/extensions/vscode/e2e/tests/GUI.test.ts index 440ac6042..461225343 100644 --- a/extensions/vscode/e2e/tests/GUI.test.ts +++ b/extensions/vscode/e2e/tests/GUI.test.ts @@ -400,8 +400,6 @@ describe("GUI Test", () => { GUISelectors.getThreadMessageByText(view, llmResponse), ); - await new Promise(resolve=>setTimeout(resolve, 500)); - const viewportHeight = await driver.executeScript( "return window.innerHeight", ); diff --git a/gui/src/pages/gui/useAutoScroll.ts b/gui/src/pages/gui/useAutoScroll.ts index 633201683..a787e7ec9 100644 --- a/gui/src/pages/gui/useAutoScroll.ts +++ b/gui/src/pages/gui/useAutoScroll.ts @@ -9,17 +9,6 @@ export const useAutoScroll = ( useEffect(() => { if (history.length) { setUserHasScrolled(false); - if (ref.current) { - // smooth scroll to the bottom of the chat - ref.current.style.scrollBehavior = "smooth"; - ref.current.scrollTop = ref.current.scrollHeight; - - // use 100 ms delay to scroll to restore the scroll and wait for the chat to be scrolled - const timer = setTimeout(() => { - ref.current!.style.scrollBehavior = "auto"; - clearTimeout(timer); - }, 100); - } } }, [history.length]);