Skip to content

refactor(core): type directory initialization errors - #52649

Merged
rekram1-node merged 2 commits into
v2from
project-folder-error
Oct 2, 2026
Merged

rekram1-node merged 2 commits into
v2from
project-folder-error

Conversation

@rekram1-node

Copy link
Copy Markdown
Collaborator

Summary

  • Introduce internal tagged errors for missing and access-denied location directories, preserving the directory and original cause.
  • Classify NotFound, PermissionDenied, and macOS Unknown/EPERM during local filesystem initialization; unrelated failures remain defects.
  • Preserve workspace-only placement behavior.

Scope

First scoped change toward #50951. Instance-level propagation, configuration discovery, HTTP 404/403 mapping, and Desktop recovery UI are intentionally deferred. This does not resolve the issue yet.

Validation

  • bun test test/location-filesystem.test.ts from packages/core: 10 passing tests.
  • bun run check: passes.
  • Regression mutation restoring the old defect behavior fails the missing-directory, EACCES, and EPERM assertions.
  • Formatting and git diff --check pass.

@rekram1-node
rekram1-node merged commit 1404566 into v2 Oct 2, 2026
8 checks passed
@rekram1-node
rekram1-node deleted the project-folder-error branch October 2, 2026 03:45
Ichinose-Kazuki pushed a commit to Ichinose-Kazuki/opencode that referenced this pull request Oct 7, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant