LibreChat/api/server/controllers/agents
Danny Avila f513665ec5 🩹 fix: Address Usage Review Findings — Cost Timing, Scoped Caches, Finalized Output
- carry the post-snapshot output estimate into the context snapshot at
  finalize so the gauge keeps the last response after live resets
- accumulate per-rate billable units and price the session cost at
  render, so usage events arriving before the token-config load still
  count once it resolves
- pass user-scoped token-config cache keys through loadConfigModels
  fetches and drop the controller's unscoped fallback to prevent serving
  another user's resolved config
- tag emitted usage events with a per-run seq so resume dedupe never
  drops a distinct call with an identical payload
- admit the static tokenConfig override in the custom endpoint schema so
  it survives zod parsing into req.config
2026-06-11 15:36:21 -04:00
..
__tests__ 🧪 test: Live Host-Pipeline Usage Verification (Env-Gated) 2026-06-11 00:44:47 -04:00
callbacks.js 🩹 fix: Address Usage Review Findings — Cost Timing, Scoped Caches, Finalized Output 2026-06-11 15:36:21 -04:00
client.js ✂️ fix: Deduplicate Skill Bodies Across Fresh Primes and History (#13610) 2026-06-09 17:16:24 -04:00
client.test.js 🧠 fix: Bound Memory Agent Input (#13606) 2026-06-09 14:38:21 -04:00
errors.js
filterAuthorizedTools.spec.js 🧠 refactor: Memoize MCP Permission Checks Per Request (#13419) 2026-05-30 18:32:06 -04:00
openai.js 🛡️ feat: Configurable Message PII Filter (#13602) 2026-06-10 09:03:05 -04:00
recordCollectedUsage.spec.js
request.js 🧵 fix: Reject Preliminary Parent Follow-Ups (#13619) 2026-06-09 12:06:51 -04:00
responses.js 🛡️ feat: Configurable Message PII Filter (#13602) 2026-06-10 09:03:05 -04:00
v1.js 🧭 fix: Restore Empty Skill Allowlist Catalog (#13526) 2026-06-05 12:30:48 -04:00
v1.spec.js 🧭 fix: Restore Empty Skill Allowlist Catalog (#13526) 2026-06-05 12:30:48 -04:00