LibreChat/packages/data-provider
Marco Beretta df01dba657
🔌 refactor: Drive the Resumable Stream Through the ChatTransport (#16378)
* refactor: drive the resumable stream through the ChatTransport

Add reconnectToStream to ChatTransport and the sse.js transport: a GET
attach with request headers, a token refresh on every 401, a cancel the
caller did not issue reported as a dropped connection (status 0), and a
closed flag for the foreground check. useResumableSSE now consumes
normalized ChatEvents instead of opening sse.js and parsing frames
itself; resume, steer and queue bookkeeping are unchanged.

* fix: bound the resume 401 refresh and keep plain-text server errors

Refresh the token once per attachment and report a second 401, so the
hook's reconnect budget bounds a stream that keeps answering 401. A
server-written error event that is not JSON keeps its raw text instead
of reading as a dropped connection.
2026-09-25 21:54:09 +02:00
..
react-query 📦 chore: bump axios to v1.20.0, @librechat/agents to v3.7.4 (#15285) 2026-08-27 08:56:29 -04:00
specs 🌞 feat: Add GPT-6 Sol and Luna Support (#16221) 2026-09-22 22:37:08 -04:00
src 🔌 refactor: Drive the Resumable Stream Through the ChatTransport (#16378) 2026-09-25 21:54:09 +02:00
.gitignore
babel.config.js
check_updates.sh
jest.config.js 🧵 ci: Keep a Floor of Two Jest Workers in CI (#15819) 2026-09-14 00:32:20 -04:00
package.json 🚀 v0.8.8-rc4 (#16147) 2026-09-22 23:30:28 -04:00
server-rollup.config.js
tsconfig.build.json
tsconfig.json
tsconfig.spec.json
tsdown.config.mjs