LibreChat/api/server/controllers/agents
Danny Avila acdeeef2d7 fix: Codex round 10 — preserve failed-outcome jobs across error/abort, cleanup, cadence
- cadence.ts: computeNextRunAt catches internally (throw -> null) so a malformed
  stored timezone disables the schedule (invalid_schedule) instead of throwing out
  of a tick every lease expiry.
- GenerationJobManager: completeJob's error branch and abortJob now honor
  preserveForReconcile (retain the terminal job WITHOUT completedAt).
- request.js: gate both the generation-error and init-error completeJob on the
  scheduled outcome write; preserve the job for reconcile when it failed.
- routes/agents/index.js: record the aborted scheduled outcome BEFORE abortJob,
  and preserve the aborted job when that write failed.
- engine.ts: reconcile deletes the retained job after finalizing from a
  complete/error/aborted status — the cleanup path for preserveForReconcile jobs
  (no completedAt) so they don't accumulate to the LRU bound.
- clearReconciledJob dep added to ScheduleEngineDeps + wired in index.js.
2026-07-21 23:32:19 -04:00
..
__tests__ fix: Codex round 10 — preserve failed-outcome jobs across error/abort, cleanup, cadence 2026-07-21 23:32:19 -04:00
callbacks.js 🙊 refactor: Clarify Ask Question Schema Errors and Retry Guidance (#14279) 2026-07-15 11:06:29 -04:00
client.js fix: address deep review — indexes, redis metadata, capacity, crash-retry, cascade (14 findings) 2026-07-21 20:13:15 -04:00
client.test.js 🪝 feat: Human-in-the-Loop Runtime - Tool Approval + Ask-User-Question (Slice B) (#13942) 2026-06-29 16:56:41 -04:00
errors.js 📦 refactor: Consolidate DB models, encapsulating Mongoose usage in data-schemas (#11830) 2026-03-21 14:28:53 -04:00
filterAuthorizedTools.spec.js 🧠 feat: Add Memory as an Agent Capability with Inline Tools and Ephemeral Badge (#13869) 2026-06-24 17:14:13 -04:00
openai.js 🧵 feat: Background Tool Calls for Agents & Model Specs (#14197) 2026-07-13 12:51:36 -04:00
recordCollectedUsage.spec.js 🪢 chore: Consolidate Pricing and Tx Imports After tx.js Module Removal (#12086) 2026-03-21 14:28:53 -04:00
request.js fix: Codex round 10 — preserve failed-outcome jobs across error/abort, cleanup, cadence 2026-07-21 23:32:19 -04:00
responses.js 🧵 feat: Background Tool Calls for Agents & Model Specs (#14197) 2026-07-13 12:51:36 -04:00
resume.js fix: Codex round 9 — timezone, schedule-metadata leak, create-authz, resume preserve 2026-07-21 22:42:50 -04:00
steer.js 🧭 feat: Mid-Run Steering and Queued Messages for Agent Runs (#14220) 2026-07-14 10:11:10 -04:00
v1.js 🧊 fix: Include Conversation Starters in Agent View and List Responses (#14142) 2026-07-08 12:54:54 -04:00
v1.spec.js 🧊 fix: Include Conversation Starters in Agent View and List Responses (#14142) 2026-07-08 12:54:54 -04:00