anomalyco / anomalyco/opencode
[Bug] [Desktop] Active session constantly steals window focus on Windows 11
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 209k
- Forks
- 27.5k
- PR merge metrics
- PR metrics pending
Description
Description
I couldn't find a related issue so I'm opening a new one. Since a recent update for OpenCode Desktop; I cannot use it to do tasks in the background anymore. It constantly switches window focus back to itself, making anything that involves typing or dragging in other programs impossible.
Plugins
No response
OpenCode version
v1.18.31
Steps to reproduce
Steps to Reproduce:
- Start a new Session or continue an existing one
- Switch to a different Window (e.g. Browser, VSCode, etc.)
- Shortly after, within an arbitrary amount of seconds, the window focus will be back on OpenCode
Additional context:
- Happens independently of OC running only the main session or multiple subagents
- Happens both in the main session or inside the agent drilldown view
Screenshot and/or share link
No response
Operating System
Windows 11
Terminal
No response
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.
Research direction
No files, tests, or entry points are named. Start by reproducing the focus change on Windows 11 with OpenCode Desktop v1.18.31 while switching to a browser or VSCode, then trace the desktop focus handling responsible. Done means an active session no longer returns focus to OpenCode while another window is being used.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- desktop
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Active
- Clarity
- Mostly clear
- Newbie friendliness
- 52/100