Skip to content

Fix/confirmation rejected tool result#4

Merged
angelocavallo merged 2 commits into
mainfrom
fix/confirmation-rejected-tool-result
Jun 25, 2026
Merged

Fix/confirmation rejected tool result#4
angelocavallo merged 2 commits into
mainfrom
fix/confirmation-rejected-tool-result

Conversation

@angelocavallo

Copy link
Copy Markdown
Contributor

No description provided.

Angelo and others added 2 commits June 25, 2026 11:22
…r decision

When the user cancels the confirmation dialog for a write/destructive tool,
the tool result was previously serialized as `{"error":"confirmation_rejected"}`,
indistinguishable from a transient failure — so the model would often retry the
same call. Handle `abortReason === 'confirmation_rejected'` distinctly: send
plain directive text telling the model the user declined and not to retry, so it
acknowledges the cancellation or continues without the action.

Co-Authored-By: Claude <noreply@anthropic.com>
Patch release for the confirmation-rejection loop fix. Core and bundled-tools
version in lockstep.

Co-Authored-By: Claude <noreply@anthropic.com>
@angelocavallo angelocavallo merged commit 1858e5b into main Jun 25, 2026
1 check passed
@angelocavallo angelocavallo deleted the fix/confirmation-rejected-tool-result branch June 25, 2026 09:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant