`--format json` behaves inconsistently · Issue #34266 · anomalyco/opencode · GitHub
Skip to content

--format json behaves inconsistently #34266

Description

@bilogic

Description

I'm able to save --format json's output to a file, but not --format default

Plugins

No response

OpenCode version

1.17.8

Steps to reproduce

  1. opencode run "my prompt" --format json > session.json save output to session.json
  2. opencode run "my prompt" --format default > session.md fails to save anything to session.md

Screenshot and/or share link

No response

Operating System

Ubuntu 22.04

Terminal

bash

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions