Skip to content

fix: restore desktop standalone packaging on current build output - #198567

Merged
steipete merged 2 commits into
mainfrom
fix/b6-inventory-chunk-selection
Nov 14, 2026
Merged

steipete merged 2 commits into
mainfrom
fix/b6-inventory-chunk-selection

Conversation

@steipete

@steipete steipete commented Nov 14, 2026 •

Copy link
Copy Markdown
Contributor

What Problem This Solves

Fixes desktop standalone packaging failing on the current build output before it reaches executable compilation.

User Impact

Standalone packaging can select the current runtime chunks and capture its fixed workspace programs consistently.

Why This Change Was Made

Chunk selection sent every relative-looking literal, including ordinary strings such as . and .sqlite, through native filesystem resolution and exhausted Bun's resolver storage. Reuse the existing package-inventory CommonJS resolver, preserving extensionless files, directory indexes, and package main entries while preventing unrelated build-host files from changing retention.

The next packaging stage still searched an old workspace-manifest-* filename for the workspace-path-exclusions program. Remove that exception so it uses the current owner filename, like the other fixed programs.

Evidence

The repaired selector produces the same 19,647-file selection as the original algorithm under Node and completes under Bun where the original panics. Its regression test fails before the fix because an unlisted manifest changes retention. The three code-generation fixtures reproduce the missing-owner failure before the filename correction and pass after it; the real staged output captures all six fixed programs with no residuals.

All 76 affected packaging tests pass. Targeted core, tooling and gateway typechecks, lint and formatting pass. Independent review found no actionable issues. The full normal build also passes on the final candidate. The stock compiler now reaches native AOT compilation, where it independently panics in Lower on the LinkeDOM/CSSOM chunk; this PR does not claim to repair that compiler failure. Carried-compiler qualification continues separately. Exact-head CI remains required before landing.

@clawsweeper

clawsweeper Bot commented Nov 14, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

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

ClawSweeper review in progress

ClawSweeper is reviewing this revision. This supersedes any previous blocked status.

View the workflow run.

@steipete
steipete marked this pull request as ready for review November 14, 2026 01:57
@openclaw-barnacle openclaw-barnacle Bot added docs Improvements or additions to documentation gateway Gateway runtime scripts Repository scripts labels Nov 14, 2026
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 14, 2026 •

Copy link
Copy Markdown
Contributor
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-14T01:59:59.171101Z c9be2da Draft marked ready
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@steipete steipete changed the title fix: standalone builds exhaust resolver storage on large packages fix: restore desktop standalone packaging on current build output Nov 14, 2026
@steipete
steipete enabled auto-merge (squash) November 14, 2026 02:08
@clawsweeper clawsweeper Bot added clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. labels Nov 14, 2026
@steipete
steipete merged commit 5f99927 into main Nov 14, 2026
166 of 168 checks passed
@steipete
steipete deleted the fix/b6-inventory-chunk-selection branch November 14, 2026 02:19
@steipete

Copy link
Copy Markdown
Contributor Author

Merged via squash auto-merge.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Nov 14, 2026
…enclaw#198567)

* fix: resolve standalone chunks from the package inventory

* fix: locate standalone workspace programs by their current owner
maplel pushed a commit to maplel/openclaw that referenced this pull request Nov 24, 2026
)

* fix(build): isolate standalone native export resolution

Capture package exports in a fresh instance of the build runtime so earlier bundling cannot exhaust the resolver state used to build the native lookup table. Verify ambiguous missing entries independently and fail before publishing an incomplete artifact.

* test: reconcile standalone regression allocation with CI base

* test: share standalone native fixture setup

(cherry picked from commit 00a9c52)

Release adaptation: Exact fresh-process resolver/finalizer and unnamed-owner filtering; kept existing standalone test fixtures rather than importing broad refactor. Later parser-target fix bdfd1c0 and fixture cleanups independent/out of scope. No compiler/dependency/version changes.

Follow-up dispositions: d44f263 fix(test): retain standalone fixtures after cleanup failure (openclaw#202227); 1aced63 fix(test): retain standalone resolver fixtures after cleanup failure (openclaw#201662); bdfd1c0 fix: retain minified lazy parser targets in standalone builds (openclaw#198639); 5f99927 fix: restore desktop standalone packaging on current build output (openclaw#198567)

Validation: Baseline resolver regressions 2/2 failed with actual missing alias and swallowed error; candidate resolver+existing native tests 30/30 passed under pinned test runtime; node --check and diff --check passed. Full large standalone distribution build not run.

Co-authored-by: RomneyDa <[email protected]>
(cherry picked from commit b305470dfd611795999ecbee9d5d14c172e58484)
(cherry picked from commit 63a60fa78bba92bec04a43a1686b78d896a6d887)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. docs Improvements or additions to documentation gateway Gateway runtime scripts Repository scripts size: S

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant