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

Commit af2a099

Browse files
committed
fix(core): more defensive project list
1 parent 7e016fd commit af2a099

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

packages/opencode/src/project/project.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -275,7 +275,7 @@ export namespace Project {
275275
const projects = await Promise.all(keys.map((x) => Storage.read<Info>(x)))
276276
return projects.map((project) => ({
277277
...project,
278-
sandboxes: project.sandboxes.filter((x) => existsSync(x)),
278+
sandboxes: project.sandboxes?.filter((x) => existsSync(x)),
279279
}))
280280
}
281281

0 commit comments

Comments
 (0)