Changesets · Branches · Tags · Compare
| Changeset | 9c8f3520bf15af66caa425df4b5e6c944813a18fa7ff629346203cd752f0c85d |
|---|---|
| Author | Nate <sestinj@gmail.com> · 2025-09-14 17:54 -07:00 |
| Committer | Nate <sestinj@gmail.com> · 2025-09-14 17:54 -07:00 |
| Parents | e5e4265d774f |
2 files changed
modified gui/src/pages/config/sections/UserSettingsSection.tsx +10 −2
| @@ -62,7 +62,7 @@ | ||
| 62 | 62 | const continueAfterToolRejection = |
| 63 | 63 | config.ui?.continueAfterToolRejection ?? false; |
| 64 | 64 | const codeWrap = config.ui?.codeWrap ?? false; |
| 65 | - | |
| 65 | + const showChatScrollbar = config.ui?.showChatScrollbar ?? false; | |
| 66 | 66 | const readResponseTTS = config.experimental?.readResponseTTS ?? false; |
| 67 | 67 | const autoAcceptEditToolDiffs = config.ui?.autoAcceptEditToolDiffs ?? false; |
| 68 | 68 | const displayRawMarkdown = config.ui?.displayRawMarkdown ?? false; |
| @@ -129,7 +129,15 @@ | ||
| 129 | 129 | value={codeWrap} |
| 130 | 130 | onChange={(value) => handleUpdate({ codeWrap: value })} |
| 131 | 131 | /> |
| 132 | - | |
| 132 | + <UserSetting | |
| 133 | + type="toggle" | |
| 134 | + title="Show Chat Scrollbar" | |
| 135 | + description="Enables a scrollbar in the chat window." | |
| 136 | + value={showChatScrollbar} | |
| 137 | + onChange={(value) => | |
| 138 | + handleUpdate({ showChatScrollbar: value }) | |
| 139 | + } | |
| 140 | + /> | |
| 133 | 141 | <UserSetting |
| 134 | 142 | type="toggle" |
| 135 | 143 | title="Text-to-Speech Output" |
modified gui/src/pages/gui/Chat.tsx +4 −2
| @@ -111,7 +111,9 @@ | ||
| 111 | 111 | const stepsDivRef = useRef<HTMLDivElement>(null); |
| 112 | 112 | const tabsRef = useRef<HTMLDivElement>(null); |
| 113 | 113 | const history = useAppSelector((state) => state.session.history); |
| 114 | - | |
| 114 | + const showChatScrollbar = useAppSelector( | |
| 115 | + (state) => state.config.config.ui?.showChatScrollbar, | |
| 116 | + ); | |
| 115 | 117 | const codeToEdit = useAppSelector((state) => state.editModeState.codeToEdit); |
| 116 | 118 | const mode = useAppSelector((store) => store.session.mode); |
| 117 | 119 | const isInEdit = useAppSelector((store) => store.session.isInEdit); |
| @@ -379,7 +381,7 @@ | ||
| 379 | 381 | [sendInput, isLastUserInput, history, stepsOpen], |
| 380 | 382 | ); |
| 381 | 383 | |
| 382 | - const showScrollbar = true; | |
| 384 | + const showScrollbar = showChatScrollbar ?? window.innerHeight > 5000; | |
| 383 | 385 | |
| 384 | 386 | return ( |
| 385 | 387 | <> |