Skip to content

In CLI mode (run command) subagents output is not printed #19278

@krzyk

Description

@krzyk

Description

When running opencode with run command it outputs only the main agents text, subagents are not visible at all (neither in logs nor on stdout/stderr).
I run opencode from crontab and I would like to be able to look into what agents/subagents are doing and why - sometimes I see errors how they execute commands, but without seeing their text I can't debug it.

Plugins

none

OpenCode version

1.3.2

Steps to reproduce

  1. opencode run --model github-copilot/gpt-4.1 "Use @explore subagent to list files in current directory (based on name suggest what they do) and return just the list to the main agent"

What I would expect is to get that list at least twice (explore subagent executes ls - I don't see that as output in run command, but I do see it in TUI when I go into subagent), but I see only what main agent writes.

Screenshot and/or share link

No response

Operating System

Ubuntu 22.04

Terminal

st

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingcoreAnything pertaining to core functionality of the application (opencode server stuff)

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions