anomalyco / anomalyco/opencode

[v2 Windows] opencode2 hangs at "Starting background server..." after reinstall

Open
#41,746 4 comments 1 reaction 1 assignee View on GitHub

@Hona is already working on this.

Since Aug 11, 2026.

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

Description

Description

Steps to reproduce:

  1. npm uninstall -g @opencode-ai/cli
  2. npm install -g @opencode-ai/cli@0.0.0-next-17155
  3. Run opencode2 → hangs at "Starting background server..."

Additional notes:

  • Running opencode2 serve directly works fine (starts on port 4096)
  • opencode2 --standalone works correctly
  • The issue appears to be in how the TUI spawns the background server process
Plugins

No response

OpenCode version

opencode2 v0.0.0-next-17155 

Steps to reproduce
Screenshot and/or share link

No response

Operating System

OS: Windows

Terminal

PowerShell

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.