Repository navigation
Conversation
|
@Pybsama is attempting to deploy a commit to the nehanth's projects Team on Vercel. A member of the Team first needs to authorize it. |
This branch has not been deployed
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.
Summary
Fixes two bugs in
runPooledCommand(packages/openclaw/src/commands.js):/pooled AllowrandenyJoininstead ofallowJoin:switch (sub.toLowerCase())matched"allow"case-insensitively, but theallow/denybranch checkedsub === "allow"against the un-lowercased token. On clients that auto-capitalize chat text (e.g./pooled Allowor/pooled Allow 1), the command fell into thedenyJoinpath and turned away the waiting device instead of letting it in (and rejected/pooled Allow all). Usingconst cmd = sub.toLowerCase()consistently fixes this.0acted on waiting device TURN relay for strict NATs #1:[q[(+arg || 1) - 1]]treatedarg = "0"as falsy and defaulted to1, so/pooled allow 0and/pooled deny 0silently allowed or denied the first waiting device instead of reporting that index0is out of range. Parsingconst idx = arg ? +arg : 1keeps the omitted-argument default while rejecting0.Validation
packages/openclaw/test/v1_test.mjscovering/pooled allow 0,/pooled DENY 0,/pooled Allow 1(verifyingallowJoinis called, notdenyJoin), and/pooled ALLOW all; confirmed it fails onorigin/mainbefore the fix.node --check packages/openclaw/src/commands.js packages/openclaw/test/v1_test.mjs(clean).npm run test:packages(214 pass, 0 fail, 6 skipped).