Skip to content

Commit 91244cd

Browse files
WangmerlynChicK00o
authored andcommitted
docs: clarify subagent session navigation keybinds (anomalyco#16455)
1 parent 377f322 commit 91244cd

2 files changed

Lines changed: 12 additions & 7 deletions

File tree

packages/web/src/content/docs/agents.mdx

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -120,11 +120,14 @@ Hidden system agent that creates session summaries. It runs automatically and is
120120
@general help me search for this function
121121
```
122122

123-
3. **Navigation between sessions**: When subagents create their own child sessions, you can navigate between the parent session and all child sessions using:
124-
- **\<Leader>+Right** (or your configured `session_child_cycle` keybind) to cycle forward through parent → child1 → child2 → ... → parent
125-
- **\<Leader>+Left** (or your configured `session_child_cycle_reverse` keybind) to cycle backward through parent ← child1 ← child2 ← ... ← parent
123+
3. **Navigation between sessions**: When subagents create child sessions, use `session_child_first` (default: **\<Leader>+Down**) to enter the first child session from the parent.
126124

127-
This allows you to seamlessly switch between the main conversation and specialized subagent work.
125+
4. Once you are in a child session, use:
126+
- `session_child_cycle` (default: **Right**) to cycle to the next child session
127+
- `session_child_cycle_reverse` (default: **Left**) to cycle to the previous child session
128+
- `session_parent` (default: **Up**) to return to the parent session
129+
130+
This lets you switch between the main conversation and specialized subagent work.
128131

129132
---
130133

packages/web/src/content/docs/keybinds.mdx

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,9 @@ OpenCode has a list of keybinds that you can customize through `tui.json`.
2929
"session_interrupt": "escape",
3030
"session_compact": "<leader>c",
3131
"session_child_first": "<leader>down",
32-
"session_child_cycle": "<leader>right",
33-
"session_child_cycle_reverse": "<leader>left",
34-
"session_parent": "<leader>up",
32+
"session_child_cycle": "right",
33+
"session_child_cycle_reverse": "left",
34+
"session_parent": "up",
3535
"messages_page_up": "pageup,ctrl+alt+b",
3636
"messages_page_down": "pagedown,ctrl+alt+f",
3737
"messages_line_up": "ctrl+alt+y",
@@ -114,6 +114,8 @@ By default, `ctrl+x` is the leader key and most actions require you to first pre
114114

115115
You don't need to use a leader key for your keybinds but we recommend doing so.
116116

117+
Some navigation keybinds intentionally do not use the leader key by default. For subagent sessions, the defaults are `session_child_first` = `\<leader>down`, `session_child_cycle` = `right`, `session_child_cycle_reverse` = `left`, and `session_parent` = `up`.
118+
117119
---
118120

119121
## Disable keybind

0 commit comments

Comments
 (0)