Crash when copying text containing Unicode tag characters in Ghostty terminal #9276

Open
opened 2026-02-16 18:12:04 -05:00 by yindo · 2 comments
Owner

Originally created by @Raterfy on GitHub (Feb 13, 2026).

Originally assigned to: @kommander on GitHub.

Description

OpenCode crashes when copying specific text that contains Unicode tag characters (U+E0000 range). This occurred while working on a CTF challenge. The crash happens immediately upon copying the problematic text to the clipboard.

Plugins

none

OpenCode version

1.1.65

Steps to reproduce

  1. Open OpenCode in Ghostty terminal on macOS
  2. Copy the following text to clipboard: Emoji's
  3. The letter 'o' (specifically the 'o' in "Emo" with the attached Unicode tag characters) causes OpenCode to crash immediately
  4. Note: The crash is triggered by the 'o' character combined with the invisible Unicode tag characters that follow it.

Screenshot and/or share link

https://github.com/user-attachments/assets/d8cda76e-1faa-4d5f-b732-b166f6cde11d

Operating System

macOS Tahoe 26.3

Terminal

Ghostty

Originally created by @Raterfy on GitHub (Feb 13, 2026). Originally assigned to: @kommander on GitHub. ### Description OpenCode crashes when copying specific text that contains Unicode tag characters (U+E0000 range). This occurred while working on a CTF challenge. The crash happens immediately upon copying the problematic text to the clipboard. ### Plugins none ### OpenCode version 1.1.65 ### Steps to reproduce 1. Open OpenCode in Ghostty terminal on macOS 2. Copy the following text to clipboard: Emoji's 3. The letter 'o' (specifically the 'o' in "Emo" with the attached Unicode tag characters) causes OpenCode to crash immediately 4. Note: The crash is triggered by the 'o' character combined with the invisible Unicode tag characters that follow it. ### Screenshot and/or share link https://github.com/user-attachments/assets/d8cda76e-1faa-4d5f-b732-b166f6cde11d ### Operating System macOS Tahoe 26.3 ### Terminal Ghostty
yindo added the opentuibug labels 2026-02-16 18:12:04 -05:00
Author
Owner

@github-actions[bot] commented on GitHub (Feb 13, 2026):

This issue might be related to existing issues with Unicode character handling. Please check:

  • #5288: Application crashes when LLM outputs Zalgo text - another Unicode/special character crash issue in the opentui component

Both issues involve OpenCode crashing when encountering special Unicode characters, though with different triggers (Zalgo text from LLM output vs. copied Unicode tag characters). These might be related to the same underlying Unicode handling vulnerability.

@github-actions[bot] commented on GitHub (Feb 13, 2026): This issue might be related to existing issues with Unicode character handling. Please check: - #5288: Application crashes when LLM outputs Zalgo text - another Unicode/special character crash issue in the opentui component Both issues involve OpenCode crashing when encountering special Unicode characters, though with different triggers (Zalgo text from LLM output vs. copied Unicode tag characters). These might be related to the same underlying Unicode handling vulnerability.
Author
Owner

@Raterfy commented on GitHub (Feb 13, 2026):

Related Issues

This crash may be related to #5288 where Zalgo text (combining diacritical marks) also causes crashes. Both issues involve special Unicode characters causing application crashes, though with different triggers:

  • #5288: LLM outputting Zalgo text
  • This issue: Copying text with Unicode tag characters

This suggests there may be an underlying vulnerability in how OpenCode handles certain Unicode character ranges.

@Raterfy commented on GitHub (Feb 13, 2026): ### Related Issues This crash may be related to #5288 where Zalgo text (combining diacritical marks) also causes crashes. Both issues involve special Unicode characters causing application crashes, though with different triggers: - #5288: LLM outputting Zalgo text - This issue: Copying text with Unicode tag characters This suggests there may be an underlying vulnerability in how OpenCode handles certain Unicode character ranges.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#9276