-
Notifications
You must be signed in to change notification settings - Fork 14.6k
In CLI mode (run command) subagents output is not printed #19278
Copy link
Copy link
Open
Labels
bugSomething isn't workingSomething isn't workingcoreAnything pertaining to core functionality of the application (opencode server stuff)Anything pertaining to core functionality of the application (opencode server stuff)
Description
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
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
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workingcoreAnything pertaining to core functionality of the application (opencode server stuff)Anything pertaining to core functionality of the application (opencode server stuff)