[PR #7401] fix(desktop): Remove Cursor Unfocused Prompt Input #12386

Open
opened 2026-02-16 18:17:18 -05:00 by yindo · 0 comments
Owner

Original Pull Request: https://github.com/anomalyco/opencode/pull/7401

State: open
Merged: No


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.

**Original Pull Request:** https://github.com/anomalyco/opencode/pull/7401 **State:** open **Merged:** No --- ### 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: <img width="1970" height="1043" alt="image" src="https://github.com/user-attachments/assets/033ccf5f-8f27-458d-be19-6eab2c6b82b3" /> 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: <img width="1667" height="1020" alt="image" src="https://github.com/user-attachments/assets/87f92c0c-6118-4c0c-b119-58c20c27a158" /> Also tested moving cursor to a new input like terminal, works fine.
yindo added the pull-request label 2026-02-16 18:17:18 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#12386