Changesets · Branches · Tags · Compare
| Changeset | 3860b50887c804e679e214ef85214f2f27fef3e6e3cbe2c53da2ce7e1c71a1d7 |
|---|---|
| Author | Dallin Romney <dallinromney@gmail.com> · 2025-07-10 15:44 -07:00 |
| Committer | GitHub <noreply@github.com> · 2025-07-10 15:44 -07:00 |
| Parents | f01d551dde94, 2f5b046efcbf |
2 files changed
modified gui/src/redux/thunks/callCurrentTool.ts +3 −0
| @@ -8,6 +8,7 @@ | ||
| 8 | 8 | import { |
| 9 | 9 | acceptToolCall, |
| 10 | 10 | errorToolCall, |
| 11 | + setInactive, | |
| 11 | 12 | setToolCallCalling, |
| 12 | 13 | updateToolCallOutput, |
| 13 | 14 | } from "../slices/sessionSlice"; |
| @@ -145,6 +146,8 @@ | ||
| 145 | 146 | }), |
| 146 | 147 | ); |
| 147 | 148 | unwrapResult(wrapped); |
| 149 | + } else { | |
| 150 | + dispatch(setInactive()); | |
| 148 | 151 | } |
| 149 | 152 | }, |
| 150 | 153 | ); |
modified gui/src/redux/thunks/streamNormalInput.ts +4 −2
| @@ -154,8 +154,6 @@ | ||
| 154 | 154 | next = await gen.next(); |
| 155 | 155 | } |
| 156 | 156 | |
| 157 | - dispatch(setInactive()); | |
| 158 | - | |
| 159 | 157 | // Attach prompt log and end thinking for reasoning models |
| 160 | 158 | if (next.done && next.value) { |
| 161 | 159 | dispatch(addPromptCompletionPair([next.value])); |
| @@ -212,7 +210,11 @@ | ||
| 212 | 210 | ) { |
| 213 | 211 | const response = await dispatch(callCurrentTool()); |
| 214 | 212 | unwrapResult(response); |
| 213 | + } else { | |
| 214 | + dispatch(setInactive()); | |
| 215 | 215 | } |
| 216 | + } else { | |
| 217 | + dispatch(setInactive()); | |
| 216 | 218 | } |
| 217 | 219 | }, |
| 218 | 220 | ); |