Skip to content

opencode debug skill returns before output is complete #26399

Closed as not planned
Closed as not planned

Description

@markjaquith

Description

opencode debug skill | jq '.[].name' is failing for me with invalid JSON errors. The JSON is being truncated.

This specifically happens when there are enough skills that the output gets buffered.

Plugins

No response

OpenCode version

1.14.41

Steps to reproduce

  1. Add a bunch of skills
  2. opencode debug skill | jq empty
  3. See jq complain about invalid JSON

Screenshot and/or share link

No response

Operating System

macOS 26.4

Terminal

Ghostty

Activity

  1. github-actions commented on May 8, 2026

    @github-actions
    Contributor

    This issue might be related to previously closed issues with the same root cause (stdout buffering when piped):

    Both were about the same underlying problem: the process exits before stdout is fully flushed when piping. The fix discussed in #2803 may apply here as well. It may be worth checking whether those fixes covered the debug subcommand too.

  2. github-actions commented on Jul 9, 2026

    @github-actions
    Contributor

    To stay organized issues are automatically closed after 60 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

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions