Skip to content

Align Playground runtime bootstrap dependencies - #1931

Merged
chubes4 merged 3 commits into
mainfrom
fix/1915-sqlite-ci-runtime
Jul 21, 2026
Merged

Align Playground runtime bootstrap dependencies#1931
chubes4 merged 3 commits into
mainfrom
fix/1915-sqlite-ci-runtime

Conversation

@chubes4

@chubes4 chubes4 commented Jul 21, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • pin the Node Playground/PHP-Wasm package family atomically at 3.1.46
  • make the root own @php-wasm/universal so Node loaders and WordPress wrappers share one runtime registry
  • pin the published WordPress build assets at 0.9.19
  • isolate the programmatic runner bootstrap at /internal/wp-codebox and delegate to Playground's canonical /internal/shared/auto_prepend_file.php

Fixes #1915.

Root cause

Two independent failures collapsed into the same runtime startup boundary:

  1. npm installed multiple physical @php-wasm/universal copies, so runtime IDs created by @php-wasm/node were invisible to the WordPress wrapper.
  2. The programmatic bootstrap replaced Playground's canonical auto-prepend file instead of composing with its preload chain.

Current main independently landed the stronger CLI-side file-level mount primitive while this branch was in flight. This branch was merged forward and retains that implementation; its remaining source change applies the same ownership boundary to the programmatic runner.

Verification

  • clean npm ci
  • npm run build
  • npm run test:runtime-sources-playground-integration
  • npx tsx tests/playground-cli-runner-bootstrap-ini.test.ts
  • npm run test:playground-readonly-mounts
  • npm run test:agent-task-contracts
  • npm run test:native-agent-task-playground-e2e
  • npm run test:runtime-services
  • npm run test:runtime-services-lifecycle
  • git diff --check

AI assistance

  • AI assistance: Yes
  • Tool: OpenCode
  • Model: openai/gpt-5.6-sol
  • Used for: diagnosis, implementation, merge resolution, and verification

chubes4 added 3 commits July 21, 2026 11:06
…ntime

# Conflicts:
#	packages/runtime-playground/src/playground-cli-runner.ts
#	tests/playground-cli-runner-bootstrap-ini.test.ts
@chubes4 chubes4 changed the title Fix Playground SQLite bootstrap isolation Align Playground runtime bootstrap dependencies Jul 21, 2026
@chubes4
chubes4 merged commit c43759a into main Jul 21, 2026
2 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.

Runtime sources Playground integration cannot connect to SQLite in CI

1 participant