diff --git a/packages/opencode/src/cli/cmd/tui/routes/session/index.tsx b/packages/opencode/src/cli/cmd/tui/routes/session/index.tsx index 68f6796cd..6062bb07b 100644 --- a/packages/opencode/src/cli/cmd/tui/routes/session/index.tsx +++ b/packages/opencode/src/cli/cmd/tui/routes/session/index.tsx @@ -925,6 +925,7 @@ export function Session() { keybind: "session_parent", category: "Session", hidden: true, + enabled: !!session()?.parentID, onSelect: childSessionHandler((dialog) => { const parentID = session()?.parentID if (parentID) { @@ -942,6 +943,7 @@ export function Session() { keybind: "session_child_cycle", category: "Session", hidden: true, + enabled: !!session()?.parentID, onSelect: childSessionHandler((dialog) => { moveChild(1) dialog.clear() @@ -953,6 +955,7 @@ export function Session() { keybind: "session_child_cycle_reverse", category: "Session", hidden: true, + enabled: !!session()?.parentID, onSelect: childSessionHandler((dialog) => { moveChild(-1) dialog.clear()