You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
JSON code blocks strip quotation marks in TUI markdown renderer #8222
When the assistant responds with JSON code blocks in the OpenCode TUI, double quotation marks are not rendered/displayed, making the JSON examples appear invalid and confusing for users.
Steps to Reproduce:
Launch OpenCode TUI in bash terminal
Ask the assistant a question about JSON configuration (e.g., "how do I configure opencode.json?")
Observe the JSON code blocks in the response
Expected Behavior:
JSON code blocks should display with proper quotation marks around keys and values:
{
"key": "value"
}
Actual Behavior:
JSON code blocks display without quotation marks:
{
key: value
}
Additional Context:
Quotation marks appear correctly in regular text and bullet lists
The issue only affects code blocks (specifically JSON, but may affect other languages)
This makes it impossible to show valid JSON syntax to users
The assistant's response likely contains the quotes, but the TUI markdown renderer strips them during display
Impact:
High - Makes it difficult to provide accurate JSON configuration examples
This issue might be a duplicate of existing issues. Please check:
Quotes in code getting stripped in model output #5591: Quotes in code getting stripped in model output - This includes evidence from mitmproxy showing the model response contains quotes but OpenCode strips them in the display
Feel free to ignore if none of these address your specific case.
Looking at #5591 it turns out that Toggle code concealment does indeed reveal the quotation marks, but that's not a very obvious solution. Feel free to mark this as a duplicate.
Activity
github-actions commentedon Jan 13, 2026
This issue might be a duplicate of existing issues. Please check:
Feel free to ignore if none of these address your specific case.
jhogstrom commentedon Jan 13, 2026
Looking at #5591 it turns out that
Toggle code concealmentdoes indeed reveal the quotation marks, but that's not a very obvious solution. Feel free to mark this as a duplicate.thdxr commentedon Mar 25, 2026
To stay organized issues are automatically closed after 90 days of no activity. If the issue is still relevant please open a new one.