Skip to content

[FEATURE]: When GUI gains windows focus it should make the input chat bot also in focus #59973

Open

Description

@binbuf

Feature hasn't been suggested before.

  • 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

  1. Have OpenCode 2.x GUI in focus
  2. Click text box input window
  3. Click the chat area (not the text box)
  4. Switch to another program, ALT+TAB back, since text box wasn't in focus previously in window, it remains not in focus now.

Activity

  1. opencodejr commented on Oct 28, 2026

    @opencodejr
    Contributor

    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:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions