Skip to content

[Bug] OpenCode2 CLI Endlessly Pops Up Windows on Windows #51887

Description

@TGSAN

Description

After installing with bun install -g --trust @opencode/cli, run opencode2 in cmd or PowerShell. When opencode2 starts the background server, a foreground window keeps popping up and immediately closing (the window constantly steals focus, making it almost impossible to use).
Even if you exit the foreground CLI, it cannot be stopped. By inspecting with Process Explorer, I found that the background opencode.exe server process continuously launches tasklist.exe, and tasklist.exe creates a foreground console window that steals focus.

Plugins

No plugins that can run on V2 (none are compatible)

OpenCode version

v2.0.18

Steps to reproduce

No response

Screenshot and/or share link

No response

Operating System

Windows 11 25H2 x64

Terminal

Windows Terminal

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions