opencode
opencode copied to clipboard
fix: guard storage migration path checks
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.