opencode
opencode copied to clipboard
Application crashes when LLM outputs Zalgo text
Description
Instructing the LLM to "Output Zalgo" causes the application to crash and break the terminal.
Steps to Reproduce
- Open OpenCode
- Instruct the LLM: "Output Zalgo"
- 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
Video
Environment
- OS: Ubuntu 22.04
- Terminal: Window's Terminal
- OpenCode version: [Please specify]
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.