opencode icon indicating copy to clipboard operation
opencode copied to clipboard

Application crashes when LLM outputs Zalgo text

Open thedaneeffect opened this issue 1 month ago • 1 comments

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

Environment

  • OS: Ubuntu 22.04
  • Terminal: Window's Terminal
  • OpenCode version: [Please specify]

thedaneeffect avatar Dec 09 '25 17:12 thedaneeffect

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] avatar Dec 09 '25 17:12 github-actions[bot]