Skip to content

fix(claws): restore bootstrap export tests on macOS - #120644

Merged
vincentkoc merged 1 commit into
mainfrom
fix/claw-export-pending-bootstrap
Aug 8, 2026
Merged

vincentkoc merged 1 commit into
mainfrom
fix/claw-export-pending-bootstrap

Conversation

@vincentkoc

Copy link
Copy Markdown
Member

What Problem This Solves

Fixes an issue where the Claw export test fixture created a non-canonical package bootstrap snapshot on macOS, causing four pending-bootstrap export tests to fail after bootstrap seeding correctly rejected the /var versus /private/var path mismatch.

Why This Change Was Made

The production reader records ClawWorkspaceSourceSnapshot.realPath as a canonical filesystem path. The export fixture now does the same instead of fabricating the snapshot from the logical temp-directory spelling. This preserves the production install_incomplete guard and tests the real reader contract.

User Impact

No runtime behavior changes. The pending package-bootstrap export coverage is reliable on macOS again.

Evidence

  • Before: node scripts/run-vitest.mjs src/claws/export.test.ts failed 4 of 19 tests with install_incomplete; tracing the add result showed bootstrap_source_escape from the /var and /private/var alias mismatch.
  • After: node scripts/run-vitest.mjs src/claws/export.test.ts passed 19 of 19 tests.
  • Sibling lifecycle proof: node scripts/run-vitest.mjs src/claws/bootstrap.test.ts passed 14 of 14 tests.
  • pnpm format src/claws/export.test.ts
  • git diff --check
  • Autoreview: clean, no accepted/actionable findings, correctness 0.99.

@vincentkoc vincentkoc self-assigned this Aug 8, 2026
@openclaw-barnacle openclaw-barnacle Bot added size: XS maintainer Maintainer-authored PR labels Aug 8, 2026
@vincentkoc
vincentkoc marked this pull request as ready for review August 8, 2026 16:54
@vincentkoc

Copy link
Copy Markdown
Member Author

@clawsweeper review

@clawsweeper

clawsweeper Bot commented Aug 8, 2026

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Command router queued. I will update this comment with the next step.

@vincentkoc
vincentkoc merged commit e4309e0 into main Aug 8, 2026
178 checks passed
@vincentkoc
vincentkoc deleted the fix/claw-export-pending-bootstrap branch August 8, 2026 17:12
@vincentkoc

Copy link
Copy Markdown
Member Author

Merged via squash.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

maintainer Maintainer-authored PR size: XS

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant