Skip to content

[codex] Guard recovered sync platform selections#198

Open
chaochaoweb3 wants to merge 1 commit into
wechatsync:v2from
chaochaoweb3:codex/guard-recovered-platforms
Open

[codex] Guard recovered sync platform selections#198
chaochaoweb3 wants to merge 1 commit into
wechatsync:v2from
chaochaoweb3:codex/guard-recovered-platforms

Conversation

@chaochaoweb3

Copy link
Copy Markdown

Summary

  • normalize recovered selectedPlatforms before writing it back into the popup store
  • fall back to an empty selection when older persisted sync state does not contain an array

This prevents the popup from later reading .length from an undefined recovered selection. This may help with #194, where the sync action fails before a backend request is made.

Validation

  • corepack pnpm install --frozen-lockfile
  • corepack pnpm --filter @wechatsync/extension typecheck

@chaochaoweb3
chaochaoweb3 marked this pull request as ready for review June 30, 2026 05:25
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