Skip to content

Conversation

@Brandtweary
Copy link

Summary

  • Fix unhandled promise rejections caused by Storage.read throwing NotFoundError when 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) to Session.getShare() and ShareNext.get() to gracefully handle missing share files
  • Consistent with similar patterns elsewhere in the codebase (e.g. project.ts:95, summary.ts:181)

Storage.read throws NotFoundError on ENOENT, causing unhandled promise
rejections when checking share status for unshared sessions. The TUI
calls these functions during sync, resulting in ~1 error/second.

Add .catch(() => undefined) to gracefully handle missing share files,
consistent with similar patterns elsewhere in the codebase (e.g.
project.ts:95, summary.ts:181).

Co-Authored-By: Hector <[email protected]>
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