1.0.0 json output in the message doesn't have quotes #2412

Open
opened 2026-02-16 17:35:30 -05:00 by yindo · 3 comments
Owner

Originally created by @luisrudge on GitHub (Oct 31, 2025).

Originally assigned to: @thdxr on GitHub.

Description

you can see the actual message has quotes, but opentui doesn't show it

https://opencode.ai/s/ftXAkN81

Image

OpenCode version

1.0.0

Steps to reproduce

No response

Screenshot and/or share link

Image

Operating System

macos tahoe

Terminal

ghostty

Originally created by @luisrudge on GitHub (Oct 31, 2025). Originally assigned to: @thdxr on GitHub. ### Description you can see the actual message has quotes, but opentui doesn't show it https://opencode.ai/s/ftXAkN81 <img width="475" height="806" alt="Image" src="https://github.com/user-attachments/assets/7c1f48f0-8e95-4412-a86e-71d8a29c73be" /> ### OpenCode version 1.0.0 ### Steps to reproduce _No response_ ### Screenshot and/or share link <img width="475" height="806" alt="Image" src="https://github.com/user-attachments/assets/c5b1c105-546c-468c-8958-36f3c4521d61" /> ### Operating System macos tahoe ### Terminal ghostty
yindo added the opentuibug labels 2026-02-16 17:35:30 -05:00
Author
Owner

@kommander commented on GitHub (Oct 31, 2025):

Ah yeah, that is concealed like other output. Can change the default for json. Meanwhile you can do ctrl+p and then toggle conceal.

@kommander commented on GitHub (Oct 31, 2025): Ah yeah, that is concealed like other output. Can change the default for json. Meanwhile you can do `ctrl+p` and then `toggle conceal`.
Author
Owner

@luisrudge commented on GitHub (Oct 31, 2025):

thank you, that worked

@luisrudge commented on GitHub (Oct 31, 2025): thank you, that worked
Author
Owner

@tgrushka commented on GitHub (Jan 29, 2026):

Why does code concealment mean I have to either:

  1. have ALL the markdown code visible, or
  2. have it only hide quotes in code blocks?
    That does not make sense!

So I either see quotes with all the messy markdown source:

` ``json
{
  "$schema": "https://opencode.ai/config.json",
  "mcp": {
    "rust-docs": {
      "type": "local",
      "command": ["rust-docs-mcp"],
      "enabled": true
    }
  }
}
` ``
**Schema requirements** (from official OpenCode config.json):
- `"mcp"`: object with server names as keys
- For local servers:
  - `"type"`: must be `"local"`
  - `"command"`: array of strings
  - `"enabled"`: boolean (optional)
  - `"environment"`: object (optional)

OR no quotes at all, which is totally incorrect. I kept correcting the LLM to use quotes, and it turned out it was using them, and opencode is totally to blame:

{
  $schema: https://opencode.ai/config.json,
  mcp: {
    rust-docs: {
      type: local,
      command: [rust-docs-mcp],
      enabled: true
    }
  }
}
 Schema requirements (from official OpenCode config.json):
 - "mcp": object with server names as keys
 - For local servers:
   - "type": must be "local"
   - "command": array of strings
   - "enabled": boolean (optional)
   - "environment": object (optional)
@tgrushka commented on GitHub (Jan 29, 2026): Why does code concealment mean I have to either: 1. have ALL the markdown code visible, or 2. have it only hide quotes in code blocks? That does not make sense! So I either see quotes with all the messy markdown source: ```markdown ` ``json { "$schema": "https://opencode.ai/config.json", "mcp": { "rust-docs": { "type": "local", "command": ["rust-docs-mcp"], "enabled": true } } } ` `` **Schema requirements** (from official OpenCode config.json): - `"mcp"`: object with server names as keys - For local servers: - `"type"`: must be `"local"` - `"command"`: array of strings - `"enabled"`: boolean (optional) - `"environment"`: object (optional) ``` OR no quotes at all, which is totally incorrect. I kept correcting the LLM to use quotes, and it turned out it was using them, and opencode is totally to blame: ``` { $schema: https://opencode.ai/config.json, mcp: { rust-docs: { type: local, command: [rust-docs-mcp], enabled: true } } } Schema requirements (from official OpenCode config.json): - "mcp": object with server names as keys - For local servers: - "type": must be "local" - "command": array of strings - "enabled": boolean (optional) - "environment": object (optional) ```
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#2412