Skip to content

fix(generator): an internal-raw stream documents who decides its per-call options - #925

Merged
Blind-Striker merged 2 commits into
masterfrom
fix/909-raw-stream-request-options
Nov 16, 2026
Merged

Blind-Striker merged 2 commits into
masterfrom
fix/909-raw-stream-request-options

Conversation

@Blind-Striker

Copy link
Copy Markdown
Collaborator

Closes #909

What

Every stream operation got one generated requestOptions sentence: "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: the requestOptions sentence is chosen by the operation and its family's emission. A stream in an internalRaw family (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.
  • Regenerated: only src/OpenCode.Sdk/Events/Internal/EventsRawClient.cs changes, and only that line. The public event door's documentation is hand-written and already correct.
  • No canon quotes this sentence, so no docs change; no CHANGELOG entry (internal type).

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.
  • Local check on Linux, Release: build and the net472 test build (0 warnings, 0 errors), format whitespace and format 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.
  • No runtime behaviour changes, so there is no net472 mutation proof to run.

… 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.
@Blind-Striker Blind-Striker added this to the Next milestone Nov 16, 2026
@Blind-Striker
Blind-Striker added this pull request to the merge queue Nov 16, 2026
Merged via the queue into master with commit 7ae66b9 Nov 16, 2026
17 checks passed
@Blind-Striker
Blind-Striker deleted the fix/909-raw-stream-request-options branch November 16, 2026 11:11
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.

Generator: the raw event door's requestOptions XML predates the shared event feed

1 participant