fix(core): always start worktrees as detached (#26931)

This commit is contained in:
James Long 2026-05-11 16:22:25 -04:00 committed by GitHub
commit 9067218b74
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
7 changed files with 101 additions and 47 deletions

View file

@ -1934,7 +1934,7 @@ export default function Layout(props: ParentProps) {
if (!created?.directory) return
setWorkspaceName(created.directory, created.branch, project.id, created.branch)
setWorkspaceName(created.directory, created.branch ?? getFilename(created.directory), project.id, created.branch)
const local = project.worktree
const key = pathKey(created.directory)