You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Generator: the raw event door's requestOptions XML predates the shared event feed #909
The generated XML documentation of the internal raw event door describes a contract it no longer has.
src/OpenCode.Sdk/Events/Internal/EventsRawClient.cs:28 documents requestOptions as: "The per-call options; NoThrow is refused. NetworkTimeout bounds only the opening and is refused for reconnecting streams, including Timeout.InfiniteTimeSpan."
Since feat(events)!: one shared event feed per client (2.0.0) #902, Pipeline.ExecuteStreamAsync refuses event.subscribe outright ("Operation 'event.subscribe' must be opened through its shared event feed."). The raw method is only a route and adapter for the shared feed, which opens its attempts directly on the stream plane with no per-call options.
The sentence comes from one fixed string in tools/OpenCode.Sdk.Tools/Generator/Emission/OperationMethodEmitter.cs:290, emitted for every streaming operation. It is still accurate for the other stream that carries it (src/OpenCode.Sdk/Experimental/ExperimentalClient.cs:562).
Behaviour is correct: the type is internal and nothing calls its method through the pipeline. The cost is a generated comment that contradicts the code it sits on.
Proposed direction
Have the emitter give an operation that only the shared feed opens a requestOptions sentence that says so (or no per-call options sentence), keyed on the same operation trait the pipeline's refusal uses, and regenerate. The public EventsClient.SubscribeAsync documentation is hand-written and already correct.
Activity
fix(generator): the internal-raw stream sentence says only who decides (