Skip to content

Desktop (Windows): composer loses keyboard focus when switching session tabs #44244

Closed as not planned

Description

@claell

Description

In OpenCode Desktop on Windows, the prompt composer loses keyboard focus whenever I switch between open session tabs. After returning to a tab, keystrokes go nowhere until I click into the composer manually.

This makes multi-session workflows painful: every tab switch costs an extra mouse click before typing is possible.

Related reports:

Steps to reproduce

  1. Open OpenCode Desktop on Windows.
  2. Open two or more sessions so multiple session tabs exist.
  3. Type in the composer of one tab.
  4. Switch to another tab and then back again.
  5. Observe that the composer does not have keyboard focus; typed characters are not entered anywhere.

Expected behavior

The composer regains keyboard focus automatically when returning to a session tab.

Actual behavior

Focus is dropped on tab switch; manual mouse click into the composer is required before typing works again.

Environment

  • App: OpenCode Desktop 1.18.21
  • OS: Microsoft Windows 11 Education, 25H2, build 26200.8875

Activity

  1. claell commented on Aug 22, 2026

    @claell
    Author

    Additional data point: the focus loss also happens without any tab switching. When I create a new chat session and send the first message, the composer is no longer focused afterwards — I have to click back into it before typing a follow-up. Sending subsequent messages in that same session keeps focus intact, so it is specifically the transition from the empty/new-session state after the first submit.

  2. thdxr commented on Oct 11, 2026

    @thdxr
    Member

    Thanks for the report! OpenCode 2.0 is now out and development is focused on V2, so we're closing issues filed against OpenCode 1. Please upgrade (opencode upgrade --major, details: https://anoma.ly/notes/opencode-2-0), and if this is still relevant on 2.0, reopen this issue or open a new one with your 2.0 version.

    — from 𝕺𝖕𝖊𝖓𝕮𝖔𝖉𝖊

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

Metadata

Metadata

Assignees

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