Repository navigation
fix: prevent Bun Doctor and updates from failing to clone database commands - #172175
Merged
Merged
Conversation
Contributor
|
🦞👀 Pull request received. I will update this pull request when review starts. |
steipete
marked this pull request as ready for review
October 14, 2026 13:48
Contributor
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
Contributor
Author
|
Merged via squash.
|
This was referenced Oct 14, 2026
github-actions Bot
pushed a commit
to Desicool/openclaw
that referenced
this pull request
Oct 15, 2026
github-actions Bot
pushed a commit
to Desicool/openclaw
that referenced
this pull request
Oct 15, 2026
The regression added by c962a89 (openclaw#172175) captures Worker.postMessage and invokes it with call(this). Record its one justified suppression in the explicit inventory.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What Problem This Solves
Fixes Doctor migrations and updates failing with
The object can not be cloned.when their SQLite maintenance runs on Bun.User Impact
Bun installations can complete native Doctor maintenance and transfer database commands normally. Existing migration, byte-limit, cancellation and cleanup rules remain unchanged; no configuration or schema change is required.
Why This Change Was Made
The request-transfer optimization in #171940 transferred serializer-owned buffers directly. Bun's
node:v8.serializecan return shared backing storage, which is cloneable but cannot appear in a transfer list. The SQLite broker now uses the existingownedWorkerBytespolicy for open input, optional preparation, inline commands and continuation frames, matching the reply and Git-worker paths. Eligible exclusive buffers retain the zero-copy path; shared or pooled storage is copied before transfer.Evidence
The new regression failed on the original owner with the actual Bun
DataCloneError. With the repair, the signed Bun 1.4.3 runtime completed a real maintenance lease, prepared open, inline append and 36 MiB framed append/readback, with transferred buffers detached after dispatch. A full isolateddoctor --fix --non-interactiverun exited 0, preserved synthetic agent data byte-for-byte, passed both database integrity checks, and released every maintenance lease and child.All 17 focused tests passed, including existing 72 MiB framing/reopen, cancellation, queue credit, failed staging, close drainage and unrelated-buffer ownership coverage. Core types, the owning state/logging test type graph, focused lint and formatting passed. Independent P2 review found no actionable findings. The broader local check was stopped through its owned driver after scoped proof completed; its remaining checks are inconclusive and exact-head PR CI provides broad validation.
The broader changed gate encountered an existing environment-count mismatch: both the unchanged candidate baseline and repaired tree contain 455 names against a budget of 454, with no names added or removed by this change. The budget is not raised here.