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
Harden OpenClaw room configuration, close/abort responsiveness, singleton lifecycle, and download progress formatting in
packages/openclaw/src/pool.jsandpackages/openclaw/src/download.js:roomSettings()numeric & boolean env parsing (packages/openclaw/src/pool.js):NaN, non-finite, negative, or non-integer values forminDevices,waitSeconds,pledgeGB, andctx, falling back to valid plugin config or defaults instead of allowingNaN(which could hangensureOnline()/transport()wait loops) or negative limits.waitSeconds: 0/POOLED_WAIT_S="0"instead of overriding it to120.POOLED_ASK/POOLED_PULL/POOLED_PREWARM/POOLED_ALLOW_APIenv vars so they do not clobber explicitfalseplugin config values, and trim whitespace inoff().packages/openclaw/src/pool.js):r.closedalongsidesignal?.abortedinadmitted(),bridgeFor(), andtransport()so closing a room aborts pending waits immediately instead of timing out afterlobbyMs/waitSeconds(and avoids creating a newBridgeon an already-closed room).r.pullPagainstsignalabort inensureOnline({ waitPull: true })and clean up the listener infinally.r.close()runs and avoid returning a closed handle fromensureRoom().packages/openclaw/src/download.js):AbortError(e?.name === "AbortError"orsignal?.aborted) to"stopped"indownload().pullLine()percentage to[0, 100]inrunningandcheckingstates, clamp remaining bytes for ETA to>= 0, and omit non-finite or non-positivebpsvalues.Verification
node --check packages/openclaw/src/pool.js packages/openclaw/src/download.js packages/openclaw/test/pool_download_test.mjs: passnode --test packages/openclaw/test/pool_download_test.mjs: 6 pass, 0 fail (all new tests confirmed RED before fix)npm run test:packages: 219 pass, 0 fail, 6 skippednpm run test:runtime: pass (all 6 runtime checks)