Repository navigation
fix(openclaw): drop dist-runtime symlink so telegram channel loads (#1029) - #9423
Conversation
…1029) nix-openclaw stages lib/node_modules/openclaw/dist-runtime as a symlink to dist; bundled-plugin discovery prefers that spelling, but the gateway fs-safe loader rejects symlink path components, so the bundled telegram channel failed to load. Rebuild the gateway with the symlink removed (inside installPhase: the npm package sets dontFixup and its custom installPhase bypasses postInstall) and point the bundle OPENCLAW_GATEWAY_BIN at it. Discovery falls back to the canonical dist/extensions tree. Also correct CHANNELS.md: telegram is configured (bot @shed_openclaw_bot, polling, sops token) and live once this lands.
Codex Review Summary: ❌ FailedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 57 minutes. View limit details
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. |
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
|
Reviewer disposition (task 15847, lane code-d): the Codex code review FAILED TO RUN — account usage limits ("You have reached your Codex usage limits for code reviews"); CodeRabbit is rate-limited (free OSS review limit). No Codex or CodeRabbit findings exist on this PR to disposition. Merging under the standing criteria on local verification instead: the amd home package builds clean from this branch ( |
Fixes the Telegram leg of #1029 (task 15847).
Problem
openclaw statuson the laptop:nix-openclaw's stage-runtime creates
dist-runtimeas a symlink todist(module identity), and bundled-plugin discovery prefers the dist-runtime spelling — but the gateway's fs-safe plugin loader runs with rejectSymlinks, so the bundled telegram channel can never load from the Nix package. Token, config, bot (@shed_openclaw_bot) and allowlist are all in place; the channel is dead at load time only.Fix (home/openclaw/default.nix)
dist-runtimesymlink. Discovery then falls back to the canonicaldist/extensionstree — same files, no symlink component, module identity preserved. The removal sits insideinstallPhase: the npm gateway package setsdontFixup = true(no fixup phase) and its custom installPhase script bypasses the postInstall hook; both hook placements were tried first and the symlink survived.OPENCLAW_GATEWAY_BINat the fixed gateway viaprograms.openclaw.package.Verification
nix build .#nixosConfigurations.amd.config.home-manager.users.user.programs.openclaw.packagesucceeds; the built gateway (78vdp3id...) has nodist-runtimeentry.openclaw statusprints no "failed to load bundled channel telegram" line.Also
CHANNELS.md corrected: Telegram is a configured bundled core channel (live 2026-11-07, regressed by the 2026.10.7 packaging), not "not loaded in the current plugin set at all".
Open in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.