From aa0dc118f1e8b328385fb2c63f497e6a38cbc1b6 Mon Sep 17 00:00:00 2001 From: Ayaan Zaidi Date: Tue, 14 Apr 2026 13:52:24 +0530 Subject: [PATCH] fix: preserve subagent registry runtime import path across source and dist (#66420) * fix(build): correct subagent registry runtime import path * fix: correct subagent registry runtime import path (#66420) * fix: preserve subagent registry runtime import path across source and dist (#66420) --- CHANGELOG.md | 1 + src/infra/tsdown-config.test.ts | 2 +- tsdown.config.ts | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index d13e9dc7076..7d365739bb7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -19,6 +19,7 @@ Docs: https://docs.openclaw.ai - Agents/local models: clarify low-context preflight hints for self-hosted models, point config-backed caps at the relevant OpenClaw setting, and stop suggesting larger models when `agents.defaults.contextTokens` is the real limit. (#66236) Thanks @ImLukeF. - Browser/SSRF: restore hostname navigation under the default browser SSRF policy while keeping explicit strict mode reachable from config, and keep managed loopback CDP `/json/new` fallback requests on the local CDP control policy so browser follow-up fixes stop regressing normal navigation or self-blocking local CDP control. (#66386) Thanks @obviyus. - Browser/SSRF: preserve explicit strict browser navigation mode for legacy `browser.ssrfPolicy.allowPrivateNetwork: false` configs by normalizing the legacy alias to the canonical strict marker instead of silently widening those installs to the default non-strict hostname-navigation path. +- Agents/subagents: emit the subagent registry lazy-runtime stub on the stable dist path that both source and bundled runtime imports resolve, so the follow-up dist fix no longer still fails with `ERR_MODULE_NOT_FOUND` at runtime. (#66420) Thanks @obviyus. ## 2026.4.14-beta.1 diff --git a/src/infra/tsdown-config.test.ts b/src/infra/tsdown-config.test.ts index 53dca6bab3b..6f3e88fe477 100644 --- a/src/infra/tsdown-config.test.ts +++ b/src/infra/tsdown-config.test.ts @@ -69,7 +69,7 @@ describe("tsdown config", () => { "agents/auth-profiles.runtime", "agents/model-catalog.runtime", "agents/models-config.runtime", - "agents/subagent-registry.runtime", + "subagent-registry.runtime", "agents/pi-model-discovery-runtime", "index", "commands/status.summary.runtime", diff --git a/tsdown.config.ts b/tsdown.config.ts index 81165587d85..0c5ef3c3497 100644 --- a/tsdown.config.ts +++ b/tsdown.config.ts @@ -146,7 +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", + "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",