-
Notifications
You must be signed in to change notification settings - Fork 5.6k
Closed
Labels
bugSomething isn't workingSomething isn't workingwebRelates to opencode on web / desktopRelates to opencode on web / desktopwindows
Description
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
- Install OpenCode CLI via npm:
npm install -g opencode-ai - Install oh-my-opencode:
npx oh-my-opencode install --no-tui --claude=max20 --chatgpt=yes --gemini=yes - Install plugins in
~/.config/opencode/node_modules/ - Launch OpenCode Desktop app
- 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
- Install OpenCode CLI via npm:
npm install -g opencode-ai - Install oh-my-opencode:
npx oh-my-opencode install --no-tui --claude=max20 --chatgpt=yes --gemini=yes - Install plugins in
~/.config/opencode/node_modules/ - Launch OpenCode Desktop app
- Result: 10+ windows open continuously
Screenshot and/or share link
No response
Operating System
Windows 11
Terminal
No response
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workingwebRelates to opencode on web / desktopRelates to opencode on web / desktopwindows