-
Notifications
You must be signed in to change notification settings - Fork 3.6k
feat(tui): go to parent keybind for subagents #5762
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(tui): go to parent keybind for subagents #5762
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
This PR adds a "go to parent session" keybind feature for navigating from subagent sessions back to their parent session. The default keybind is set to <leader>up, complementing the existing left/right navigation for cycling through child sessions.
- Adds
session_parentkeybind configuration with default value<leader>up - Implements navigation command to jump to parent session when invoked from a subagent
- Displays the new keybind hint in the session header for subagent sessions
Reviewed changes
Copilot reviewed 4 out of 4 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
packages/sdk/js/src/v2/gen/types.gen.ts |
Adds TypeScript type definition for the new session_parent keybind configuration option |
packages/opencode/src/config/config.ts |
Defines the config schema for session_parent keybind with default value <leader>up |
packages/opencode/src/cli/cmd/tui/routes/session/index.tsx |
Implements the command handler that navigates to the parent session when parentID exists |
packages/opencode/src/cli/cmd/tui/routes/session/header.tsx |
Adds UI element displaying the parent session keybind hint in subagent session headers |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
|
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:
I really like the focused approach here! Both PRs implement the same This PR pairs really well with the recently added feature to click on subagent sessions to navigate to them. Having a simple Also appreciate that this aligns with the original proposal in:
Would love to see either one merged! |
|
/review |
|
lgtm |
Screen.Recording.2025-12-18.at.2.05.59.PM.mov