From 4c5c5ddc51dfd72cbec8f3efd4bf5f37132a1367 Mon Sep 17 00:00:00 2001 From: Nate Date: Wed, 10 Sep 2025 19:41:22 -0700 Subject: [PATCH] feat: always show scrollbar --- .../pages/config/sections/UserSettingsSection.tsx | 12 ++---------- gui/src/pages/gui/Chat.tsx | 6 ++---- 2 files changed, 4 insertions(+), 14 deletions(-) diff --git a/gui/src/pages/config/sections/UserSettingsSection.tsx b/gui/src/pages/config/sections/UserSettingsSection.tsx index afa56aca4..587ecdf08 100644 --- a/gui/src/pages/config/sections/UserSettingsSection.tsx +++ b/gui/src/pages/config/sections/UserSettingsSection.tsx @@ -62,7 +62,7 @@ export function UserSettingsSection() { const continueAfterToolRejection = config.ui?.continueAfterToolRejection ?? false; const codeWrap = config.ui?.codeWrap ?? false; - const showChatScrollbar = config.ui?.showChatScrollbar ?? false; + const readResponseTTS = config.experimental?.readResponseTTS ?? false; const autoAcceptEditToolDiffs = config.ui?.autoAcceptEditToolDiffs ?? false; const displayRawMarkdown = config.ui?.displayRawMarkdown ?? false; @@ -129,15 +129,7 @@ export function UserSettingsSection() { value={codeWrap} onChange={(value) => handleUpdate({ codeWrap: value })} /> - - handleUpdate({ showChatScrollbar: value }) - } - /> + (null); const tabsRef = useRef(null); const history = useAppSelector((state) => state.session.history); - const showChatScrollbar = useAppSelector( - (state) => state.config.config.ui?.showChatScrollbar, - ); + const codeToEdit = useAppSelector((state) => state.editModeState.codeToEdit); const mode = useAppSelector((store) => store.session.mode); const isInEdit = useAppSelector((store) => store.session.isInEdit); @@ -381,7 +379,7 @@ export function Chat() { [sendInput, isLastUserInput, history, stepsOpen], ); - const showScrollbar = showChatScrollbar ?? window.innerHeight > 5000; + const showScrollbar = true; return ( <>