opencode
opencode copied to clipboard
fix: handle missing share files in Session.getShare and ShareNext.get
Summary
- Fix unhandled promise rejections caused by
Storage.readthrowingNotFoundErrorwhen checking share status for unshared sessions - The TUI calls these functions during sync, resulting in ~1 error/second in the logs
Changes
- Add
.catch(() => undefined)toSession.getShare()andShareNext.get()to gracefully handle missing share files - Consistent with similar patterns elsewhere in the codebase (e.g.
project.ts:95,summary.ts:181)