Repository navigation
fix(generator): an internal-raw stream documents who decides its per-call options - #925
Merged
Merged
Conversation
… options The raw event door's requestOptions XML repeated the caller-facing stream rules, but only the shared event feed opens that method, and the pipeline refuses it as a one-shot stream. An internal-raw family's raw methods are opened only by the family's hand-written owner, which decides the per-call options, so a stream operation in such a family now says that instead. Every other stream keeps its sentence.
#909) The raw event door's method is never called: the shared feed opens every attempt on the stream plane with no per-call options, and the pipeline refuses the raw route. So the sentence no longer says that the owner calls the method and supplies the options; it says that the family's hand-written owner decides which apply, which holds for this door and for any later internal-raw stream.
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.
Closes #909
What
Every stream operation got one generated
requestOptionssentence: "The per-call options; NoThrow is refused. NetworkTimeout bounds only the opening and is refused for reconnecting streams, including Timeout.InfiniteTimeSpan." On the internal raw event door that sentence describes a contract the method does not have: the shared event feed opens every attempt on the stream plane with no per-call options, and the pipeline refuses the raw route.Changes
OperationMethodEmitter: therequestOptionssentence is chosen by the operation and its family's emission. A stream in aninternalRawfamily (ADR-0021) gets "The per-call options; the family's hand-written owner decides which apply." Every other stream keeps today's sentence, and non-stream operations keep "The per-call options." The emitter reads no new input and no curation changes.src/OpenCode.Sdk/Events/Internal/EventsRawClient.cschanges, and only that line. The public event door's documentation is hand-written and already correct.Verification
StreamOperationEmissionTests.Emit_Should_Document_Stream_Request_Options_By_Family_Emission, two rows (public and internal raw): green; with the emitter's internal-raw branch removed, the internal-raw row fails; restored.format whitespaceandformat style, Slopwatch, clone gate,generate --verify,refresh-spec --verify, the tool's--help, both packs; tests 12,027 passed, plus 18 ServiceElection and 3 NativeAot; the tree stayed clean.