From 4e0c58f34750e6e090e1e7271b188028af941877 Mon Sep 17 00:00:00 2001 From: joshavant <830519+joshavant@users.noreply.github.com> Date: Wed, 12 Aug 2026 04:18:39 -0500 Subject: [PATCH] fix(agents): keep dispatch runtime projection narrow --- src/agents/prepared-reply-dispatch-runtime.ts | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/agents/prepared-reply-dispatch-runtime.ts b/src/agents/prepared-reply-dispatch-runtime.ts index 9240d50c540b..e73a6e6b428d 100644 --- a/src/agents/prepared-reply-dispatch-runtime.ts +++ b/src/agents/prepared-reply-dispatch-runtime.ts @@ -24,7 +24,14 @@ function createReplyDispatchRuntime( `prepared inbound plugin registry was not published for ${snapshot.agentDir}`, ); } - return Object.freeze({ ...owner, inboundPluginRegistry }); + return Object.freeze({ + agentId: owner.agentId, + agentDir: owner.agentDir, + workspaceDir: owner.workspaceDir, + config: owner.config, + modelCatalog: owner.modelCatalog, + inboundPluginRegistry, + }); } function buildReplyDispatchPublication(