Skip to content

OpenCode unable to display valid JSON #16

Description

@alexyaroshuk

Description

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

Plugins

No response

OpenCode version

No response

Steps to reproduce

No response

Screenshot and/or share link

No response

Operating System

No response

Terminal

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions