mirror of
https://github.com/danny-avila/LibreChat.git
synced 2026-09-11 17:11:23 +00:00
Code env pointers are deployment-local, but the liveness probe always queried the default Code API. With the staleness repair now live, a ref belonging to a configured stateful route would fail that probe and be cleared, re-uploading a still-valid file to the wrong deployment. Only default-route refs take part in the check and only they can be cleared. Lazy provisioning also wrote a bare codeEnvRef while the eager upload path persists through mergeCodeEnvRef. Both paths now write the same shape, so the legacy pointer and the route-keyed map stay in sync and pointers for other routes survive re-provisioning. Provisioning computation moves into a helper that both return paths call, so a turn carrying no request attachments still queues the agent's persistent context files instead of skipping them at the early return. |
||
|---|---|---|
| .. | ||
| app | ||
| cache | ||
| config | ||
| db | ||
| models | ||
| server | ||
| strategies | ||
| test | ||
| utils | ||
| jest.config.js | ||
| jsconfig.json | ||
| package.json | ||
| typedefs.js | ||