Skip to content

[codex] Reject stale auth watcher metadata#3485

Draft
CharlVS wants to merge 1 commit into
devfrom
codex/fix-stale-auth-metadata
Draft

[codex] Reject stale auth watcher metadata#3485
CharlVS wants to merge 1 commit into
devfrom
codex/fix-stale-auth-metadata

Conversation

@CharlVS
Copy link
Copy Markdown
Collaborator

@CharlVS CharlVS commented May 5, 2026

Summary

  • Fixes the stale optimistic auth metadata regression from feat(migration): implement legacy wallet migration flow #3475 (comment).
  • Updates same-wallet auth watcher metadata comparison so lower-fidelity snapshots cannot drop initialized optimistic metadata.
  • Keeps complete finalizer updates flowing through, including activated coin and legacy cleanup metadata changes.
  • Adds focused AuthBloc coverage for rejecting stale watcher metadata and accepting finalized metadata.

Validation

  • dart format lib/bloc/auth_bloc/auth_bloc.dart test_units/tests/wallet/legacy_native_wallet_migration_test.dart
  • flutter analyze lib/bloc/auth_bloc/auth_bloc.dart test_units/tests/wallet/legacy_native_wallet_migration_test.dart passed.
  • flutter analyze was attempted, but the base repo currently reports 2059 existing analyzer issues outside this patch.
  • flutter pub get --enforce-lockfile fails on the current dev lockfile because pubspec.lock is out of sync with pubspec.yaml; this PR intentionally does not include unrelated lockfile churn.

Unit and integration tests were not run per the repository guidance that they are currently failing.

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