opencode icon indicating copy to clipboard operation
opencode copied to clipboard

fix(desktop): Remove Cursor Unfocused Prompt Input

Open dbpolito opened this issue 6 days ago • 3 comments

What does this PR do?

Remove the cursor from the prompt input when focus moves to another element, addressing an issue with cursor visibility in certain environments.

How did you verify your code works?

Currently if you click some elements, or sometimes when you cmd + tab, the focus leaves the prompt input, but the cursor is still there, for example, focus the prompt input, and click on session breadcrumb that opens sessions:

image

This works on web version, but on tauri version of mac has weird behaviors.

So if you focus prompt, click there, and paste an image from the clipboard, this still happens:

image

Also tested moving cursor to a new input like terminal, works fine.

dbpolito avatar Jan 09 '26 00:01 dbpolito