Skip to content

Commit cf9e798

Browse files
committed
tui: close open dialogs when navigating to a new session to prevent UI state from lingering
1 parent c36703b commit cf9e798

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

  • packages/opencode/src/cli/cmd/tui/feature-plugins/system

packages/opencode/src/cli/cmd/tui/feature-plugins/system/session-v2.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -997,6 +997,7 @@ const tui: TuiPlugin = async (api) => {
997997
const sessionID = currentSessionID(api)
998998
if (!sessionID) return
999999
api.route.navigate(route, { sessionID })
1000+
api.ui.dialog.clear()
10001001
},
10011002
},
10021003
])

0 commit comments

Comments
 (0)