fix(ui-workspace): expand workspace before new session

This commit is contained in:
_Kerman
2026-08-11 19:31:02 +08:00
parent e35513e4dc
commit 16dddc128b
8 changed files with 21 additions and 14 deletions

View File

@@ -428,7 +428,10 @@ function SessionTree({
setWorkspaceExpanded(group.key, !group.expanded)
}}
onCreate={() => {
if (group.workspaceId !== undefined) startSession(group.workspaceId)
if (group.workspaceId !== undefined) {
setWorkspaceExpanded(group.key, true)
startSession(group.workspaceId)
}
}}
drag={workspaceDragProps}
actions={group.workspaceId === undefined