You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[FEATURE]: When GUI gains windows focus it should make the input chat bot also in focus #59973
I have verified this feature I'm about to request hasn't been suggested before.
Describe the enhancement you want to request
When the GUI gains focus it doesn't automatically guarantee the input text box also gains focus. For ease of use the text box should be automatically focused when the window gains focus.
Steps to replicate
Have OpenCode 2.x GUI in focus
Click text box input window
Click the chat area (not the text box)
Switch to another program, ALT+TAB back, since text box wasn't in focus previously in window, it remains not in focus now.
Thanks for the suggestion, @binbuf! You'd like the prompt to get focus automatically whenever the OpenCode window comes back into focus (e.g. after Alt+Tab), even if you last clicked somewhere else in the app, such as the chat area.
Right now the app works as built: when the window gets focus back, focus goes to whatever was focused before you switched away. So I've filed this as a feature request for the maintainers to consider.
Activity
opencodejr commentedon Oct 28, 2026
Thanks for the suggestion, @binbuf! You'd like the prompt to get focus automatically whenever the OpenCode window comes back into focus (e.g. after Alt+Tab), even if you last clicked somewhere else in the app, such as the chat area.
Right now the app works as built: when the window gets focus back, focus goes to whatever was focused before you switched away. So I've filed this as a feature request for the maintainers to consider.
Related issues: