fix: clear isExecutingTool on interrupt to unblock slash commands (#1065)

Co-authored-by: Letta <noreply@letta.com>
This commit is contained in:
Charles Packer
2026-02-20 13:04:04 -08:00
committed by GitHub
parent 46246ebd39
commit fa6ac1eb3a

View File

@@ -5136,6 +5136,7 @@ export default function App({
setStreaming(false);
resetTrajectoryBases();
toolResultsInFlightRef.current = false;
setIsExecutingTool(false);
if (!toolsCancelled) {
appendError(INTERRUPT_MESSAGE, true);
}
@@ -5215,13 +5216,18 @@ export default function App({
if (abortControllerRef.current) {
abortControllerRef.current.abort();
abortControllerRef.current = null;
}
setIsExecutingTool(false);
toolResultsInFlightRef.current = false;
pendingInterruptRecoveryConversationIdRef.current =
conversationIdRef.current;
} catch (e) {
const errorDetails = formatErrorDetails(e, agentId);
appendError(`Failed to interrupt stream: ${errorDetails}`);
setInterruptRequested(false);
setIsExecutingTool(false);
toolResultsInFlightRef.current = false;
}
}
}, [