openclaw - 💡(How to fix) Fix Bug: tasks cancel fails because dist/task-registry-control.runtime.js is missing from published package [1 comments, 2 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#72320Fetched 2026-04-27 05:31:38
View on GitHub
Comments
1
Participants
2
Timeline
2
Reactions
0
Author
Timeline (top)
closed ×1commented ×1

openclaw tasks cancel fails because the installed package is missing dist/task-registry-control.runtime.js.

Root Cause

Summary

openclaw tasks cancel fails because the installed package is missing dist/task-registry-control.runtime.js.

Fix Action

Fix / Workaround

Local workaround

Creating the missing file restores the code path:

export { getAcpSessionManager } from "./dispatch-acp-manager.runtime-GYllz5Wn.js";
export { a as killSubagentRunAdmin } from "./subagent-control-D8p7XiG6.js";

Code Example

Failed to load task registry control runtime.

---

<openclaw install>/dist/task-registry-control.runtime.js

---

export { getAcpSessionManager } from "./dispatch-acp-manager.runtime-GYllz5Wn.js";
export { a as killSubagentRunAdmin } from "./subagent-control-D8p7XiG6.js";
RAW_BUFFERClick to expand / collapse

Summary

openclaw tasks cancel fails because the installed package is missing dist/task-registry-control.runtime.js.

Affected versions observed

  • Installed locally: openclaw 2026.4.23
  • Also checked published [email protected] tarball contents and the same file appeared to be missing there as well.

Actual behavior

Running task cancellation reaches the gateway, but then fails with:

Failed to load task registry control runtime.

Expected behavior

openclaw tasks cancel <lookup> should load its control runtime normally and proceed with task cancellation.

Root cause observed

The installed dist code expects a sibling control runtime module:

  • consumer: dist/task-registry-DfxdgLn1.js
  • expected import target: ./task-registry-control.runtime.js (or .ts)

But dist/task-registry-control.runtime.js is missing from the installed package.

Reproduction

  1. Install/update OpenClaw from npm.
  2. Use a task flow that requires openclaw tasks cancel <lookup>.
  3. Run cancellation.
  4. Observe failure: Failed to load task registry control runtime.

Local workaround

Creating the missing file restores the code path:

Path:

<openclaw install>/dist/task-registry-control.runtime.js

Shim used locally:

export { getAcpSessionManager } from "./dispatch-acp-manager.runtime-GYllz5Wn.js";
export { a as killSubagentRunAdmin } from "./subagent-control-D8p7XiG6.js";

Obviously the hashed filenames may vary between builds, but after creating the shim with the current artifact names, openclaw tasks cancel no longer dies on missing-runtime load and proceeds into normal task logic.

Notes

This looks like a packaging/publish omission rather than a runtime logic issue.

extent analysis

TL;DR

Creating a shim file task-registry-control.runtime.js with the required exports can serve as a temporary workaround for the missing file issue in the openclaw package.

Guidance

  • Verify that the dist/task-registry-control.runtime.js file is indeed missing from the installed package by checking the file system.
  • Create a shim file task-registry-control.runtime.js in the dist directory with the necessary exports, as shown in the local workaround example.
  • Use the shim file to test if the openclaw tasks cancel command works as expected.
  • Consider reporting the issue to the package maintainers, as it appears to be a packaging or publishing error.

Example

export { getAcpSessionManager } from "./dispatch-acp-manager.runtime-GYllz5Wn.js";
export { a as killSubagentRunAdmin } from "./subagent-control-D8p7XiG6.js";

Note that the actual file names may vary between builds.

Notes

This workaround may not be stable across different versions or builds of the package, as the hashed filenames can change. A permanent fix would require the package maintainers to include the missing file in the published package.

Recommendation

Apply the workaround by creating the shim file, as it allows the openclaw tasks cancel command to function correctly, albeit temporarily, until the package maintainers address the issue.

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…

FAQ

Expected behavior

openclaw tasks cancel <lookup> should load its control runtime normally and proceed with task cancellation.

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 Bug: tasks cancel fails because dist/task-registry-control.runtime.js is missing from published package [1 comments, 2 participants]