Skip to content

Pull WordPress.com sites with Reprint by default, with a setting to turn it off - #6294

Draft
chubes4 wants to merge 1 commit into
trunkfrom
chubes/reprint-pull-default
Draft

chubes4 wants to merge 1 commit into
trunkfrom
chubes/reprint-pull-default

Conversation

@chubes4

@chubes4 chubes4 commented Nov 30, 2026 •

Copy link
Copy Markdown
Contributor

Related issues

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_REPRINT is removed, and a new setting turns Reprint off to pull from a Jetpack Backup instead.

  • Settings ▸ Pull with Reprint, on by default, shown wherever the app runs on the local machine. It's stored as preferences.reprintPull in ~/.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 builds studio pull's options synchronously. Everything that checked the env var now follows the setting: which engine studio pull runs, the options --help shows, whether the site list requires a plan, and the pull_engine Sentry tag.
  • Toggling the setting refreshes the WordPress.com site list. The Jetpack Backup pull needs a plan, so it lists fewer sites.

Testing Instructions

End-to-end, with the built CLI, no env var set, against a free WordPress.com site:

Preference studio pull --help studio pull --path <site> --remote-site <id>
unset (default) shows --only, --skip-files exit 0, Site pulled, through Reprint
reprintPull: false shows --options exit 1, "requires a plan with hosting features": the Jetpack Backup pull
  • npm 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 lint and npm run knip pass.
  • In the app: Settings ▸ Pull with Reprint. Turn it off, and the WordPress.com site list drops sites without a plan. Pulls then go through the Jetpack Backup.

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Auto-approved: chubes4 is a trusted author.

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.

1 participant