LibreChat/api/server/controllers/agents/__tests__
Danny Avila ff522e0771
🧭 refactor: Build One Execution Context Where a Run Enters (#18255)
* 🧭 refactor: Build One Execution Context Where a Run Enters

Each consumer of a scheduled run's identity (the host token resolver, the
scheduled MCP authority and the resource-bearer host) read the trigger body
and the restored job for itself, and the remote agent API carried a separate
`unattended` flag through tool loading.

The entry point now builds one frozen ExecutionContext: the chat controller
from the verified schedule trigger, the resume host from the saved job, and
the remote controllers from the run envelope. The initializer and tool
loading receive it as an argument. The schedule consumers project their
identity from it, and `unattended` is derived from it at the tool-loading
boundary. No client or model input sets any field.

* 🧭 refactor: Decide Whether a Run Is Unattended in Its Execution Context
2026-11-18 07:39:34 -05:00
..
askUserQuestion.e2e.spec.js fix: Guard Mongo Cleanup In Controller And Migration Tests (#17989) 2026-11-11 10:30:38 +01:00
callbacks.spec.js 💧 feat: Add Gemini Hydrogen Support (#18159) 2026-11-16 10:26:55 -05:00
client.billing.spec.js 🛒 fix: Correct Agent Admission and Failed-Run Billing (#18157) 2026-11-14 12:20:51 -05:00
client.contextMetadata.spec.js 🧾 fix: Count the Tool Results a Tool-Limit Stop Retains (#15893) 2026-09-13 22:20:25 -04:00
client.eventActorPause.spec.js 🤖 feat: make Event Actor HITL durable (#15305) 2026-08-28 08:05:11 -04:00
client.memory.spec.js
client.retainedAnswers.spec.js 🔦 fix: Skip Unselected Tool Schemas Under Legacy PII (#18158) 2026-11-14 12:20:16 -05:00
client.steerWiring.spec.js 🎒 fix: Bound Agent Attachment Context (#15694) 2026-09-07 08:16:34 -04:00
client.subagentUsage.spec.js 📬 feat: Persist Channel Events and Delivery Receipts (#17595) 2026-11-10 21:03:57 -08:00
client.traceContext.spec.js 🪬 feat: Configure Langfuse Trace User Identity and Metadata (#15667) 2026-09-06 17:30:23 -04:00
client.transactions.spec.js 📬 feat: Persist Channel Events and Delivery Receipts (#17595) 2026-11-10 21:03:57 -08:00
hitlCheckpoint.e2e.spec.js fix: Guard Mongo Cleanup In Controller And Migration Tests (#17989) 2026-11-11 10:30:38 +01:00
jobReplacement.spec.js ⚡ perf: Persist HITL checkpoints only on pause (lazy checkpointer) (#14024) 2026-07-05 08:30:06 -04:00
modelEndHandler.spec.js 💧 feat: Add Gemini Hydrogen Support (#18159) 2026-11-16 10:26:55 -05:00
openai.spec.js 🧭 refactor: Build One Execution Context Where a Run Enters (#18255) 2026-11-18 07:39:34 -05:00
protocol.spec.js 🛫 refactor: Promote Generation Protocol V2 Automatically (#15324) 2026-08-28 17:17:09 -04:00
request.partialDisconnect.spec.js 🧭 refactor: Build One Execution Context Where a Run Enters (#18255) 2026-11-18 07:39:34 -05:00
request.resumeMetadata.spec.js 🧭 refactor: Build One Execution Context Where a Run Enters (#18255) 2026-11-18 07:39:34 -05:00
responses.unit.spec.js 🧭 refactor: Build One Execution Context Where a Run Enters (#18255) 2026-11-18 07:39:34 -05:00
resume.spec.js 🧭 refactor: Build One Execution Context Where a Run Enters (#18255) 2026-11-18 07:39:34 -05:00
steer.spec.js 🛫 refactor: Promote Generation Protocol V2 Automatically (#15324) 2026-08-28 17:17:09 -04:00
toolContext.spec.js 🧮 feat: Surface Retained Tool-Message Context Usage (#15796) 2026-09-11 15:53:29 -04:00
usageEvents.integration.spec.js 🦿 chore: Bump Agents SDK to 4.2.1 (#17664) 2026-10-31 15:17:05 -04:00
usageEvents.live.spec.js 📊 feat: Real-Time Context Window & Token Usage Tracking (#13670) 2026-06-13 19:38:28 -04:00
v1.duplicate-actions.spec.js fix: Guard Mongo Cleanup In Controller And Migration Tests (#17989) 2026-11-11 10:30:38 +01:00
v1.spec.js 🔣 refactor: Replace Mongo Filters With Typed Criteria (#15580) 2026-09-04 11:54:21 -04:00