Repository navigation
fix(cli): start under Bun 1.4 without warning filter - #129142
Conversation
Recognize Bun 1.4's unquoted importer diagnostic for direct optional launcher imports without masking transitive failures. Fixes #129139. Amp-Thread-ID: https://ampcode.com/threads/T-01a037b7-66db-71f0-91e7-1578b383afb2
|
🦞👀 Pull request received. I will update this pull request when review starts. |
|
Codex review: needs maintainer review before merge. Reviewed August 25, 2026, 4:09 AM ET / 08:09 UTC. ClawSweeper reviewWhat this changesThe PR recognizes Bun 1.4’s unquoted direct-import diagnostic so an absent optional warning-filter module no longer prevents CLI startup. Regression provenancePossible regression — probable (reviewed change; failure trace). No predecessor PR is attributed. Merge readinessKeep open. The narrow launcher change appears correct and preserves the existing direct-import safeguards, but this protected maintainer PR still needs exact-current-main validation because the local partial checkout could not materialize current main. Priority: P2 Review scores
Verification
Live VerificationCommand: Result: PASS (completed) Assertions:
How this fits togetherThe root launcher imports an optional warning filter before loading the built CLI entry. Its classifier must skip only a missing file imported directly by the launcher and rethrow other module failures. flowchart LR
A[Runtime starts launcher] --> B[Optional warning filter import]
B --> C{Direct optional miss?}
C -->|Yes| D[Load CLI entry]
C -->|No| E[Surface startup error]
D --> F[CLI command runs]
Before merge
Agent review detailsSecurityNone. PR surfaceOther +2. Total +2 across 1 file. View PR surface stats
Review metrics
Root-cause clusterRelationship: Members:
Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything. Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Refresh against current main, then retain the one additional direct-import suffix if the real Bun 1.4 launcher test and exact-head CI pass; a net-neutral rewrite would not express the additional diagnostic form more clearly. Do we have a high-confidence way to reproduce the issue? No locally verified reproduction: the existing real-Bun test is a clear path, but the supplied Bun 1.4 binary was unavailable in this review environment. Is this the best way to solve the issue? Unclear: the changed classifier is the canonical owner and keeps the direct-import guards, but the reviewer could not independently verify Bun 1.4’s exact diagnostic or current main. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against b5e8460912af. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
|
|
Merged via squash.
|
Recognize Bun 1.4's unquoted importer diagnostic for direct optional launcher imports without masking transitive failures. Fixes openclaw#129139. Amp-Thread-ID: https://ampcode.com/threads/T-01a037b7-66db-71f0-91e7-1578b383afb2 Co-authored-by: Amp <[email protected]>
Recognize Bun 1.4's unquoted importer diagnostic for direct optional launcher imports without masking transitive failures. Fixes #129139. Amp-Thread-ID: https://ampcode.com/threads/T-01a037b7-66db-71f0-91e7-1578b383afb2 (cherry picked from commit d1134a4) Co-authored-by: Peter Steinberger <[email protected]> Co-authored-by: Amp <[email protected]>
Recognize Bun 1.4's unquoted importer diagnostic for direct optional launcher imports without masking transitive failures. Fixes #129139. Amp-Thread-ID: https://ampcode.com/threads/T-01a037b7-66db-71f0-91e7-1578b383afb2 (cherry picked from commit d1134a4) Co-authored-by: Peter Steinberger <[email protected]> Co-authored-by: Amp <[email protected]> (cherry picked from commit 782a8f7)
Closes #129139
What Problem This Solves
Fixes an issue where users running OpenClaw with Bun 1.4.0 would see the CLI exit before startup when the optional warning-filter bundle was absent.
Why This Change Was Made
Bun 1.4 changed direct dynamic-import diagnostics from a quoted
from '<launcher>'suffix to an unquotedimported from <launcher>suffix. The launcher now recognizes that exact direct-import shape while retaining the existing specifier and launcher-path checks, so transitive module failures are still surfaced.Node remains the primary runtime and its launcher behavior is unchanged.
User Impact
Users can run the OpenClaw CLI under Bun 1.4.0 without the launcher rejecting an absent optional warning-filter module.
Evidence
Reproduced before the fix with Bun 1.4.0:
Passing after the fix:
OPENCLAW_E2E_SKIP_BUILD=1 OPENCLAW_TEST_BUN_LAUNCHER=1 BUN_BIN=/tmp/openclaw-bun140/node_modules/.bin/bun pnpm test test/openclaw-launcher.e2e.test.ts— 40 passedpnpm check:changed— passed all selected checks, typechecks, lint, and cycle guardpnpm build— passedbun openclaw.mjs --version—OpenClaw 2026.8.1 (4c829ed)bun openclaw.mjs --help— exited 0 with root help32824702686, attempt 2 — passed; the retry cleared an unrelated Microsoft Teams ephemeral-port collision from attempt 1Structured Codex autoreview (
gpt-5.6-sol, high reasoning) reported no accepted/actionable findings and judged the patch correct at 0.99 confidence.ClawSweeper's optional rank-up move requested a current-main refresh plus the exact-head Bun 1.4 E2E. The Bun 1.4 E2E already passed at
4c829eda6a6b44dcfbc81258a5cbff92f3beb4b4. I am not rebasing solely for review freshness because current main has no conflicting or material launcher change; the native merge guard will revalidate current main before merge.