Skip to content

fix(openclaw): declare extensions entry and startup activation - #4373

Open
Cedric921 wants to merge 1 commit into
rtk-ai:developfrom
Cedric921:fix/openclaw-plugin-packaging
Open

Cedric921 wants to merge 1 commit into
rtk-ai:developfrom
Cedric921:fix/openclaw-plugin-packaging

Conversation

@Cedric921

Copy link
Copy Markdown
Contributor

Summary

  • openclaw/package.json: add openclaw.extensions: ["./index.ts"]. Without it, openclaw plugins install ./openclaw is rejected on OpenClaw 2026.9.6.
  • openclaw/openclaw.plugin.json: add activation.onStartup: true. Without it, the Gateway no longer imports the plugin at startup, so before_tool_call is never wired and the plugin looks installed but does nothing.

Fixes #4357

Both fields are also part of #2783 and #4093. Those PRs are broader: #2783 also reworks index.ts, and #4093 adds a dist/ build step and Hermes changes. Both currently conflict with develop. This PR is limited to the two manifest fields from #4357 so they can land on their own. Happy to close it if you'd rather take one of those.

Test plan

  • Both JSON files parse; diff is +8 lines, no other fields touched
  • npm pack --dry-run in openclaw/ still ships index.ts, openclaw.plugin.json, README.md, package.json
  • cargo fmt --all && cargo clippy --all-targets && cargo test: n/a, no Rust changed
  • Not verified against a live OpenClaw Gateway (I don't run one); the field names and values are the ones the issue reporter verified end to end on 2026.9.6.

OpenClaw 2026.9.6 rejects a plugin package without openclaw.extensions,
and no longer imports a plugin at Gateway startup unless its manifest
sets activation.onStartup, so the before_tool_call hook was never wired.

Fixes rtk-ai#4357
@CLAassistant

CLAassistant commented Oct 1, 2026 •

Copy link
Copy Markdown

CLA assistant check
All committers have signed the CLA.

@rtk-wshm-sync-bot rtk-wshm-sync-bot Bot added bug Something isn't working openclaw packaging labels Oct 1, 2026
@rtk-wshm-sync-bot

Copy link
Copy Markdown

wshm · Automated triage by AI

📊 Automated PR Analysis

🐛 Type bug-fix
🟢 Risk low

Summary

Adds two missing manifest fields required for the OpenClaw rewrite plugin to install and run on OpenClaw 2026.9.6: an openclaw.extensions entry in package.json and an activation.onStartup flag in openclaw.plugin.json. The PR deliberately scopes itself to just these two fields, deferring broader rework from overlapping PRs #2783 and #4093.

Review Checklist

  • Tests present
  • Breaking change
  • Docs updated

Linked issues: #4357


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

@KuSh

KuSh commented Oct 16, 2026

Copy link
Copy Markdown
Collaborator

Thanks for splitting this out. You mentioned you don't run a Gateway, so I ran this branch (31ddc10) on a real OpenClaw Gateway in Docker, on 2026.8.35, 2026.9.2, 2026.9.6 and 2026.10.3, against rtk built from develop. Each agent turn had a stub model make one exec git status call.

  • openclaw plugins install ./openclaw --link: installs and loads at startup on all four releases. git status is rewritten, and a Bash(git status) deny rule blocks it. That is the openclaw plugin: packaging fixes for OpenClaw 2026.9.6 compatibility (openclaw.extensions + activation.onStartup) #4357 repro, so this fixes what the issue reports.
  • activation.onStartup is needed on all four releases, 2026.8.35 included. Without it the plugin is missing from the Gateway's startup plugin list and raw git status runs.
  • openclaw plugins install ./openclaw without --link, the form the README documents, is still refused on all four releases: package install requires compiled runtime output for TypeScript entry ./index.ts. A copy install needs a compiled .js entry.

#4093 adds both of your fields and a compiled entry, which makes the copy install work too. I've just reviewed it (#4093 (review)). It has two changes left to make: its committed dist/ is built from an older index.ts, and the new fields need a test. If #4093 lands, this PR has nothing left to add, and I'd close it then, crediting it for the fix. Until then it stays open as is.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working openclaw packaging

Projects

None yet

Development

Successfully merging this pull request may close these issues.

openclaw plugin: packaging fixes for OpenClaw 2026.9.6 compatibility (openclaw.extensions + activation.onStartup)

3 participants