fix(ui): surface model retry status (NAN-34) (#5504)
This commit is contained in:
1 parent
0b1fa0c3e4
commit
b581a496a6
52 files changed
+1697
-55
No files matched your search
@@ -79,9 +79,9 @@ type RunStatusHandler = (chatId: string, startedAt: number | null) => void;
|
||||
|
||||
/** Structured errors surfaced to the UI.
|
||||
*
|
||||
* Most entries are transport-level or protocol-level faults. Workspace scope
|
||||
* rejections are server application errors promoted here because they affect
|
||||
* controls outside the message stream and must be visible immediately.
|
||||
* Most entries are transport-level or protocol-level faults. Runtime and
|
||||
* workspace failures are promoted here when they must remain visible outside
|
||||
* the message stream.
|
||||
*/
|
||||
export type StreamError =
|
||||
/** Server rejected the inbound frame as too large (WS close code 1009).
|
||||
@@ -100,6 +100,13 @@ export type StreamError =
|
||||
reason?: string;
|
||||
chatId: string;
|
||||
turnId: string;
|
||||
}
|
||||
| {
|
||||
kind: "model_request_failed";
|
||||
chatId: string;
|
||||
turnId?: string;
|
||||
errorKind?: string;
|
||||
attempts?: number;
|
||||
};
|
||||
|
||||
type ErrorHandler = (error: StreamError) => void;
|
||||
|
||||
Reference in new issue
Block a user