From 6a5ff83b249ab6a1fc6c29a3d42ded5831ad8e03 Mon Sep 17 00:00:00 2001 From: yongqiang li Date: Tue, 14 Apr 2026 16:00:40 +0800 Subject: [PATCH] fix(build): include subagent-registry.runtime.js in dist output (#66205) * fix: ensure subagent-registry.runtime.js is included in dist output * fix(build): ship subagent registry runtime * Update CHANGELOG.md --------- Co-authored-by: Vincent Koc --- CHANGELOG.md | 1 + src/infra/tsdown-config.test.ts | 1 + tsdown.config.ts | 1 + 3 files changed, 3 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 4470724fefd..51e56b3a63f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -52,6 +52,7 @@ Docs: https://docs.openclaw.ai - Agents/tools: only mark streamed unknown-tool retries as counted when a streamed message actually classifies an unavailable tool, and keep incomplete streamed tool names from resetting the retry streak before the final assistant message arrives. (#66145) Thanks @dutifulbob. - Memory/active-memory: move recalled memory onto the hidden untrusted prompt-prefix path instead of system prompt injection, label the visible Active Memory status line fields, and include the resolved recall provider/model in gateway debug logs so trace/debug output matches what the model actually saw. (#66144) Thanks @Takhoffman. - Memory/QMD: stop treating legacy lowercase `memory.md` as a second default root collection, so QMD recall no longer searches phantom `memory-alt-*` collections and builtin/QMD root-memory fallback stays aligned. (#66141) Thanks @mbelinky. +- Agents/subagents: ship `dist/agents/subagent-registry.runtime.js` in npm builds so `runtime: "subagent"` runs stop stalling in `queued` after the registry import fails. (#66189) Thanks @yqli2420 and @vincentkoc. - Agents/OpenAI: map `minimal` thinking to OpenAI's supported `low` reasoning effort for GPT-5.4 requests, so embedded runs stop failing request validation. Thanks @steipete. - Voice-call/media-stream: resolve the source IP from trusted forwarding headers for per-IP pending-connection limits when `webhookSecurity.trustForwardingHeaders` and `trustedProxyIPs` are configured, and reserve `maxConnections` capacity for in-flight WebSocket upgrades so concurrent handshakes can no longer momentarily exceed the operator-set cap. (#66027) Thanks @eleqtrizit. - Feishu/allowlist: canonicalize allowlist entries by explicit `user`/`chat` kind, strip repeated `feishu:`/`lark:` provider prefixes, and stop folding opaque Feishu IDs to lowercase, so allowlist matching no longer crosses user/chat namespaces or widens to case-insensitive ID matches the operator did not intend. (#66021) Thanks @eleqtrizit. diff --git a/src/infra/tsdown-config.test.ts b/src/infra/tsdown-config.test.ts index 3a843ed7f82..53dca6bab3b 100644 --- a/src/infra/tsdown-config.test.ts +++ b/src/infra/tsdown-config.test.ts @@ -69,6 +69,7 @@ describe("tsdown config", () => { "agents/auth-profiles.runtime", "agents/model-catalog.runtime", "agents/models-config.runtime", + "agents/subagent-registry.runtime", "agents/pi-model-discovery-runtime", "index", "commands/status.summary.runtime", diff --git a/tsdown.config.ts b/tsdown.config.ts index 382bbe3231b..81165587d85 100644 --- a/tsdown.config.ts +++ b/tsdown.config.ts @@ -146,6 +146,7 @@ function buildCoreDistEntries(): Record { "agents/auth-profiles.runtime": "src/agents/auth-profiles.runtime.ts", "agents/model-catalog.runtime": "src/agents/model-catalog.runtime.ts", "agents/models-config.runtime": "src/agents/models-config.runtime.ts", + "agents/subagent-registry.runtime": "src/agents/subagent-registry.runtime.ts", "agents/pi-model-discovery-runtime": "src/agents/pi-model-discovery-runtime.ts", "commands/status.summary.runtime": "src/commands/status.summary.runtime.ts", "infra/boundary-file-read": "src/infra/boundary-file-read.ts",