summaryrefslogtreecommitdiff
path: root/extension/react-app/src/tabs
diff options
context:
space:
mode:
authorNate Sesti <sestinj@gmail.com>2023-07-06 12:39:17 -0700
committerNate Sesti <sestinj@gmail.com>2023-07-06 12:39:17 -0700
commita6935256795ccb63d8cbd4e0677d117efd4c6d9d (patch)
tree308c31354a094bcda4e14c9e304c7c1b2116ebfb /extension/react-app/src/tabs
parent28e4da39c1f7056b99dca89e6959a11b86202886 (diff)
downloadsncontinue-a6935256795ccb63d8cbd4e0677d117efd4c6d9d.tar.gz
sncontinue-a6935256795ccb63d8cbd4e0677d117efd4c6d9d.tar.bz2
sncontinue-a6935256795ccb63d8cbd4e0677d117efd4c6d9d.zip
details
Diffstat (limited to 'extension/react-app/src/tabs')
-rw-r--r--extension/react-app/src/tabs/gui.tsx10
1 files changed, 9 insertions, 1 deletions
diff --git a/extension/react-app/src/tabs/gui.tsx b/extension/react-app/src/tabs/gui.tsx
index ca369547..c8a42d9a 100644
--- a/extension/react-app/src/tabs/gui.tsx
+++ b/extension/react-app/src/tabs/gui.tsx
@@ -165,7 +165,15 @@ function GUI(props: GUIProps) {
const shouldScrollToBottom =
topGuiDivRef.current &&
topGuiDivRef.current?.offsetHeight - window.scrollY < 100;
- setWaitingForSteps(state.active);
+
+ const waitingForSteps =
+ state.active &&
+ state.history.current_index < state.history.timeline.length &&
+ state.history.timeline[
+ state.history.current_index
+ ].step.description?.trim() === "";
+
+ setWaitingForSteps(waitingForSteps);
setHistory(state.history);
setHighlightedRanges(state.highlighted_ranges);
setUserInputQueue(state.user_input_queue);