Skip to content

chore: finish slimclaw runtime convergence#1087

Open
PerishCode wants to merge 33 commits intomainfrom
feat/openclaw-runtime-optimization
Open

chore: finish slimclaw runtime convergence#1087
PerishCode wants to merge 33 commits intomainfrom
feat/openclaw-runtime-optimization

Conversation

@PerishCode
Copy link
Copy Markdown
Contributor

What

Converges repo-local OpenClaw runtime ownership behind packages/slimclaw, migrates the local dev CLI into tools/dev, and removes the controller-side fallback that was duplicating slimclaw runtime assets into the Windows desktop package.

Why

This branch finishes the runtime-boundary cleanup needed to keep desktop/dev flows controller-first while shrinking packaging risk and clarifying runtime ownership. It also fixes the Windows installer bloat caused by the controller sidecar carrying a full slimclaw runtime payload instead of relying on desktop/dev launcher injection.

How

  • moves the repo-local runtime contract, staging, and patch ownership into packages/slimclaw
  • migrates the pnpm dev implementation from scripts/dev to tools/dev and hardens service readiness/progress reporting
  • routes controller runtime resolution through launcher-injected OPENCLAW_* env instead of a direct slimclaw runtime dependency, which removes duplicated sidecar payloads in Windows packaging
  • updates desktop packaging / CI / workflow paths to follow the slimclaw-owned runtime layout

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

  • The Windows packaging regression that originally produced an ~885 MB installer has been reduced to ~338 MB after removing the controller runtime dependency on @nexu/slimclaw.
  • Manual Windows install / launch / uninstall regression was run successfully on the rebuilt installer, and follow-up log review did not surface unexpected fatal errors.

PerishCode and others added 25 commits April 9, 2026 14:09
docs: add slimclaw runtime unification plan
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: ac091c3438

ℹ️ 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 +116 to +118
return {
command: runtime.binPath,
argsPrefix: [],
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 Restore fallback when OPENCLAW_BIN is not resolvable

getOpenClawCommandSpec now always executes runtime.binPath directly, but in the tools/dev flow the controller environment does not set OPENCLAW_BIN (so it defaults to "openclaw"), and there is no guaranteed global openclaw binary. That makes ModelProviderService.execOpenClawCommand() fail with ENOENT when MiniMax OAuth tries to run plugins enable, blocking that user flow even though the repo-local runtime exists. The previous logic handled this by resolving a workspace runtime entry/wrapper when OPENCLAW_BIN was just a command name.

Useful? React with 👍 / 👎.

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

cloudflare-workers-and-pages bot commented Apr 14, 2026

Deploying nexu-docs with  Cloudflare Pages  Cloudflare Pages

Latest commit: 68af6bf
Status: ✅  Deploy successful!
Preview URL: https://c4e43941.nexu-docs.pages.dev
Branch Preview URL: https://feat-openclaw-runtime-optimi.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