Skip to content

RPC: a plugin call fails after 100 s of silence, while upstream's client sets no timeout #868

Closed

Description

@Blind-Striker

Goal

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.
  • The CHANGELOG has a Fixed line.

Activity

  1. added this to the Next milestone on Nov 14, 2026
  2. added
    bug
    on Nov 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions