Skip to content

rtk-rewrite OpenClaw plugin fails to load on OpenClaw 2026.5.4 — TypeScript-only, no compiled output #1719

Open

Description

@JettHayes

Description

The rtk-rewrite plugin (openclaw/index.ts) fails to load on OpenClaw 2026.5.4. OpenClaw reports:
plugin rtk-rewrite: installed plugin package requires compiled runtime output for TypeScript entry index.ts: expected ./dist/index.js, ./dist/index.mjs, ./dist/index.cjs, index.js, index.mjs, index.cjsThe plugin ships only a TypeScript source file (index.ts). OpenClaw 2026.5.4 requires compiled JavaScript output for plugins in the extensions directory.

Steps to Reproduce

  1. OpenClaw 2026.5.4
  2. Follow the install instructions: copy openclaw/index.ts and openclaw/openclaw.plugin.json to ~/.openclaw/extensions/rtk-rewrite/
  3. Restart gateway
  4. Plugin fails to load with the error above

Expected Behavior

Plugin loads and registers the before_tool_call hook, as documented in the README.

Actual Behavior

Plugin is detected but rejected at startup. Config warnings appear on every openclaw command. The rtk rewrite delegation does not activate.

Workaround

Compile index.ts to JavaScript with tsc and deploy the compiled index.js to the extensions directory. This works but is not documented.

Environment

  • OpenClaw: 2026.5.4 (2026.5.3-1 also affected)
  • rtk: installed and available in PATH
  • Node.js: v24.14.0
  • OS: Linux (Ubuntu)

Suggestion

Either:

  • Add a tsconfig.build.json and publish step so the plugin ships with compiled JS
  • Or update the README install instructions to include a compilation step for OpenClaw 2026.5+
  • Or, if OpenClaw is expected to handle TS plugins natively, file upstream — but the error message suggests this is intentional behavior for global/extensions plugins

Activity

  1. added
    bug
    good first issue
    on May 27, 2026
  2. pszymkowiak commented on May 27, 2026

    @pszymkowiak
    Collaborator

    wshm · Automated triage by AI

    🔍 Automated Triage

    🐛 Category bug
    🟡 Priority medium
    🎯 Confidence 82%

    Summary

    OpenClaw plugin ships only TypeScript source with no compiled JS output, causing load failure on OpenClaw 2026.5.4+; fix by adding a build step or documenting the manual tsc compilation workaround.

    This looks like a simple fix that could be auto-resolved. Repo maintainers can use /wshm fix to attempt it.

    📁 Relevant files
    • openclaw/index.ts
    • openclaw/openclaw.plugin.json

    Triaged automatically by wshm · This is an automated analysis, not a human review.

  3. added 2 commits that reference this issue on May 27, 2026
    4659d2e
    a470343
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:clibuggood first issuepriority:medium

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions