Add protocol-v2 at-most-once operations - #6
Draft
niqibiao wants to merge 1 commit into
Draft
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.
What changed
Docs~/UnityCliPluginSync_zh.mdWhy
Previously, a timeout or connection reset could happen after Unity had begun a mutation, leaving clients unable to distinguish “not executed” from “executed but response lost.” Refresh state also lived under rebuildable
Temp, so reload and Play Mode transitions could lose the operation being awaited.Impact
The same invocation cannot be dispatched twice within the advertised protection window, ambiguous outcomes remain queryable instead of being blindly retried, and refresh waits stay bound to the accepted operation and generation. Health polling reports a file count instead of repeatedly returning full changed-file lists, reducing payload and context growth in long workflows.
Validation
outcome_unknownacross another same-ID request; orphanedstartedafter service epoch change becameoutcome_unknown; forced journal-claim write failure rejected before dispatch and recovered after reinitialization; an injected expired record returnedprotection_expiredbefore redispatch was allowed/executerequest carried invocation and target IDs, the connection then dropped after receipt, and both the child diagnostic and persisted Editor parent remainedoutcome_unknownwithout redispatchgit diff --checkNo package version bump or release tag is included.