Repository navigation
Conversation
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
wp-content) released and pinned before this leaves draft.How AI was used in this PR
The Pi coding agent, running an Anthropic Claude model, wrote the change and the tests, ran the checks below, and did the end-to-end pulls with the built CLI. I chose the design, which follows the suggestion in Slack to default to Reprint with a self-serve opt-out.
Proposed Changes
Reprint becomes the default engine for WordPress.com pulls.
STUDIO_ENABLE_PULL_REPRINTis removed, and a new setting turns Reprint off to pull from a Jetpack Backup instead.preferences.reprintPullin~/.studio/config.json, so the app and the CLI read the same value. A standalone CLI user opts out by setting that key.isReprintPullEnabled()reads the preference, synchronously, because yargs buildsstudio pull's options synchronously. Everything that checked the env var now follows the setting: which enginestudio pullruns, the options--helpshows, whether the site list requires a plan, and thepull_engineSentry tag.Testing Instructions
End-to-end, with the built CLI, no env var set, against a free WordPress.com site:
studio pull --helpstudio pull --path <site> --remote-site <id>--only,--skip-filesSite pulled, through ReprintreprintPull: false--optionsnpm test: everything passes apart from one timing flake (run-wp-cli-command.test.ts), which passed 3/3 on rerun.npm run typecheck,npm run lintandnpm run knippass.