Skip to content
This repository was archived by the owner on May 15, 2026. It is now read-only.

Commit b034528

Browse files
committed
fix(core): filter dead worktrees
1 parent d71153e commit b034528

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

packages/opencode/src/project/project.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -272,7 +272,11 @@ export namespace Project {
272272

273273
export async function list() {
274274
const keys = await Storage.list(["project"])
275-
return await Promise.all(keys.map((x) => Storage.read<Info>(x)))
275+
const projects = await Promise.all(keys.map((x) => Storage.read<Info>(x)))
276+
return projects.map((project) => ({
277+
...project,
278+
sandboxes: project.sandboxes.filter((x) => existsSync(x)),
279+
}))
276280
}
277281

278282
export const update = fn(

0 commit comments

Comments
 (0)