anomalyco / anomalyco/opencode
TUI provider dialog is empty and the main screen is blank on dev
@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
git clone https://github.com/anomalyco/opencode && cd opencodebun installcd packages/cliOPENAI_API_KEY=sk-... bun run src/index.ts- 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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.