[PR #7051] fix: guard storage migration path checks #12228

Open
opened 2026-02-16 18:17:09 -05:00 by yindo · 0 comments
Owner

Original Pull Request: https://github.com/anomalyco/opencode/pull/7051

State: open
Merged: No


Summary

  • replace use of non-existent fs.promises.exists with an async pathExists helper
  • prevent storage migrations from throwing at startup when project/worktree paths are missing
  • keep migration flow intact for session/project data

Notes

  • This is a defensive guard; no current breakage observed, but it prevents runtime errors if the migration hits missing paths.
**Original Pull Request:** https://github.com/anomalyco/opencode/pull/7051 **State:** open **Merged:** No --- ## Summary - replace use of non-existent fs.promises.exists with an async pathExists helper - prevent storage migrations from throwing at startup when project/worktree paths are missing - keep migration flow intact for session/project data ## Notes - This is a defensive guard; no current breakage observed, but it prevents runtime errors if the migration hits missing paths.
yindo added the pull-request label 2026-02-16 18:17:09 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#12228