Elffuss BraidHub

kikocis/continue public

fix: only set inactive when conversation isn't continuing
Changesetfeba338fe3cb547b31dce4b47034152a11d780150f9761b62493e47a1d4b89e3
AuthorDallin Romney <dallinromney@gmail.com> · 2025-07-10 11:30 -07:00
CommitterDallin Romney <dallinromney@gmail.com> · 2025-07-10 11:30 -07:00
Parents4ad7dac30bff

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 +2 −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,6 +210,8 @@
212210 ) {
213211 const response = await dispatch(callCurrentTool());
214212 unwrapResult(response);
213+ } else {
214+ dispatch(setInactive());
215215 }
216216 }
217217 },