Skip to content

[FEATURE]: RTL support for Arabic chat text #31344

Closed as duplicate
Closed as duplicate

Description

@mohammad-ahw

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

OpenCode doesn't support RTL (Right-to-Left) text direction for Arabic or Persian.

When users write in Arabic, the chat display shows text incorrectly, making it hard to read and write.

Please add RTL support for:

  • User messages in Persian/Arabic
  • AI responses containing Persian/Arabic text
  • Auto-detection of text direction

This would help millions of developers in Middle East who use OpenCode daily.

Activity

  1. github-actions commented on Jun 8, 2026

    @github-actions
    Contributor

    This issue might be a duplicate of existing issues. Please check:

    Please search existing issues before submitting to avoid duplicates. If your request is distinct from the above, please explain how it differs.

  2. rekram1-node commented on Jun 8, 2026

    @rekram1-node
    Contributor

    AUTOMATED: closing as duplicate of: #14257

  3. touficmamdouh commented on Aug 13, 2026

    @touficmamdouh

    Hi everyone,

    If you use OpenCode Desktop and work with Arabic (or any Right-to-Left language), you’ve probably ran into issues with broken text rendering, disconnected letters, or messed-up alignment in the UI.

    I built a quick open-source patch/fix to solve this: opencode-desktop-arabic-rtl-fix.

    🚀 What it fixes:

    • Fixes character joining & letter connection for Arabic text.
    • Corrects cursor positioning and text alignment (RTL/LTR flow).
    • Ensures seamless integration without breaking existing layout settings.

    📦 Installation / Usage:

    You can find the full setup instructions and codebase on GitHub:
    👉 https://github.com/touficmamdouh/opencode-desktop-arabic-rtl-fix

    Feel free to test it out, give feedback, or contribute via PRs! Hope this helps anyone dealing with RTL UI challenges in desktop apps.

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