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
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
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
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
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
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
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