fix(app): shorten paths in project picker and close sidebar on workspace press

This commit is contained in:
Mohamed Boudra
2026-03-15 20:16:41 +07:00
parent 8ff51eb176
commit ed5bc3091e
2 changed files with 4 additions and 2 deletions
@@ -1361,6 +1361,7 @@ export function SidebarWorkspaceList({
if (!serverId || project.projectKind !== 'git') {
return
}
onWorkspacePress?.()
router.push(
buildHostNewAgentRoute(serverId, {
workingDir: project.iconWorkingDir,
@@ -1368,7 +1369,7 @@ export function SidebarWorkspaceList({
}) as any
)
},
[serverId]
[serverId, onWorkspacePress]
)
const renderProject = useCallback(