diff options
| author | Olcan <[email protected]> | 2025-05-27 15:22:30 -0700 |
|---|---|---|
| committer | GitHub <[email protected]> | 2025-05-27 15:22:30 -0700 |
| commit | 0d5f7686d7c4cd355cc2d327a2f04c8d7d31e09e (patch) | |
| tree | 1089043d3b83df2a7ad5c2b87d32c6a7e41095e4 /packages/cli/src | |
| parent | c1395a8808427436a353d5201e935d6784169d28 (diff) | |
fix tool cancellation while executing (#575)
Diffstat (limited to 'packages/cli/src')
| -rw-r--r-- | packages/cli/src/ui/hooks/useToolScheduler.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/packages/cli/src/ui/hooks/useToolScheduler.ts b/packages/cli/src/ui/hooks/useToolScheduler.ts index 1bb44133..36493332 100644 --- a/packages/cli/src/ui/hooks/useToolScheduler.ts +++ b/packages/cli/src/ui/hooks/useToolScheduler.ts @@ -186,7 +186,7 @@ export function useToolScheduler( setAbortController(new AbortController()); setToolCalls((tc) => tc.map((c) => - c.status !== 'error' + c.status !== 'error' && c.status !== 'executing' ? { ...c, status: 'cancelled', @@ -229,7 +229,7 @@ export function useToolScheduler( .then((result) => { if (signal.aborted) { setToolCalls( - setStatus(callId, 'cancelled', 'Cancelled during execution'), + setStatus(callId, 'cancelled', String(result.llmContent)), ); return; } |
