diff options
author | Nate Sesti <sestinj@gmail.com> | 2023-07-06 12:39:17 -0700 |
---|---|---|
committer | Nate Sesti <sestinj@gmail.com> | 2023-07-06 12:39:17 -0700 |
commit | 7207da47c790aab81f59e777b9d02769b46fb7f4 (patch) | |
tree | 85873f54f238cd9d9be7f64f51484c52a22ef9e1 /extension/react-app/src/tabs | |
parent | 1e00942edec9c9aa4c69f2a8be7e43f06df684df (diff) | |
download | sncontinue-7207da47c790aab81f59e777b9d02769b46fb7f4.tar.gz sncontinue-7207da47c790aab81f59e777b9d02769b46fb7f4.tar.bz2 sncontinue-7207da47c790aab81f59e777b9d02769b46fb7f4.zip |
details
Diffstat (limited to 'extension/react-app/src/tabs')
-rw-r--r-- | extension/react-app/src/tabs/gui.tsx | 10 |
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); |