Application crashes when LLM outputs Zalgo text #3428

Open
opened 2026-02-16 17:40:02 -05:00 by yindo · 1 comment
Owner

Originally created by @thedaneeffect on GitHub (Dec 9, 2025).

Originally assigned to: @kommander on GitHub.

Description

Instructing the LLM to "Output Zalgo" causes the application to crash and break the terminal.

Steps to Reproduce

  1. Open OpenCode
  2. Instruct the LLM: "Output Zalgo"
  3. Application crashes and terminal breaks

Expected Behavior

The application should handle special Unicode characters (like Zalgo text) gracefully without crashing or breaking the terminal.

Actual Behavior

The application crashes and the terminal becomes unusable/broken.

Screenshots

Image

Video

Originally created by @thedaneeffect on GitHub (Dec 9, 2025). Originally assigned to: @kommander on GitHub. ## Description Instructing the LLM to "Output Zalgo" causes the application to crash and break the terminal. ## Steps to Reproduce 1. Open OpenCode 2. Instruct the LLM: "Output Zalgo" 3. Application crashes and terminal breaks ## Expected Behavior The application should handle special Unicode characters (like Zalgo text) gracefully without crashing or breaking the terminal. ## Actual Behavior The application crashes and the terminal becomes unusable/broken. ## Screenshots <img width="617" height="547" alt="Image" src="https://github.com/user-attachments/assets/84a2b96a-700c-481b-8dd9-6a2675e637b4" /> ## Video <video src="https://github.com/user-attachments/assets/320a965f-5c61-444c-b44f-be948305e3b4"/> ## Environment - OS: Ubuntu 22.04 - Terminal: Window's Terminal - OpenCode version: [Please specify]
yindo added the opentui label 2026-02-16 17:40:02 -05:00
Author
Owner

@github-actions[bot] commented on GitHub (Dec 9, 2025):

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

  • #4606: TUI Crashes - describes crashes when pasting/copying long text which breaks the terminal output

Feel free to ignore if this doesn't address your specific case.

@github-actions[bot] commented on GitHub (Dec 9, 2025): This issue might be a duplicate of existing issues. Please check: - #4606: TUI Crashes - describes crashes when pasting/copying long text which breaks the terminal output Feel free to ignore if this doesn't address your specific case.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#3428