feat(tui): go to parent keybind for subagents
https://github.com/user-attachments/assets/346d14a3-5a68-45f2-b1d4-84baf62d5152
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!
/review
lgtm