You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(chat): catch rethrown save errors in fire-and-forget callers
handleSaveAsNote intentionally rethrows so that the programmatic
autosaveCurrentChat path can detect failures and abort project switches.
However, two UI-driven callers (handleNewChat and the manual Save
button) did not catch the rethrown error, producing unhandled rejections.
Wrap both with .catch(() => {}) since the error is already logged and
noticed inside handleSaveAsNote itself.
0 commit comments