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: emit chat-error for pre-stream API failures
When a chat message fails before streaming starts (e.g., invalid model,
missing API key), emit a 'chat-error' event so the error is visible in
the chat UI, not just as an easily-missed toast.
- Add ChatErrorMessage schema, type, and type guard
- Add emitChatError method in agentSession for pre-stream failures
- Handle chat-error in WorkspaceStore and StreamingMessageAggregator
- Add ChatErrorMessage UI component (displays 'Error' vs 'Stream Error')
- chat-error is never auto-retryable (requires user action to fix)
- Update retry eligibility to show retry UI for chat-error
Distinguishes from stream-error which occurs during AI SDK streaming and
may be transient/auto-retryable.
_Generated with `mux`_
0 commit comments