Skip to content

fix(tui): catch unhandled promise rejections in session operations#32178

Open
MethodWhite wants to merge 1 commit into
anomalyco:devfrom
MethodWhite:void-catch
Open

fix(tui): catch unhandled promise rejections in session operations#32178
MethodWhite wants to merge 1 commit into
anomalyco:devfrom
MethodWhite:void-catch

Conversation

@MethodWhite

@MethodWhite MethodWhite commented Jun 13, 2026

Copy link
Copy Markdown

Issue for this PR

Closes #32176

Type of change

  • Bug fix

What does this PR do?

Adds .catch(() => {}) to three void SDK calls in session/index.tsx that were missing error handlers. Bun treats unhandled promise rejections as fatal.

How did you verify your code works?

Reviewed each call site. The SDK calls are fire-and-forget (no caller uses the result), so swallowing the rejection is safe and consistent with similar patterns in the same file.

Screenshots / recordings

Not a UI change.

Checklist

  • I have tested my changes locally
  • I have not included unrelated changes in this PR

Three void SDK calls in the session route fire async requests without
.catch(). Bun terminates the process on unhandled rejections.
@github-actions github-actions Bot added the needs:compliance This means the issue will auto-close after 2 hours. label Jun 13, 2026
@MethodWhite MethodWhite reopened this Jun 13, 2026
@MethodWhite MethodWhite reopened this Jun 13, 2026
@github-actions github-actions Bot removed the needs:compliance This means the issue will auto-close after 2 hours. label Jun 13, 2026
@github-actions

Copy link
Copy Markdown
Contributor

Thanks for updating your PR! It now meets our contributing guidelines. 👍

@MethodWhite MethodWhite reopened this Jun 13, 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.

Unhandled promise rejections in session operations crash the TUI

1 participant