opencode icon indicating copy to clipboard operation
opencode copied to clipboard

feat(tui): go to parent keybind for subagents

Open rgodha24 opened this issue 1 week ago • 1 comments

https://github.com/user-attachments/assets/346d14a3-5a68-45f2-b1d4-84baf62d5152

rgodha24 avatar Dec 18 '25 21:12 rgodha24

Hey! I was struggling with the same issue, having to cycle through 20+ child sessions to get back to the parent was quite frustrating. I had OpenCode search for existing issues/PRs, and it found two open PRs addressing this:

  • #5762 (this PR) - Clean, minimal approach adding the keybind
  • #4865 - Same keybind plus additional sidebar UI for subagent visualization

I really like the focused approach here! Both PRs implement the same session_parent keybind, but this one keeps the scope minimal (+32/-2 vs +131/-6). The sidebar UI in #4865 is nice, but could be added separately if needed later.

This PR pairs really well with the recently added feature to click on subagent sessions to navigate to them. Having a simple session_child_return_to_parent keybind to jump back completes the workflow perfectly.

Also appreciate that this aligns with the original proposal in:

  • #3291 - ctrl+up for parent navigation

Would love to see either one merged!

zenyr avatar Dec 22 '25 01:12 zenyr

/review

rekram1-node avatar Dec 22 '25 20:12 rekram1-node

lgtm

github-actions[bot] avatar Dec 22 '25 20:12 github-actions[bot]