anomalyco / anomalyco/opencode

OpenCode Desktop prompt input textbox takes focus/changes cursor position while agent works(MacOS)

Open
#41,332 1 comment 0 reactions 1 assignee View on GitHub

@Hona is already working on this.

Since Aug 8, 2026.

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

Description

Description

While an agent is working on a long running task, it is frustratingly difficult to draft a prompt in the prompt input, or work in a terminal. Somehow the agent workflow keeps stealing the input focus and then the focus returns to the prompt input textbox at position 0. Example: "e this. ing a prompt it looks likThis means while you're writ"

Plugins

No response

OpenCode version

Desktop
Version 1.17.18 (1.17.18)

Steps to reproduce
  1. Start a long running task with code edits
  2. Within the app type in a terminal or prompt input box
Screenshot and/or share link

No response

Operating System

MacOS

Terminal

No response

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.