Repository navigation
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 Co-authored-by: Amp <[email protected]> (cherry picked from commit d1134a4)
|
🦞👀 Pull request received. I will update this pull request when review starts. |
|
Codex review: needs maintainer review before merge. Reviewed August 28, 2026, 9:50 PM ET / August 29, 2026, 01:50 UTC. ClawSweeper reviewWhat this changesThe PR teaches the CLI launcher to recognize Bun 1.4’s unquoted direct optional-import miss so startup can continue while transitive import failures still surface. Regression provenancePossible regression — probable (reproduction; reviewed change). No predecessor PR is attributed. Merge readinessNo blocking findings. This maintainer-owned release-branch backport matches the merged mainline Bun 1.4 repair and should remain open for normal release review. Priority: P2 Review scores
Verification
How this fits togetherThe root launcher loads an optional warning-filter module before starting OpenClaw. Its module-miss classifier decides whether an absent optional file is safe to skip or whether startup must surface the import error. flowchart LR
A[Bun starts CLI launcher] --> B[Optional warning-filter import]
B --> C[Module-miss classifier]
C -->|Expected direct miss| D[Continue CLI startup]
C -->|Different or transitive miss| E[Surface startup error]
D --> F[OpenClaw command]
Before merge
Agent review detailsSecurityNone. PR surfaceOther +2. Total +2 across 1 file. View PR surface stats
Review metricsNone. Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Land this exact backport after required release-branch checks complete, keeping the classifier restricted to the missing specifier and launcher path. Do we have a high-confidence way to reproduce the issue? Yes: launcher E2E coverage invokes a real Bun binary in a fixture with the optional module absent, and the supplied evidence records the pre-fix failure and exact-head recovery. Is this the best way to solve the issue? Yes: the existing shared classifier is the narrow owner boundary, and this adds only Bun 1.4’s direct-import shape while preserving the paired checks that reject transitive failures. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against a6ccf6ad8f94. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
|
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)
Summary
Why
The exact frozen-candidate CI proof fails both the Bun launcher regression and the built-artifact Bun smoke because Bun 1.4 reports direct imports as
imported from <launcher path>without quotes. The candidate already contains the real-Bun regressions; this is their existing failing proof.Proof
corepack pnpm install --frozen-lockfilenode scripts/run-vitest.mjs test/openclaw-launcher.e2e.test.ts(39 passed; the two Bun-only tests are skipped locally because Bun is unavailable)git diff --checkProduction delta: 3 additions / 1 removal in the classifier. No new config, fallback, or test seam.