kilocode icon indicating copy to clipboard operation
kilocode copied to clipboard

TUI starts with a blank screen and never responds

Open Hellcake opened this issue 2 months ago • 0 comments

Description

kilo opens, draws one empty frame and then hangs: no input is accepted and nothing is logged. The worker process is alive and idle.

Cause: the main process sends its first RPC request before the worker has installed its handler (the worker imports the whole server first). On Bun 1.4.x that message is dropped (oven-sh/bun#44574; 1.3.14 queues it), and Rpc.client.call in packages/opencode/src/util/rpc.ts has no timeout, so the TUI waits forever. Terminals that answer the renderer's capability queries immediately hit this more often, because the main side skips a 1s wait and gets to its first request sooner.

Plugins

No response

Kilo version

Built from main and run with Bun 1.4.0. Does not reproduce on the pinned Bun 1.3.14.

Steps to reproduce

  1. Launch kilo in Apple Terminal or kitty.
  2. The screen stays blank and keystrokes do nothing.

Deterministic repro without a terminal: a worker that delays Rpc.listen by 150ms plus a client that calls it immediately. On main with Bun 1.4.x the call never resolves. There's a test for this in the fix PR.

Screenshot and/or share link

No response

Operating System

macOS 26.6.2

Terminal

Apple Terminal, kitty

Hellcake avatar Sep 22 '26 20:09 Hellcake