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
Syntax highlighting breaks for non-English text with file links, selection also behaves incorrectly #1857
When using non-English text (e.g., Russian) in chat messages containing file links, syntax highlighting breaks.
Additionally, text selection in such messages behaves incorrectly, highlighting is inconsistent and sometimes misaligned.
Steps to Reproduce
Open the chat interface in opencode.
Send a message in a non-English language (e.g., Russian) that includes a file link reference, for example: кратко в одну строку проанализируй @README.md
Observe how syntax highlighting works compared to the same message in English.
Try selecting the text in the broken-highlighted message.
Expected Behavior
Syntax highlighting should work consistently for all languages, including non-English text.
Text selection should behave normally and align with the actual characters.
Actual Behavior
Syntax highlighting breaks after the file link when using non-English text.
Text selection becomes misaligned or broken (see screenshots).
Screenshots
Environment
opencode version: v0.4.2
GitHub Copilot: GPT-4.1 build agent
OS: macos 15.6
Terminal/Editor: ghostty, warp
Additional Context
This bug only appears with non-English text. English text with file links displays and selects correctly.
P.S. Fell in love with this software, thank you so much for what you’re doing ❤️
Activity
rekram1-node commentedon Dec 28, 2025
[automated] Closing due to 90+ days of inactivity. Feel free to reopen if you still need this!