Skip to content

OpenCode unable to display valid JSON #12619

Closed

Description

@xiaotian

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

Activity

  1. added
    opentuiThis relates to changes in v1.0, now that opencode uses opentui
    on Feb 7, 2026
  2. github-actions commented on Feb 7, 2026

    @github-actions
    Contributor

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

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

  3. github-actions commented on Apr 9, 2026

    @github-actions
    Contributor

    To stay organized issues are automatically closed after 90 days of no activity. If the issue is still relevant please open a new one.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingopentuiThis relates to changes in v1.0, now that opencode uses opentui

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions