fix(scripts): use direct-run helper for Windows guards#110877
fix(scripts): use direct-run helper for Windows guards#110877qingminglong wants to merge 1 commit into
Conversation
|
Codex review: needs maintainer review before merge. Reviewed July 20, 2026, 8:24 AM ET / 12:24 UTC. Summary PR surface: Tests +30, Other +9. Total +39 across 8 files. Reproducibility: no. independent current-main Windows reproduction was run in this read-only review, but the affected guard pattern and the exact-head Windows transcript make the path source-reproducible with medium confidence. Review metrics: none identified. Merge readiness Overall follows the weaker of proof and patch quality, so missing proof can cap an otherwise strong patch. Rank-up moves:
Next step before merge
Security Review detailsBest possible solution: Land the bounded helper adoption once the failing required CI lane is diagnosed and the merged result retains the demonstrated Windows direct-run behavior. Do we have a high-confidence way to reproduce the issue? No independent current-main Windows reproduction was run in this read-only review, but the affected guard pattern and the exact-head Windows transcript make the path source-reproducible with medium confidence. Is this the best way to solve the issue? Likely yes: consolidating the affected guards on the existing shared helper is narrower and less drift-prone than maintaining Windows-specific comparisons in each script; the helper implementation itself still needs normal maintainer source review. AGENTS.md: unclear because the file could not be read completely. Codex review notes: model internal, reasoning high; reviewed against 756de70e84d1. Label changesLabel changes:
Label justifications:
Evidence reviewedPR surface: Tests +30, Other +9. Total +39 across 8 files. View PR surface stats
What I checked:
Likely related people:
What the crustacean ranks mean
Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics. How this review workflow works
Review history (6 earlier review cycles)
|
2991792 to
6fc8e5c
Compare
|
@clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
6fc8e5c to
dbf9d9f
Compare
dbf9d9f to
ade35fa
Compare
|
@clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
|
ClawSweeper status: review started. I am starting a fresh review of this pull request: fix(scripts): use direct-run helper for Windows guards This is item 1/1 in the current shard. Shard 0/1. This placeholder means the worker is alive and reading the current context. I will edit this same comment with the actual review when the claws are done clicking. Crustacean status: shell secured, claws on keyboard, evidence pebbles being sorted. |
AI-assisted.
What Problem This Solves
Fixes an issue where several Windows-invoked OpenClaw scripts could silently skip their CLI entrypoint because
file://${process.argv[1]}does not resolve reliably there.Why This Change Was Made
The affected scripts now use the shared
isDirectRunUrlhelper, so direct-run detection behaves consistently on Windows without changing the actual script behavior.User Impact
--helpand direct execution now reach the intended script code on Windows instead of exiting with no output.Evidence
Current head:
ade35fa9e8a8fae0453f842cefae95e795fc60bb.Windows PowerShell / Node
v24.18.0direct-run transcript at this exact head:node --import tsx scripts/android-pin-version.ts --helpexited0and printedUsage: node --import tsx scripts/android-pin-version.ts (--from-gateway | --version <YYYY.M.PATCH>) ....node --import tsx scripts/android-app-i18n.ts checkexited0and completed the entrypoint check, reportingsourceKeys=1525andkeys=1525for all 21 locales.node scripts/run-additional-boundary-checks.mjs --helpexited0and printedUsage: node scripts/run-additional-boundary-checks.mjs [--shard <N/TOTAL>[,<N/TOTAL>]].node scripts/verify-docker-attestations.mjs --helpexited0and printedUsage: node scripts/verify-docker-attestations.mjs --platform linux/amd64 --platform linux/arm64 IMAGE....node scripts/e2e/lib/package-compat.mjs 2026.4.25exited0and printed1.node scripts/plan-release-workflow-matrix.mjsexited0and printeddocker_e2e_count=0pluslive_models_count=0.GH_REPO=openclaw/openclaw,node scripts/ci-run-timings.mjs 29655772776 --limit 1exited0and reported run29655772776ascompleted/success, including its slowest-job and longest-start-delay summaries.Supporting checks at the same head:
node scripts/run-vitest.mjs test/scripts/android-direct-run.test.tspassed: 1 file, 2 tests.git diff --check upstream/main...HEADexited0with no whitespace errors.