Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions gui/src/pages/gui/Chat.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -243,6 +243,16 @@ export function Chat() {
// Reject all pending apply states
latestPendingApplyStates.forEach((applyState) => {
if (applyState.status !== "closed") {
// Cancel the associated tool call so the model receives a cancellation
// signal instead of "No tool output" when the user sends a new message
// without accepting or rejecting the diff
if (applyState.toolCallId) {
dispatch(
cancelToolCall({
toolCallId: applyState.toolCallId,
}),
);
}
ideMessenger.post("rejectDiff", applyState);
}
});
Expand Down
Loading