Skip to content

Caps Lock produces garbled characters in TUI input on WSL #16433

Closed as not planned

Description

@devslimbr

Description

When Caps Lock is enabled while typing in the OpenCode TUI input field on WSL, characters are replaced with unexpected symbols (e.g., @ characters). For example, typing "TESTING" with Caps Lock on produces @@T@esting instead of the expected uppercase text.

This seems to be related to how the TUI handles key events with the Caps Lock modifier on WSL terminals.

Plugins

No response

OpenCode version

1.2.20

Steps to reproduce

  1. Run OpenCode inside WSL (Ubuntu)
  2. Enable Caps Lock on the keyboard
  3. Start typing in the input field
  4. Observe that characters are replaced with @ or other unexpected symbols instead of uppercase letters****

Screenshot and/or share link

Image

Operating System

WSL2 on Windows (Ubuntu)

Terminal

Windows Terminal

Activity

  1. added
    opentuiThis relates to changes in v1.0, now that opencode uses opentui
    on Mar 7, 2026
  2. MyFaith commented on Mar 10, 2026

    @MyFaith
    Image Same problem on MacOS.
  3. removed
    bugSomething isn't working
    opentuiThis relates to changes in v1.0, now that opencode uses opentui
    on May 3, 2026
  4. github-actions commented on Jul 3, 2026

    @github-actions
    Contributor

    To stay organized issues are automatically closed after 60 days of no activity. If the issue is still relevant please open a new one.

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