Changesets · Branches · Tags · Compare
| Changeset | feba338fe3cb547b31dce4b47034152a11d780150f9761b62493e47a1d4b89e3 |
|---|---|
| Author | Dallin Romney <dallinromney@gmail.com> · 2025-07-10 11:30 -07:00 |
| Committer | Dallin Romney <dallinromney@gmail.com> · 2025-07-10 11:30 -07:00 |
| Parents | 4ad7dac30bff |
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 +2 −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,6 +210,8 @@ | ||
| 212 | 210 | ) { |
| 213 | 211 | const response = await dispatch(callCurrentTool()); |
| 214 | 212 | unwrapResult(response); |
| 213 | + } else { | |
| 214 | + dispatch(setInactive()); | |
| 215 | 215 | } |
| 216 | 216 | } |
| 217 | 217 | }, |