opencode
opencode copied to clipboard
fix(desktop): Remove Cursor Unfocused Prompt Input
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:
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:
Also tested moving cursor to a new input like terminal, works fine.