OpenCode unable to display valid JSON #8789

Open
opened 2026-02-16 18:10:51 -05:00 by yindo · 1 comment
Owner

Originally created by @xiaotian on GitHub (Feb 7, 2026).

Originally assigned to: @rekram1-node on GitHub.

Description

OpenCode TUI seems unable to display any valid JSON, quotes are always stripped out. This is problematic as there are scenarios I just want to copy/paste, instead of having it edit the file directly.

Plugins

No response

OpenCode version

1.1.53

Steps to reproduce

To repro: prompt - "could you show me a sample json with 2 fields first_name and last_name?"

Expected:

{
"first_name": "John",
"last_name": "Doe"
}

Actual:

{
first_name: John,
last_name: Doe
}

Screenshot and/or share link

No response

Operating System

MacOS 15.6.1

Terminal

Ghostty

Originally created by @xiaotian on GitHub (Feb 7, 2026). Originally assigned to: @rekram1-node on GitHub. ### Description OpenCode TUI seems unable to display any valid JSON, quotes are always stripped out. This is problematic as there are scenarios I just want to copy/paste, instead of having it edit the file directly. ### Plugins _No response_ ### OpenCode version 1.1.53 ### Steps to reproduce To repro: prompt - "could you show me a sample json with 2 fields first_name and last_name?" Expected: { "first_name": "John", "last_name": "Doe" } Actual: { first_name: John, last_name: Doe } ### Screenshot and/or share link _No response_ ### Operating System MacOS 15.6.1 ### Terminal Ghostty
yindo added the opentuibug labels 2026-02-16 18:10:51 -05:00
Author
Owner

@github-actions[bot] commented on GitHub (Feb 7, 2026):

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

  • #8222: JSON code blocks strip quotation marks in TUI markdown renderer

Feel free to ignore if none of these address your specific case.

@github-actions[bot] commented on GitHub (Feb 7, 2026): This issue might be a duplicate of existing issues. Please check: - #8222: JSON code blocks strip quotation marks in TUI markdown renderer Feel free to ignore if none of these 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#8789