mirror of
https://github.com/danny-avila/LibreChat.git
synced 2026-09-10 08:31:37 +00:00
Lazy code-env provisioning was gated on a loaded LIBRECHAT_CODE_API_KEY, so JWT-auth deployments (which mint bearer tokens via getCodeApiAuthHeaders and need no legacy key) silently never provisioned attachments. The gate now accepts either auth mode and checkSessionsAlive composes X-API-Key with the minted bearer headers. Separately, pre-categorization added every codeEnvRef file to processedResourceFiles before the provisioning loop ran, so the staleness branch was unreachable and expired sandbox refs were never cleared or re-provisioned. Staleness is now repaired ahead of the processed guard, clearing both the legacy ref and its route entry so getCodeEnvRefs cannot resolve the dead session. |
||
|---|---|---|
| .. | ||
| controllers | ||
| middleware | ||
| routes | ||
| services | ||
| utils | ||
| cleanup.js | ||
| csp.spec.js | ||
| experimental.js | ||
| experimental.spec.js | ||
| index.js | ||
| index.metrics.spec.js | ||
| index.spec.js | ||
| socialLogins.js | ||
| socialLogins.spec.js | ||
| telemetry.js | ||
| telemetry.spec.js | ||