Skip to content

fix(cli): accept Bun 1.4 module-miss diagnostics - #132269

Merged
RomneyDa merged 1 commit into
extended-stable/2026.6.33from
fix/extended-stable-2026-6-35-bun14-launcher
Aug 29, 2026
Merged

RomneyDa merged 1 commit into
extended-stable/2026.6.33from
fix/extended-stable-2026-6-35-bun14-launcher

Conversation

@RomneyDa

Copy link
Copy Markdown
Member

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

Production delta: 3 additions / 1 removal in the classifier. No new config, fallback, or test seam.

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)
@clawsweeper

clawsweeper Bot commented Aug 29, 2026

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

@openclaw-barnacle openclaw-barnacle Bot added size: XS maintainer Maintainer-authored PR labels Aug 29, 2026
@clawsweeper clawsweeper Bot added P2 Normal backlog priority with limited blast radius. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. labels Aug 29, 2026
@clawsweeper

clawsweeper Bot commented Aug 29, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed August 28, 2026, 9:50 PM ET / August 29, 2026, 01:50 UTC.

ClawSweeper review

What this changes

The 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 provenance

Possible regression — probable (reproduction; reviewed change). No predecessor PR is attributed.

Merge readiness

⚠️ Ready for maintainer review - 2 items remain

No 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
Reviewed head: 964af92c2b8544f9ae3cbb664baf2442ecb171c5

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A small, source-matched release backport with focused real-runtime coverage and no actionable finding.
Proof confidence 🌊 off-meta tidepool Not applicable: Not applicable: this is a member-authored PR, so the external-contributor proof gate does not apply; its supplied evidence nevertheless maps the optional-import path to recorded real-Bun failure and recovery checks.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: Not applicable: this is a member-authored PR, so the external-contributor proof gate does not apply; its supplied evidence nevertheless maps the optional-import path to recorded real-Bun failure and recovery checks.
Evidence reviewed 6 items Introduced patch: The verified PR delta adds only the unquoted Bun importer form while retaining the exact missing-specifier predicate.
Current main behavior: Current main contains the same unquoted importer recognition, and the shared classifier continues to govern optional warning-filter and entry-module imports.
Regression coverage: The launcher E2E tests invoke a real Bun binary when enabled, require a missing optional warning filter to fall through, and separately require same-specifier transitive misses to remain visible.
Findings None None.
Security None None.

How this fits together

The 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]
Loading

Before merge

  • Resolve merge risk (P1) - Bun upstream documentation/source was unreachable during this read-only review; recorded real-Bun coverage and the successful exact-head Bun lane support the diagnostic shape.
  • Complete next step (P2) - No mechanical repair is needed; this maintainer-owned release backport needs normal release-branch review.
Agent review details

Security

None.

PR surface

Other +2. Total +2 across 1 file.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 0 0 0 0
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 1 3 1 +2
Total 1 3 1 +2

Review metrics

None.

Merge-risk options

Maintainer options:

  1. Decide the mitigation before merge
    Land this exact backport after required release-branch checks complete, keeping the classifier restricted to the missing specifier and launcher path.
  2. Pause or close
    Do not merge this PR until maintainers decide whether the risk is worth taking.

Technical review

Best 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.

Labels

Label changes:

  • add P2: This is a focused repair for Bun CLI startup compatibility with limited blast radius.
  • add rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🌊 off-meta tidepool and patch quality is 🐚 platinum hermit.
  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Not applicable: Not applicable: this is a member-authored PR, so the external-contributor proof gate does not apply; its supplied evidence nevertheless maps the optional-import path to recorded real-Bun failure and recovery checks.

Label justifications:

  • P2: This is a focused repair for Bun CLI startup compatibility with limited blast radius.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🌊 off-meta tidepool and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Not applicable: Not applicable: this is a member-authored PR, so the external-contributor proof gate does not apply; its supplied evidence nevertheless maps the optional-import path to recorded real-Bun failure and recovery checks.

Evidence

What I checked:

  • Introduced patch: The verified PR delta adds only the unquoted Bun importer form while retaining the exact missing-specifier predicate. (openclaw.mjs:298, 964af92c2b85)
  • Current main behavior: Current main contains the same unquoted importer recognition, and the shared classifier continues to govern optional warning-filter and entry-module imports. (openclaw.mjs:280, a6ccf6ad8f94)
  • Regression coverage: The launcher E2E tests invoke a real Bun binary when enabled, require a missing optional warning filter to fall through, and separately require same-specifier transitive misses to remain visible. (test/openclaw-launcher.e2e.test.ts:392, 964af92c2b85)
  • Backport provenance: History identifies this release-branch commit as the backport of the merged mainline implementation from fix(cli): start under Bun 1.4 without warning filter #129142. (openclaw.mjs:298, 964af92c2b85)
  • Release context: The mainline implementation is newer than supplied release v2026.7.1-2; no containing release tag was available locally, so it is current-main-only provenance. (d1134a45f2fa)
  • Exact-head CI: The supplied check data records a successful Bun launcher lane on this PR head. (964af92c2b85)

Likely related people:

  • steipete: Authored the merged mainline implementation that this branch backports. (role: mainline feature author; confidence: high; commits: d1134a45f2fa; files: openclaw.mjs, test/openclaw-launcher.e2e.test.ts)

Rating scale

Score Internal tier Crab rank Meaning
6/6 S 🦀 challenger crab Exceptional readiness
5/6 A 🦞 diamond lobster Very strong readiness
4/6 B 🐚 platinum hermit Good normal PR; ordinary maintainer review
3/6 C 🦐 gold shrimp Useful, but confidence is limited
2/6 D 🦪 silver shellfish Proof or implementation needs work
1/6 F 🧂 unranked krab Not merge-ready
N/A NA 🌊 off-meta tidepool Rating does not apply

Overall follows the weaker of proof and patch quality.
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.

Workflow

  • ClawSweeper keeps one durable marker-backed review comment per issue or PR.
  • Re-runs edit this comment so the latest verdict, findings, and automation markers stay together instead of adding duplicate bot comments.
  • A fresh review can be triggered by eligible @clawsweeper re-review comments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch.
  • PR/issue authors and users with repository write access can comment @clawsweeper re-review or @clawsweeper re-run on an open PR or issue to request a fresh review only.
  • Maintainers can also comment @clawsweeper review to request a fresh review only.
  • Fresh-review commands do not start repair, autofix, rebase, CI repair, or automerge.
  • Maintainer-only repair and merge flows require explicit commands such as @clawsweeper autofix, @clawsweeper automerge, @clawsweeper fix ci, or @clawsweeper address review.
  • Maintainers can comment @clawsweeper explain to ask for more context, or @clawsweeper stop to stop active automation.

@RomneyDa
RomneyDa merged commit 782a8f7 into extended-stable/2026.6.33 Aug 29, 2026
81 checks passed
@RomneyDa
RomneyDa deleted the fix/extended-stable-2026-6-35-bun14-launcher branch August 29, 2026 02:44
RomneyDa added a commit that referenced this pull request Aug 30, 2026
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)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

maintainer Maintainer-authored PR P2 Normal backlog priority with limited blast radius. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. size: XS status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants