You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Bug]: Titlebar buttons overlap with Windows native controls on RTL locales #37779
On Windows systems with an RTL locale (e.g., Arabic), the titlebar buttons overlap with the native Windows caption buttons (minimize, maximize, close). This happens because the <header> element in the titlebar has no explicit dir attribute, causing the browser to inherit the RTL direction from the OS locale. As a result, the hamburger menu and back/forward navigation buttons flip to the right side, where they collide with the Windows native controls.
Steps to Reproduce
Set your Windows display language or locale to Arabic (or any RTL language)
Launch the opencode desktop app
Observe the titlebar: the hamburger menu and back/forward arrows appear on the right side
These buttons overlap with the Windows minimize/maximize/close buttons
Expected Behavior
The titlebar buttons should remain on the left side regardless of the system locale. The Windows native caption buttons should not overlap with opencode's own buttons.
Actual Behavior
The titlebar layout flips to RTL mode, causing opencode's buttons to overlap with the Windows native caption buttons on the right side.
Suggested Fix
Add dir="ltr" to the <header> element in packages/app/src/components/titlebar.tsx (around line 229):
Activity
github-actions commentedon Jul 19, 2026
This issue might be a duplicate of an existing issue. Please check:
If this is indeed a duplicate, consider adding your details there instead.
github-actions commentedon Sep 19, 2026
To stay organized issues are automatically closed after 60 days of no activity. If the issue is still relevant please open a new one.