CodeTracked since May 19, 2026
Handle stop-cancel errors during WebSocket startup to prevent unhandled rejections
Fixes a race in AionUi chat stop flow where a cancel request sent while a remote WebSocket session is still connecting could reject with a backend error and bubble to global unhandled-rejection handling. The PR updates the `handleStop` logic in all five SendBox implementations to catch those cancel errors, log a warning, and rely on existing `finally` cleanup so the UI state is still reset.
handleStopWebSocket connect racecancel request error handlingonunhandledrejection