LibreChat/api/server/services/Files/Code
Danny Avila c0affede00
🎟️ fix: Preserve BYOM Tool Calls Through Capacity Windows (#16060)
* ⏳ fix: Keep BYOM tools queued across capacity windows

* ⏳ fix: Configure the admission budget and refresh queued credentials

Addresses the Codex review on #16060:

- Add `limits.maxQueueWaitMs` to the code environment config schema so a
  deployment can shorten or disable the five-minute admission budget from
  `librechat.yaml`; omission keeps the merged behavior, `0` surfaces the
  first capacity expiry to the model. Resolved through
  `resolveAttachedWorkspaceQueueWaitMs` and passed by ToolService, matching
  how `maxCommandTimeoutMs` already flows.
- Accept an auth-header supplier in `executeWorkspaceTool` and mint it per
  admission attempt, so a call queued past the Code API token TTL presents
  fresh credentials instead of failing permanently with 401. The attached
  Bash tool and the workspace file operations now pass suppliers.
- Recheck the deadline after a clamped wait and throw the saved rejection
  rather than opening an admission window that could still be admitted
  once the budget is spent.

* fix: Complete workspace admission wiring and caller regressions

* fix: Share protected edit retry budgets and schema limits

---------

Co-authored-by: Lia <lia@librechat.ai>
2026-09-19 09:03:06 -04:00
..
__tests__ 🦘 feat: Share Run-Scoped Files With Subagents (#15848) 2026-09-12 20:14:22 -04:00
crud.js 🪢 fix: Keep One Code File per Sandbox Destination (#15817) 2026-09-10 15:13:38 -04:00
crud.spec.js 🪢 fix: Keep One Code File per Sandbox Destination (#15817) 2026-09-10 15:13:38 -04:00
index.js 🚧 chore: merge latest dev build (#4288) 2024-09-30 17:17:57 -04:00
preflight.js 🔇 fix: Stop logging an absent create_file target as an error (#15591) 2026-09-04 09:21:24 -04:00
preflight.spec.js 🔇 fix: Stop logging an absent create_file target as an error (#15591) 2026-09-04 09:21:24 -04:00
process.js 🎟️ fix: Preserve BYOM Tool Calls Through Capacity Windows (#16060) 2026-09-19 09:03:06 -04:00
process.spec.js 🎟️ fix: Preserve BYOM Tool Calls Through Capacity Windows (#16060) 2026-09-19 09:03:06 -04:00