Repository navigation
docs(unstable-v2): clarify prompt retries after reconnect - #2926
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
If an Agent runs a live-only command and the connection drops before the prompt response arrives, it may forget the
idempotencyKeywhen the session stops being active. Even an immediatesession/resumefollowed 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 againstmainconfirming that only theidempotencyKeydescription changed in both v2 JSON schemas. No SDK retry implementation is changed or tested end to end by this PR.