Elffuss BraidHub

kikocis/continue public

fix failing edit test - only cancel if rejectDiff
Changeset64689f0f435152c9d6850fa0e9d0eed9a5585fd5a463d8514785a03ec9266c38
AuthorDallin Romney <dallinromney@gmail.com> · 2025-07-01 18:40 -07:00
CommitterDallin Romney <dallinromney@gmail.com> · 2025-07-01 18:40 -07:00
Parents32af15765208

Browse the files at this changeset

1 file changed

modified gui/src/components/AcceptRejectDiffButtons.tsx +4 −1
@@ -28,7 +28,10 @@
2828 );
2929 const dispatch = useAppDispatch();
3030 async function handleAcceptOrReject(status: AcceptOrRejectOutcome) {
31- if (currentToolCallApplyState?.status === "done") {
31+ if (
32+ status === "rejectDiff" &&
33+ currentToolCallApplyState?.status === "done"
34+ ) {
3235 dispatch(
3336 cancelToolCall({
3437 toolCallId: currentToolCallApplyState.toolCallId!,