Skip to content

Flush Personal WP restore before reload#3701

Open
akirk wants to merge 1 commit into
WordPress:trunkfrom
akirk:fix-personal-wp-restore-flush
Open

Flush Personal WP restore before reload#3701
akirk wants to merge 1 commit into
WordPress:trunkfrom
akirk:fix-personal-wp-restore-flush

Conversation

@akirk
Copy link
Copy Markdown
Member

@akirk akirk commented May 28, 2026

Summary

  • Flush the active Personal WP /wordpress mount after restoring a backup.
  • Reload only after restored files are persisted back to OPFS/local storage.

Testing

  • npm exec nx run playground-personal-wp:typecheck
  • npm exec nx run playground-personal-wp:test
  • npm exec nx run playground-personal-wp:lint

@akirk akirk requested review from a team, bgrgicak and Copilot May 28, 2026 16:49
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Note

Copilot was unable to run its full agentic suite in this review.

This PR ensures restored Personal WP WordPress files are persisted back to OPFS/local storage by flushing the active /wordpress mount after a backup restore, before navigating and reloading.

Changes:

  • Adds a constant for the WordPress OPFS mountpoint (/wordpress).
  • Flushes the WordPress OPFS mount after importing restored WordPress files.
  • Introduces a small helper (flushWordPressMount) to conditionally flush when the mount exists.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

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.

2 participants