Repository navigation
Conversation
|
Thanks for the context here. I swept through the related work, and this is now duplicate or superseded. Close as duplicate/superseded: this PR’s production replacement is correct, but #84438 is an open, mergeable, maintainer-modifiable, proof-backed branch with the same fix plus focused argv and argv-invocation regression coverage. Canonical path: Land #84438 or another maintainer-selected proof-backed branch with focused argv coverage, then close the linked issue and remaining duplicate PRs. So I’m closing this here and keeping the remaining discussion on #84438. Review detailsBest possible solution: Land #84438 or another maintainer-selected proof-backed branch with focused argv coverage, then close the linked issue and remaining duplicate PRs. Do we have a high-confidence way to reproduce the issue? Yes. Source inspection on current main and Is this the best way to solve the issue? No for this branch as the best landing path. The one-line production replacement is correct, but #84438 carries the same fix with focused argv and invocation regression coverage. Security review: Security review cleared: Cleared: the diff only changes local CLI argv parsing and does not touch dependencies, workflows, secrets, packaging, permissions, downloads, or other supply-chain surfaces. AGENTS.md: found and applied where relevant. What I checked:
Likely related people:
Codex review notes: model internal, reasoning high; reviewed against d1b917120a47. |
|
ClawSweeper PR egg ✨ Hatched: 🥚 common Neon Lint Imp Hatch commandComment Hatchability rules:
Rarity: 🥚 common. What is this egg doing here?
|
|
@clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
|
Hi maintainers, this PR is now marked It is a one-line consistency fix for #83902, with real behavior proof and local test/check output included in the PR body. Could someone take a look and merge if the required checks are green? Thanks! |
|
🦞✅ Reason: structured ClawSweeper close marker: close-required (sha=fc8a25de2411eac138c22a97f8fa76f7b1b42106) Closed:
|
Closes #83902
getCommandPathInternalwas the only function inargv.tsusing a hardcoded"--"instead of the importedFLAG_TERMINATORconstant. Replaced the literal with the constant for consistency — if FLAG_TERMINATOR ever changes, command-path resolution will now stay in sync with all other argv helpers.Real behavior proof
Behavior addressed: getCommandPathInternal used a hardcoded "--" literal that was inconsistent with the FLAG_TERMINATOR constant used elsewhere in argv.ts; unified to the constant. Behavior is preserved — "--" is still the flag terminator at runtime.
Real environment tested: local macOS (darwin 25.5.0), Node 24, pnpm 11.2.2, built openclaw CLI from this branch
Exact steps or command run after this patch:
Evidence after fix (real CLI output):
(See attached screenshot below for full terminal capture.)
Observed result after fix: openclaw CLI parses command path identically to before.
--still terminates flag scanning and downstream args are passed through to the command's positional/raw argv. No regression in any of the touched code paths.What was not tested: full e2e suite, non-macOS platforms