mirror of
https://github.com/danny-avila/LibreChat.git
synced 2026-11-01 19:46:50 +00:00
* 🛑 fix: Confirm Scheduled Stops and Separate Terminal Scheduler Failure from Startup Fixes #15042, fixes #15043. `resume.js` inferred a confirmed stop from the ABSENCE of `failureReason`, but `abortJob` had four `success: false` paths that returned no reason at all. Those settled the occurrence as `interrupted` and pruned the checkpoint on aborts that never landed — including one where a REPLACEMENT generation owned the conversation, which pruned the successor's checkpoint. Every `success: false` return now names itself (`job_not_found`, `already_settled` added alongside the existing `generation_replaced` / `job_still_active`), and a single canonical `isStopConfirmed` predicate decides whether durable state may be settled. `already_settled` confirms a stop — `awaitProviderDrain` has proven the provider segment can no longer persist — so a permanently terminal generation is not answered with a retry loop. Separately, a schedule engine that failed to arm advertised its permanent outage as a transient 503 with `Retry-After`, so a client obeying it would poll forever. Readiness is now tri-state (`starting` / `armed` / `unavailable`): the retry contract applies only while arming is genuinely pending, and a failed arm returns a terminal `SCHEDULES_UNAVAILABLE` with no `Retry-After` and an error-level log. * 🏷️ fix: Declare Schedule Write Gate Return Types `--isolatedDeclarations` requires an explicit return type on the exported factory and on the middleware it returns (TS9007). Adds a named `ScheduleWriteGate` type matching the existing `ShareMiddleware` shape. |
||
|---|---|---|
| .. | ||
| askUserQuestion.e2e.spec.js | ||
| callbacks.spec.js | ||
| client.contextMetadata.spec.js | ||
| client.memory.spec.js | ||
| client.steerWiring.spec.js | ||
| client.subagentUsage.spec.js | ||
| client.transactions.spec.js | ||
| hitlCheckpoint.e2e.spec.js | ||
| jobReplacement.spec.js | ||
| modelEndHandler.spec.js | ||
| openai.spec.js | ||
| protocol.spec.js | ||
| request.partialDisconnect.spec.js | ||
| request.resumeMetadata.spec.js | ||
| responses.unit.spec.js | ||
| resume.spec.js | ||
| steer.spec.js | ||
| usageEvents.integration.spec.js | ||
| usageEvents.live.spec.js | ||
| v1.duplicate-actions.spec.js | ||
| v1.spec.js | ||