Skip to content

chore: move slimclaw runtime ownership and cut startup cost#1137

Open
PerishCode wants to merge 8 commits intomainfrom
feat/minor-issue-resolver
Open

chore: move slimclaw runtime ownership and cut startup cost#1137
PerishCode wants to merge 8 commits intomainfrom
feat/minor-issue-resolver

Conversation

@PerishCode
Copy link
Copy Markdown
Contributor

What

Move slimclaw's prepared runtime ownership fully into packages/slimclaw, migrate the bundled Weixin runtime there, and reduce OpenClaw warm-start latency with new timing visibility and Feishu startup-path cleanup.

Why

The branch tightens runtime ownership boundaries around slimclaw and removes avoidable startup cost on the OpenClaw critical path. In practice this cuts warm portReadyMs materially versus main, with the biggest win coming from moving the Weixin runtime into slimclaw and additional wins from pruning obsolete runtime overlays and improving startup diagnostics.

How

  • move the bundled openclaw-weixin runtime assets and ownership into slimclaw's prepared runtime flow
  • add slimclaw/runtime startup timing instrumentation so the expensive path is visible in prepare and dev startup logs
  • remove obsolete Feishu runtime patch overlays and simplify runtime patch handling
  • update slimclaw prepare/install/prune flow plus docs/CI references to reflect the new runtime ownership boundary

Affected areas

  • Desktop app (Electron shell)
  • Controller (backend / API)
  • Web dashboard (React UI)
  • OpenClaw runtime
  • Skills
  • Shared schemas / packages
  • Build / CI / Tooling

Checklist

  • pnpm typecheck passes
  • pnpm lint passes
  • pnpm test passes
  • pnpm generate-types run (if API routes/schemas changed)
  • No credentials or tokens in code or logs
  • No any types introduced (use unknown with narrowing)

Notes for reviewers

  • Full local dev validation passed on the branch after restoring the normal Feishu runtime entry.
  • Warm OpenClaw startup on this branch measured about 4.2s faster on portReadyMs than origin/main in the comparison run, with most of the gain coming from the Weixin runtime move.

Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 767dbe2d16

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment on lines +138 to +142
const weixinResult = await timedStep(
"prepare-builtin-weixin-plugin",
async () => prepareBuiltinWeixinPlugin(runtimeDir),
timings,
);
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Clean stale state weixin extension during builtin migration

This migration installs openclaw-weixin into slimclaw’s builtin runtime, but it does not remove the legacy copy that older versions already wrote to OPENCLAW_STATE_DIR/extensions/openclaw-weixin. Since controller config still loads plugins from the state extensions path (plugins.load.paths), upgraded users can keep running the stale copied plugin instead of the new builtin one, so fixes in the migrated plugin may never take effect after upgrade. Add an explicit cleanup/migration step for the old state extension directory when switching ownership to builtin.

Useful? React with 👍 / 👎.

@cloudflare-workers-and-pages
Copy link
Copy Markdown

cloudflare-workers-and-pages Bot commented Apr 16, 2026

Deploying nexu-docs with  Cloudflare Pages  Cloudflare Pages

Latest commit: 92bf186
Status: ✅  Deploy successful!
Preview URL: https://8ff87bb7.nexu-docs.pages.dev
Branch Preview URL: https://feat-minor-issue-resolver.nexu-docs.pages.dev

View logs

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant