mirror of
https://github.com/anomalyco/opencode.git
synced 2026-05-02 22:40:22 +00:00
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>
This commit is contained in:
parent
48412f75ac
commit
18850c4f91
1 changed files with 3 additions and 0 deletions
|
|
@ -925,6 +925,7 @@ export function Session() {
|
||||||
keybind: "session_parent",
|
keybind: "session_parent",
|
||||||
category: "Session",
|
category: "Session",
|
||||||
hidden: true,
|
hidden: true,
|
||||||
|
enabled: !!session()?.parentID,
|
||||||
onSelect: childSessionHandler((dialog) => {
|
onSelect: childSessionHandler((dialog) => {
|
||||||
const parentID = session()?.parentID
|
const parentID = session()?.parentID
|
||||||
if (parentID) {
|
if (parentID) {
|
||||||
|
|
@ -942,6 +943,7 @@ export function Session() {
|
||||||
keybind: "session_child_cycle",
|
keybind: "session_child_cycle",
|
||||||
category: "Session",
|
category: "Session",
|
||||||
hidden: true,
|
hidden: true,
|
||||||
|
enabled: !!session()?.parentID,
|
||||||
onSelect: childSessionHandler((dialog) => {
|
onSelect: childSessionHandler((dialog) => {
|
||||||
moveChild(1)
|
moveChild(1)
|
||||||
dialog.clear()
|
dialog.clear()
|
||||||
|
|
@ -953,6 +955,7 @@ export function Session() {
|
||||||
keybind: "session_child_cycle_reverse",
|
keybind: "session_child_cycle_reverse",
|
||||||
category: "Session",
|
category: "Session",
|
||||||
hidden: true,
|
hidden: true,
|
||||||
|
enabled: !!session()?.parentID,
|
||||||
onSelect: childSessionHandler((dialog) => {
|
onSelect: childSessionHandler((dialog) => {
|
||||||
moveChild(-1)
|
moveChild(-1)
|
||||||
dialog.clear()
|
dialog.clear()
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue