fix(core): filter dead worktrees

pull/8724/head
Adam 2026-01-15 10:43:27 -06:00
parent d71153eae6
commit b0345284f9
No known key found for this signature in database
GPG Key ID: 9CB48779AF150E75
1 changed files with 5 additions and 1 deletions

View File

@ -272,7 +272,11 @@ export namespace Project {
export async function list() {
const keys = await Storage.list(["project"])
return await Promise.all(keys.map((x) => Storage.read<Info>(x)))
const projects = await Promise.all(keys.map((x) => Storage.read<Info>(x)))
return projects.map((project) => ({
...project,
sandboxes: project.sandboxes.filter((x) => existsSync(x)),
}))
}
export const update = fn(