openclaw - 💡(How to fix) Fix Build regression on main: pnpm build fails in src/agents/subagent-announce-delivery.ts [1 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
openclaw/openclaw#61636Fetched 2026-04-08 02:56:33
View on GitHub
Comments
0
Participants
1
Timeline
1
Reactions
0
Participants
Timeline (top)
closed ×1

pnpm build fails on the current main commit 072e0795f8 (chore: prepare 2026.4.6-beta.1 release).

The failure is a TypeScript compile error in src/agents/subagent-announce-delivery.ts because normalizeDeliveryContext and mergeDeliveryContext are referenced but not defined or imported.

Error Message

The failure is a TypeScript compile error in src/agents/subagent-announce-delivery.ts because normalizeDeliveryContext and mergeDeliveryContext are referenced but not defined or imported. src/agents/subagent-announce-delivery.ts(187,27): error TS2304: Cannot find name 'normalizeDeliveryContext'. src/agents/subagent-announce-delivery.ts(216,12): error TS2304: Cannot find name 'mergeDeliveryContext'. src/agents/subagent-announce-delivery.ts(251,24): error TS2304: Cannot find name 'normalizeDeliveryContext'. src/agents/subagent-announce-delivery.ts(258,12): error TS2304: Cannot find name 'mergeDeliveryContext'. src/agents/subagent-announce-delivery.ts(446,36): error TS2304: Cannot find name 'normalizeDeliveryContext'. src/agents/subagent-announce-delivery.ts(447,26): error TS2304: Cannot find name 'normalizeDeliveryContext'. src/agents/subagent-announce-delivery.ts(448,36): error TS2304: Cannot find name 'normalizeDeliveryContext'. src/agents/subagent-announce-delivery.ts(455,11): error TS2304: Cannot find name 'mergeDeliveryContext'.

Root Cause

The failure is a TypeScript compile error in src/agents/subagent-announce-delivery.ts because normalizeDeliveryContext and mergeDeliveryContext are referenced but not defined or imported.

Code Example

src/agents/subagent-announce-delivery.ts(187,27): error TS2304: Cannot find name 'normalizeDeliveryContext'.
src/agents/subagent-announce-delivery.ts(216,12): error TS2304: Cannot find name 'mergeDeliveryContext'.
src/agents/subagent-announce-delivery.ts(251,24): error TS2304: Cannot find name 'normalizeDeliveryContext'.
src/agents/subagent-announce-delivery.ts(258,12): error TS2304: Cannot find name 'mergeDeliveryContext'.
src/agents/subagent-announce-delivery.ts(446,36): error TS2304: Cannot find name 'normalizeDeliveryContext'.
src/agents/subagent-announce-delivery.ts(447,26): error TS2304: Cannot find name 'normalizeDeliveryContext'.
src/agents/subagent-announce-delivery.ts(448,36): error TS2304: Cannot find name 'normalizeDeliveryContext'.
src/agents/subagent-announce-delivery.ts(455,11): error TS2304: Cannot find name 'mergeDeliveryContext'.
RAW_BUFFERClick to expand / collapse

Summary

pnpm build fails on the current main commit 072e0795f8 (chore: prepare 2026.4.6-beta.1 release).

The failure is a TypeScript compile error in src/agents/subagent-announce-delivery.ts because normalizeDeliveryContext and mergeDeliveryContext are referenced but not defined or imported.

Reproduction

  1. Check out main at 072e0795f8
  2. Run pnpm install
  3. Run pnpm build

Actual result

pnpm build fails with:

src/agents/subagent-announce-delivery.ts(187,27): error TS2304: Cannot find name 'normalizeDeliveryContext'.
src/agents/subagent-announce-delivery.ts(216,12): error TS2304: Cannot find name 'mergeDeliveryContext'.
src/agents/subagent-announce-delivery.ts(251,24): error TS2304: Cannot find name 'normalizeDeliveryContext'.
src/agents/subagent-announce-delivery.ts(258,12): error TS2304: Cannot find name 'mergeDeliveryContext'.
src/agents/subagent-announce-delivery.ts(446,36): error TS2304: Cannot find name 'normalizeDeliveryContext'.
src/agents/subagent-announce-delivery.ts(447,26): error TS2304: Cannot find name 'normalizeDeliveryContext'.
src/agents/subagent-announce-delivery.ts(448,36): error TS2304: Cannot find name 'normalizeDeliveryContext'.
src/agents/subagent-announce-delivery.ts(455,11): error TS2304: Cannot find name 'mergeDeliveryContext'.

Expected result

pnpm build should complete successfully on the latest main branch.

Notes

A targeted search did not find an existing issue for this exact failure.

extent analysis

TL;DR

The most likely fix is to import or define the missing normalizeDeliveryContext and mergeDeliveryContext functions in the src/agents/subagent-announce-delivery.ts file.

Guidance

  • Verify that normalizeDeliveryContext and mergeDeliveryContext are defined in another file and import them correctly in src/agents/subagent-announce-delivery.ts.
  • Check if these functions were removed or renamed in recent commits and update the references accordingly.
  • If the functions are not defined anywhere, create them or replace their usage with equivalent functionality.
  • Review the code changes in the chore: prepare 2026.4.6-beta.1 release commit to see if it introduced the issue.

Example

// Assuming the functions are defined in another file, e.g., utils.ts
import { normalizeDeliveryContext, mergeDeliveryContext } from './utils';

Notes

The fix assumes that the missing functions are defined somewhere in the codebase or need to be created. If they were removed intentionally, the code using them needs to be updated.

Recommendation

Apply a workaround by importing or defining the missing functions, as it seems like a straightforward fix for the compile error.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING

openclaw - 💡(How to fix) Fix Build regression on main: pnpm build fails in src/agents/subagent-announce-delivery.ts [1 participants]