Set WP_SQLITE_AST_DRIVER constant when running wp CLI commands without running server - #2980
Merged
Merged
Conversation
…t a running server
Collaborator
📊 Performance Test ResultsComparing 5680a8b vs trunk app-size
site-editor
site-startup
Results are median values from multiple test runs. Legend: 🟢 Improvement (faster) | 🔴 Regression (slower) | ⚪ No change (<50ms diff) |
1 task
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.

Related issues
How AI was used in this PR
I debugged the SQLite plugin issue popping up in Studio CLI when running
wpcommand and identified an issue. Then, used Claude Code to implement the fix.Proposed Changes
WP_SQLITE_AST_DRIVER: trueinrunWpCliCommand()viaphp.defineConstant()to match what the WordPress server sets via blueprint constants on startupWhen a Studio site server is running,
wpCLI commands are forwarded to the already-running playground instance which hasWP_SQLITE_AST_DRIVER: trueactive (set via blueprint constants inwordpress-server-child.ts). When no server is running,runWpCliCommandspawns a fresh PHP-WASM instance without a blueprint - so the constant was never set, causing the SQLite AST driver to be skipped.Testing Instructions
wpCLI command against that site:node apps/cli/dist/cli/main.mjs wp plugin list --path=<site-path>Pre-merge Checklist