Wechatsync
Wechatsync copied to clipboard
[codex] Guard recovered sync platform selections
Summary
- normalize recovered
selectedPlatformsbefore 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-lockfilecorepack pnpm --filter @wechatsync/extension typecheck