Wechatsync icon indicating copy to clipboard operation
Wechatsync copied to clipboard

[codex] Guard recovered sync platform selections

Open chaochaoweb3 opened this issue 5 months ago • 0 comments

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 avatar Jun 23 '26 01:06 chaochaoweb3