Skip to content

Issue with the flow of the text (rtl & ltr) #55424

Open

Description

@Abdullah-Saeed-BB

Description

I have been using the Opencode desktop for a while, I have created a issue before it and it solve it partially, but the core problem still there.

The Rtl languages isn't good enough in the Opencode desktop, so I change it to English, and as you can see in the screenshot, the close button (The button that on the corner to close the window) is still at the same spot until if I change the language that from rtl or ltr.

Plugins

No response

OpenCode version

2.0.22

Steps to reproduce

  1. If the language is rtl (e.g. Arabic) the close button must be in the top-left corner.
  2. If the language is ltr (e.g. English) the close button must be in the top-right corner.

Screenshot and/or share link

Image

Operating System

Windows 11

Terminal

No response

Activity

  1. opencode-agent commented on Oct 14, 2026

    @opencode-agent
    Contributor

    Thanks for the report and the screenshot. I couldn't test this myself: it needs the OpenCode desktop app on Windows, and the environment I run in can't provide that. A maintainer with a Windows setup will need to check it.

    From reading the code: the close, minimize and maximize buttons are drawn by Windows itself, not by OpenCode. Windows decides which side they go on based on its own display language, so changing OpenCode's language doesn't move them. If your Windows display language is Arabic, that explains why they stay in the top-left after you switch OpenCode to English.

    To help whoever looks at this, could you confirm what your Windows display language is set to?

    Related:

  2. Abdullah-Saeed-BB commented on Oct 15, 2026

    @Abdullah-Saeed-BB
    Author

    Just to understand what I mean, in Chrome you can do that, change the language from ltr to rtl changes the spot of the close window button. Like in the screenshots

    In English

    Image

    In Arabic

    Image
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