fix(opencode): disable session navigation commands when no parent session (#15762)

Co-authored-by: Test User <test@test.com>
Co-authored-by: Shoubhit Dash <shoubhit2005@gmail.com>
pull/15655/head^2
Jérôme Benoit 2026-03-03 11:30:25 +01:00 committed by GitHub
parent 48412f75ac
commit 18850c4f91
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 3 additions and 0 deletions

View File

@ -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()