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
* Detects transport-layer failures by HTTP status / content-type, BEFORE tRPC's JSONL parser turns them into
34
34
* engine-specific `SyntaxError`s (which are only string-matchable on V8 - see aix.client.errors.ts). We tag a typed,
35
35
* engine-independent marker (`error.cause.aixTransportCode`), read by [Error Channel 1] aixClassifyStreamingError - see the channel map in aix.client.errors.ts.
36
-
* - 413 (Vercel rejects request bodies over the edge ~4.5MB limit, as `text/plain`, before the function runs)
36
+
* - 413 from whatever sits in front of the function: the hosted Vercel edge (~4.5MB, as `text/plain`), OR a
// user-facing messages reused by the typed transport-marker branch and the legacy string-match fallbacks
18
-
constMSG_REQUEST_EXCEEDED='**Request too large**: Your message or attachments exceed the 4.5MB limit of the Vercel edge network. Tip: use the cleanup button in the right pane to hide messages, remove large attachments or reduce conversation length.';
17
+
// user-facing messages reused by the typed transport-marker branch and the legacy string-match fallbacks.
18
+
// NOTE: this is the PORTABLE stored text (becomes the error fragment's `part.error` - used for plain rendering, edits,
19
+
// exports, logs), so keep it host-neutral. The 413 case is additionally upgraded to the BlockPartError_RequestExceeded
20
+
// component, which OVERRIDES this string in chat and owns the host-aware phrasing (Vercel 4.5MB vs generic self-host).
21
+
constMSG_REQUEST_EXCEEDED='**Request too large**: Your message or attachments exceed the request size limit of the server. Tip: use the cleanup button in the right pane to hide messages, remove large attachments or reduce conversation length.';
19
22
constMSG_RESPONSE_CAPTIVE='**Network issue**: The network returned an HTML page instead of expected data. This can be a Wi-Fi sign-in page, a proxy or browser extension, or a temporary gateway error. Please **refresh and try again**, or check your connection and disable blockers. Additional details may be available in the browser console.';
0 commit comments