Skip to content

Fix staged Playground file durability - #2241

Merged
chubes4 merged 1 commit into
mainfrom
fix/2240-staged-file-durability
Aug 8, 2026
Merged

Fix staged Playground file durability#2241
chubes4 merged 1 commit into
mainfrom
fix/2240-staged-file-durability

Conversation

@chubes4

@chubes4 chubes4 commented Aug 8, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • stream staged files from a private snapshot so writes to a NodeFS-mounted target cannot truncate the source being read
  • verify the final mounted target byte count and SHA-256 after all chunks are written
  • cover >256 KiB text, binary, and truncated-target diagnostics

Fixes #2240.

Verification

  • staged file materialization preserves large text and binary files

wp-codebox-workspace@0.19.0 build
node ./node_modules/typescript/bin/tsc -b packages/runtime-core packages/runtime-playground packages/cli && node scripts/ensure-cli-bin-executable.mjs

wp-codebox-workspace@0.19.0 test:playground-staged-upload-preview
tsx tests/playground-staged-upload-preview.integration.test.ts

wp-codebox-workspace@0.19.0 test:playground-readonly-mounts-integration
tsx tests/playground-readonly-mounts-integration.test.ts

playground readonly mount integration ok

  • Direct candidate CLI fixture 20 dependency discovery succeeded; the 816,891-byte generated artifact produced the WooCommerce dependency plan.

AI assistance

OpenAI gpt-5.6-terra via OpenCode diagnosed the mounted-source truncation, implemented snapshot and integrity verification, and ran focused, integration, build, and canonical dependency-discovery checks. Chris Huber reviewed and remains responsible for every line.

AI assistance: OpenAI gpt-5.6-terra via OpenCode diagnosed the mounted-source truncation, implemented snapshot and integrity verification, and added regression coverage. Chris Huber remains responsible for every line.
@chubes4
chubes4 merged commit 1385317 into main Aug 8, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Playground staged files retain only the first 256 KiB chunk

1 participant