mirror of
https://gitea.toothfairyai.com/ToothFairyAI/tf_code.git
synced 2026-04-02 15:13:46 +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:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user