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
RPC: a plugin call fails after 100 s of silence, while upstream's client sets no timeout #868
A plugin RPC call (rpc.call) runs until the plugin answers, as upstream's first-party client does. Today the SDK fails the call after 100 s without network progress.
Upstream at the pin (v2.3.0, a6b15d33)
packages/client/src/promise/generated/client.ts:2267-2279: rpc.call is a plain request with the caller's request options.
packages/client/src/promise/generated/client.ts:374: the only signal on a request is the caller's own (requestOptions?.signal). The client sets no timeout, so the caller's signal is the only deadline.
packages/core/src/rpc.ts:132-137: the server provides for long-lived RPCs. A call runs until the plugin's handler returns, or until the routing cache closes the RPC (rpc.unavailable).
The SDK today (cdf22169)
src/OpenCode.Sdk/Internal/Operations/OperationTraits.cs:10-21: the table of operations that run with no network window when the call sets none. rpc.call is not in it.
So rpc.call takes the client's NetworkTimeout, 100 s by default (docs/architecture/client-runtime.md, Error channels). A plugin method that sends nothing for longer fails with OpenCodeTransportException, where upstream's client keeps waiting.
Done when
rpc.call runs with no network window unless the call sets one, so the caller's token is its deadline, as for the other operations that answer only when work ends.
The canon's list of those operations (docs/architecture/client-runtime.md, Error channels) names rpc.call, and the source watch pins the upstream line that blocks, as it does for the others.
A test proves a call that is silent past the client window still completes, on a manual clock.
Activity