Repository navigation
fix(plugins): concurrent remote skill discovery fails on Node - #174252
Merged
Merged
Conversation
Concurrent remote workspace skill requests could call a Jiti handler before its static imports finished, producing readWorkspaceSkillsRequest errors. Extend the existing import-result cache to Node and separate the changed transform from legacy disk-cache output. Preserve native loading, lazy activation, and request authority. Regression proof covers cold and pre-existing transform caches. This extends the import-result preservation introduced in #150287.
Contributor
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
steipete
marked this pull request as ready for review
October 16, 2026 13:29
Contributor
Codex Review SummaryThis 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. |
steipete
enabled auto-merge (squash)
October 16, 2026 13:38
Contributor
Author
|
Merged via squash auto-merge.
|
github-actions Bot
pushed a commit
to Desicool/openclaw
that referenced
this pull request
Oct 17, 2026
Concurrent remote workspace skill requests could call a Jiti handler before its static imports finished, producing readWorkspaceSkillsRequest errors. Extend the existing import-result cache to Node and separate the changed transform from legacy disk-cache output. Preserve native loading, lazy activation, and request authority. Regression proof covers cold and pre-existing transform caches. This extends the import-result preservation introduced in openclaw#150287.
This was referenced Nov 3, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Related: #150287
What Problem This Solves
Fixes remote workspace skill discovery failing intermittently when a Node source installation starts concurrent requests.
User Impact
Concurrent skill requests wait for the plugin's dependencies to finish loading. Existing installations also stop reusing the old broken transform after updating; no config or data migration is required.
Why This Change Was Made
Jiti can expose a handler's exported function before its awaited static dependency initializes. The second request then fails with
INVALID_REQUEST: TypeError: Cannot read properties of undefined (reading 'readWorkspaceSkillsRequest')before inference. This is reproducible without an import cycle.Apply the existing import-result coalescing to Node as well as Bun, and isolate the changed transform from legacy disk-cache entries. Native loading and lazy activation retain their existing owners. No retries, timeout changes, or authority changes.
Evidence
required-native-same-session.e2e.test.tspassed all four scenarios and all eight turns; every terminalagent.waitstatus wasok. Samevitest.e2e.config.tsas the worker-E2E CI row, with--maxWorkers=1on Node 24.22/macOS. 191.77s Vitest; 781.36s wrapper including the actual runtime build (8m32.6s). No provider credentials or live provider used.The sixth hourly's nested TypeError is attributable to this loader behavior. The previous five logs contained only the outer discovery error, so they cannot all be retrospectively attributed. Local proof is macOS/Node; PR CI supplies the selected platform coverage.
Release-note context: prevent concurrent cold remote workspace skill discovery from failing while source plugin dependencies are still loading. Updating uses the corrected transform cache without changing stored data.