Repository navigation
docs(unstable-v2): clarify what replay_complete guarantees - #2927
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.
A full
session/resumereplay covers all the conversation history the Agent retained for the requested session, not necessarily everything the Client saw live. When the session is already active on the same connection, a live update sent before the Agent received the request can arrive after the Client sent it. Even an empty replay can therefore look to the Client like a message followed byreplay_complete.This change removes the recommendation to treat replay as an authoritative replacement for all session entities. It keeps the Agent's ordering rules: hold live updates after receiving the replay request, send
replay_completeafter the requested replay (including an empty one), and then synchronize current state before the successful response. The marker identifies the end of replay, not its start. Child markers still apply per session. No new marker, request ID, capability, or wire-format change is needed.The baseline and Draft guides, migration guide, RFDs and generated schema references now use the same interpretation. The outcome table distinguishes a completed replay from a successful resume.
Validation:
npm run generate,npm run check, the targeted v2 replay and schema-generator tests, and Mintlify validation and link checks for all changed MDX pages passed. Only theReplayCompletedescription changed in the two v2 JSON schemas. Full-site Mintlify validation remains blocked by an unrelated parse error atdocs/get-started/registry.mdx:954, also reproduced on unchangedmain.