summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorAdam <[email protected]>2026-01-15 13:58:39 -0600
committerAdam <[email protected]>2026-01-15 13:58:39 -0600
commitaf2a09940c5b411c27f72c039a0351a3c19efd02 (patch)
tree91fd9fbdc1075b8f6983f2ab320c11c16c00fda4
parent7e016fdda6199d668c203ca2f281853de1b1f62f (diff)
downloadopencode-af2a09940c5b411c27f72c039a0351a3c19efd02.tar.gz
opencode-af2a09940c5b411c27f72c039a0351a3c19efd02.zip
fix(core): more defensive project list
-rw-r--r--packages/opencode/src/project/project.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/packages/opencode/src/project/project.ts b/packages/opencode/src/project/project.ts
index 4fc724be7..72201636b 100644
--- a/packages/opencode/src/project/project.ts
+++ b/packages/opencode/src/project/project.ts
@@ -275,7 +275,7 @@ export namespace Project {
const projects = await Promise.all(keys.map((x) => Storage.read<Info>(x)))
return projects.map((project) => ({
...project,
- sandboxes: project.sandboxes.filter((x) => existsSync(x)),
+ sandboxes: project.sandboxes?.filter((x) => existsSync(x)),
}))
}