Skip to content

docs(unstable-v2): clarify prompt retries after reconnect - #2926

Merged
benbrandt merged 1 commit into
mainfrom
docs/v2-prompt-retry-after-reconnect
Nov 20, 2026
Merged

benbrandt merged 1 commit into
mainfrom
docs/v2-prompt-retry-after-reconnect

Conversation

@benbrandt

Copy link
Copy Markdown
Member

If an Agent runs a live-only command and the connection drops before the prompt response arrives, it may forget the idempotencyKey when the session stops being active. Even an immediate session/resume followed by the same prompt and key can run the command again. The previous guidance recommended doing just that.

This change keeps the existing retention rules. An Agent that retains the message still has to recognize the key across reconnects and restarts and return the original messageId. Resume and replay do not tell the Client which keys survived. If a duplicate would matter and the Client cannot rule one out, it SHOULD NOT automatically resend. It should tell the user the prompt might already have run and let them decide. A retry uses the original prompt and key.

The baseline and Draft guides, migration checklist, RFD, and generated schema descriptions now agree. There is no new wire field, retention window, or change to v1. The RFD illustrates both outcomes after a lost response.

Validation: npm run generate (no drift), npm run check, and a comparison against main confirming that only the idempotencyKey description changed in both v2 JSON schemas. No SDK retry implementation is changed or tested end to end by this PR.

@benbrandt
benbrandt requested a review from a team as a code owner November 20, 2026 10:37
@benbrandt
benbrandt enabled auto-merge (squash) November 20, 2026 10:39
@benbrandt
benbrandt merged commit 4f04571 into main Nov 20, 2026
13 checks passed
@benbrandt
benbrandt deleted the docs/v2-prompt-retry-after-reconnect branch November 20, 2026 10:41
@acp-release-bot acp-release-bot Bot mentioned this pull request Nov 20, 2026
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