Skip to content

TUI hangs on a blank screen when a worker RPC request fails (e.g. --port already in use) #1616

Open

Description

@devin-ai-integration

What happens

The TUI waits on RPC calls to its server worker before drawing (for example client.call("server", network) to start the --port listener). When the worker handler throws, Rpc.listen in packages/opencode/src/util/rpc.ts never posts a reply, and Rpc.client has no reject path, so the call never settles. Example: altimate-code --port 4096 with the port already taken leaves a blank terminal forever with no error.

Expected

A failed request is answered with the error message, the pending call rejects, and the TUI shows the existing "Failed to start server" error and exits.

Upstream

Fixed upstream in anomalyco/opencode#54936.

Written by Devin

Activity

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions