anomalyco / anomalyco/opencode

TUI provider dialog is empty and the main screen is blank on dev

Open
#42,643 1 comment 0 reactions 1 assignee View on GitHub

@simonklee is already working on this.

Since Aug 14, 2026.

Dominant language
TypeScript
Stars
209k
Forks
27.5k
PR merge metrics
PR metrics pending

Description

Description

On current dev the TUI is not usable. With OPENAI_API_KEY set, the first-run "Connect a provider" dialog lists nothing except "Other Custom provider". After pressing esc the screen goes fully blank. The TUI process stays alive and keeps its connections to the daemon open.

The daemon it spawns sees the provider fine:

GET /api/provider     -> ["openai", "opencode"]
GET /api/integration  -> openai has 1 connection

The dialog reads the old v1 routes, which the daemon no longer serves:

GET /provider          -> 404
GET /config/providers  -> 404

gracefulFetch in packages/cli/src/tui.ts replaces those 404s with empty stubs ({ all: [], connected: [] }), so the dialog renders an empty list. The blank screen after pressing esc looks like a separate gate; I did not find which request it blocks on.

Same behavior from source (bun run src/index.ts) and from a compiled binary.

Plugins

none

OpenCode version

dev branch, 8a55ba75b5

Steps to reproduce
  1. git clone https://github.com/anomalyco/opencode && cd opencode
  2. bun install
  3. cd packages/cli
  4. OPENAI_API_KEY=sk-... bun run src/index.ts
  5. The provider dialog lists only "Other Custom provider". Press esc: blank screen.
Screenshot and/or share link

No response

Operating System

macOS (Darwin 25.5.0), arm64

Terminal

tmux and macos Terminal

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.