opencode icon indicating copy to clipboard operation
opencode copied to clipboard

Subagent Switching - Buggy

Open Dapicom opened this issue 1 month ago • 7 comments

Description

when using Ctrl-x right or left the switching is very slow and lagging. it is extremaly hard to get back to the main agent when a series of subagents are running

OpenCode version

1.0.110

Steps to reproduce

No response

Screenshot and/or share link

No response

Operating System

No response

Terminal

No response

Dapicom avatar Nov 25 '25 09:11 Dapicom

This issue might be a duplicate of existing issues. Please check:

  • #4180: ctrl-left/right doesn't navigate between subagents since 1.0 TUI - reports that left-right events are not being captured correctly for subagent navigation
  • #4550: V1.0.80 - Opencode automatically switches windows to subagents - reports unwanted automatic switching and lag when switching between windows
  • #4292: [feedback] make left / right navigation for subagents more clear - related to the complexity of subagent navigation
  • #4422: Primary agent responds in subagent view - reports issues with subagent view switching and interaction

Feel free to ignore if none of these address your specific case.

github-actions[bot] avatar Nov 25 '25 09:11 github-actions[bot]

+1 I'm currently using Ghostty with an M4 Pro. After about 3 or 4 sub-agent tasks, it becomes slow or buggy when I switch between them

anthonyespirat avatar Nov 25 '25 13:11 anthonyespirat

+1 I'm currently using Ghostty with an M4 Pro. After about 3 or 4 sub-agent tasks, it becomes slow or buggy when I switch between them

Somewhat interesting - I too am on a M4 pro with Ghostty. I just tested spawning 6 sub agents to do web search and web fetching. The sub agents have between 50-90k tokens used and cycling through sub-agents while they were working and/or once they finished working is pretty much instantaneous

atkr avatar Nov 25 '25 14:11 atkr

for me it is consitent behavior on Intel Mac and Ubunto Linux VM

Dapicom avatar Nov 26 '25 03:11 Dapicom

This PR would improve your sub-agents navigation experience since you can click on the Sidebar and navigate to the correct sub-agent https://github.com/sst/opencode/pull/4865

franlol avatar Nov 29 '25 10:11 franlol

This is killing me, and I don't know how to close subagents :(

Otherwise, OpenCode has been a substantial improvement on CC.

auroraflux avatar Nov 29 '25 11:11 auroraflux

I came to this issue exactly for this, how can I close I subagent? I use a subagent as reviewer a lot and they pile up.. it would be nice to even have an option to autoclose when done, but I'm happy if I can just manually close just that subagent..

robertocarvajal avatar Dec 09 '25 15:12 robertocarvajal