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
commita1a9c4fc01e7bb9239aa67717dd8397d32eea31a (patch)
treed9dc365f12c2da108bc76012750e5d22831d5a60 /extension/react-app/src/tabs
parent695abf458f25e0cb7b05cebe3a0f9ec2c97e7797 (diff)
downloadsncontinue-a1a9c4fc01e7bb9239aa67717dd8397d32eea31a.tar.gz
sncontinue-a1a9c4fc01e7bb9239aa67717dd8397d32eea31a.tar.bz2
sncontinue-a1a9c4fc01e7bb9239aa67717dd8397d32eea31a.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;