Bug: Desktop app opens multiple windows on startup (Windows) #4245

Closed
opened 2026-02-16 17:43:09 -05:00 by yindo · 0 comments
Owner

Originally created by @Junseo5 on GitHub (Jan 5, 2026).

Originally assigned to: @adamdotdevin on GitHub.

Description

Description

When launching the OpenCode Desktop app on Windows with plugins that take time to load (like oh-my-opencode), multiple windows (10+) open continuously instead of a single window.

Environment

  • OS: Windows 10/11
  • OpenCode Version: 1.1.2
  • Plugins: oh-my-opencode, opencode-antigravity-auth, opencode-openai-codex-auth

Steps to Reproduce

  1. Install OpenCode CLI via npm: npm install -g opencode-ai
  2. Install oh-my-opencode: npx oh-my-opencode install --no-tui --claude=max20 --chatgpt=yes --gemini=yes
  3. Install plugins in ~/.config/opencode/node_modules/
  4. Launch OpenCode Desktop app
  5. Result: 10+ windows open continuously

Expected Behavior

Single window should open, even if plugins take time to load.

Root Cause

The desktop app lacks a single-instance guard. When the app is launched while plugins are still loading, another instance can spawn, causing a cascade of multiple windows.

Workaround

Disable plugins in opencode.json ("plugin": []) - but this removes plugin functionality.

Proposed Fix

Add tauri-plugin-single-instance to prevent multiple instances. I have a PR ready: #XXXX

Plugins

oh-my-opencode, opencode-antigravity-auth, opencode-openai-codex-auth

OpenCode version

1.1.2

Steps to reproduce

  1. Install OpenCode CLI via npm: npm install -g opencode-ai
  2. Install oh-my-opencode: npx oh-my-opencode install --no-tui --claude=max20 --chatgpt=yes --gemini=yes
  3. Install plugins in ~/.config/opencode/node_modules/
  4. Launch OpenCode Desktop app
  5. Result: 10+ windows open continuously

Screenshot and/or share link

No response

Operating System

Windows 11

Terminal

No response

Originally created by @Junseo5 on GitHub (Jan 5, 2026). Originally assigned to: @adamdotdevin on GitHub. ### Description ### Description When launching the OpenCode Desktop app on Windows with plugins that take time to load (like oh-my-opencode), multiple windows (10+) open continuously instead of a single window. ### Environment - **OS**: Windows 10/11 - **OpenCode Version**: 1.1.2 - **Plugins**: oh-my-opencode, opencode-antigravity-auth, opencode-openai-codex-auth ### Steps to Reproduce 1. Install OpenCode CLI via npm: `npm install -g opencode-ai` 2. Install oh-my-opencode: `npx oh-my-opencode install --no-tui --claude=max20 --chatgpt=yes --gemini=yes` 3. Install plugins in `~/.config/opencode/node_modules/` 4. Launch OpenCode Desktop app 5. **Result**: 10+ windows open continuously ### Expected Behavior Single window should open, even if plugins take time to load. ### Root Cause The desktop app lacks a single-instance guard. When the app is launched while plugins are still loading, another instance can spawn, causing a cascade of multiple windows. ### Workaround Disable plugins in `opencode.json` (`"plugin": []`) - but this removes plugin functionality. ### Proposed Fix Add `tauri-plugin-single-instance` to prevent multiple instances. I have a PR ready: #XXXX ### Plugins oh-my-opencode, opencode-antigravity-auth, opencode-openai-codex-auth ### OpenCode version 1.1.2 ### Steps to reproduce 1. Install OpenCode CLI via npm: `npm install -g opencode-ai` 2. Install oh-my-opencode: `npx oh-my-opencode install --no-tui --claude=max20 --chatgpt=yes --gemini=yes` 3. Install plugins in `~/.config/opencode/node_modules/` 4. Launch OpenCode Desktop app 5. **Result**: 10+ windows open continuously ### Screenshot and/or share link _No response_ ### Operating System Windows 11 ### Terminal _No response_
yindo added the windowsbugweb labels 2026-02-16 17:43:09 -05:00
yindo closed this issue 2026-02-16 17:43:09 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#4245