# Bug Report: Chat message truncation when using < symbol (less than) #26702
Copy link
Copy link
Closed as duplicate
Closed as duplicate
Copy link
Description
Description
Description
When sending chat messages directly (not via tool output), the < (less than symbol) causes message truncation. The message is cut off at the point where the symbol appears.
This only affects chat messages - tool output (echo, file content, etc.) works fine with the character.
Note: The greater than symbol (>) does not have this issue.
Steps to reproduce
- Send a chat message containing the < symbol
- Message gets truncated at the symbol
Example that gets truncated:
MP is < 10
Expected: Full message displayed
Actual: Message cuts off
Workaround
Use alternative character:
- < (U+2039 single left angle quote) instead of <
Or simply avoid using the < symbol in chat messages.
Environment
- Platform: Windows
- Terminal: Windows Terminal
- OpenCode version: 1.14.46
Additional notes
- Works fine in tool output (bash echo, python print, etc.)
- Works fine in Thinking/Reasoning phase
- Only affects direct chat message output
- Greater than symbol works fine
- No obvious security reason for this difference
- Appears to be a parsing or encoding bug specific to chat message output layer
Plugins
No response
OpenCode version
No response
Steps to reproduce
No response
Screenshot and/or share link
Operating System
Windows 11
Terminal
Windows Terminal
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels
Activity
github-actions commentedon May 10, 2026
This issue might be a duplicate of existing issues. Please check:
<(and<=) operators causing AI responses to get cut off/truncated in chat output