summaryrefslogtreecommitdiff
path: root/extension/react-app/src/tabs
diff options
context:
space:
mode:
authorTy Dunn <ty@tydunn.com>2023-06-22 12:39:01 -0700
committerTy Dunn <ty@tydunn.com>2023-06-22 12:39:01 -0700
commit8bc0c8d23469c1d1e7e20114f27dca876a3b0383 (patch)
treef86d1517b429ce4b1fb4d20b736f0b9472cd4f61 /extension/react-app/src/tabs
parent8c8e65f552d35679e2d5feb142f01f8a97801d20 (diff)
downloadsncontinue-8bc0c8d23469c1d1e7e20114f27dca876a3b0383.tar.gz
sncontinue-8bc0c8d23469c1d1e7e20114f27dca876a3b0383.tar.bz2
sncontinue-8bc0c8d23469c1d1e7e20114f27dca876a3b0383.zip
start of syncing back
Diffstat (limited to 'extension/react-app/src/tabs')
-rw-r--r--extension/react-app/src/tabs/gui.tsx1
1 files changed, 1 insertions, 0 deletions
diff --git a/extension/react-app/src/tabs/gui.tsx b/extension/react-app/src/tabs/gui.tsx
index 15121010..0dd7e3ec 100644
--- a/extension/react-app/src/tabs/gui.tsx
+++ b/extension/react-app/src/tabs/gui.tsx
@@ -230,6 +230,7 @@ function GUI(props: GUIProps) {
console.log("CLIENT ON STATE UPDATE: ", client, client?.onStateUpdate);
client?.onStateUpdate((state) => {
// Scroll only if user is at very bottom of the window.
+ setUsingFastModel(state.using_fast_model);
const shouldScrollToBottom =
topGuiDivRef.current &&
topGuiDivRef.current?.offsetHeight - window.scrollY < 100;