Elffuss BraidHub

kikocis/continue public

Merge pull request #6561 from continuedev/dallin/fix-set-inactive-logic

fix: only set inactive when conversation isn't continuing
Changeset3860b50887c804e679e214ef85214f2f27fef3e6e3cbe2c53da2ce7e1c71a1d7
AuthorDallin Romney <dallinromney@gmail.com> · 2025-07-10 15:44 -07:00
CommitterGitHub <noreply@github.com> · 2025-07-10 15:44 -07:00
Parentsf01d551dde94, 2f5b046efcbf

Browse the files at this changeset

2 files changed

modified gui/src/redux/thunks/callCurrentTool.ts +3 −0
@@ -8,6 +8,7 @@
88 import {
99 acceptToolCall,
1010 errorToolCall,
11+ setInactive,
1112 setToolCallCalling,
1213 updateToolCallOutput,
1314 } from "../slices/sessionSlice";
@@ -145,6 +146,8 @@
145146 }),
146147 );
147148 unwrapResult(wrapped);
149+ } else {
150+ dispatch(setInactive());
148151 }
149152 },
150153 );
modified gui/src/redux/thunks/streamNormalInput.ts +4 −2
@@ -154,8 +154,6 @@
154154 next = await gen.next();
155155 }
156156
157- dispatch(setInactive());
158-
159157 // Attach prompt log and end thinking for reasoning models
160158 if (next.done && next.value) {
161159 dispatch(addPromptCompletionPair([next.value]));
@@ -212,7 +210,11 @@
212210 ) {
213211 const response = await dispatch(callCurrentTool());
214212 unwrapResult(response);
213+ } else {
214+ dispatch(setInactive());
215215 }
216+ } else {
217+ dispatch(setInactive());
216218 }
217219 },
218220 );