fix(app): incorrect workspace on new session

This commit is contained in:
Adam
2026-02-09 12:19:04 -06:00
parent 110f6804fb
commit a84bdd7cd7
3 changed files with 7 additions and 5 deletions

View File

@@ -591,7 +591,7 @@ export default function Page() {
const newSessionWorktree = createMemo(() => {
if (store.newSessionWorktree === "create") return "create"
const project = sync.project
if (project && sync.data.path.directory !== project.worktree) return sync.data.path.directory
if (project && sdk.directory !== project.worktree) return sdk.directory
return "main"
})
@@ -1647,7 +1647,7 @@ export default function Page() {
const target = value === "main" ? sync.project?.worktree : value
if (!target) return
if (target === sync.data.path.directory) return
if (target === sdk.directory) return
layout.projects.open(target)
navigate(`/${base64Encode(target)}/session`)
}}