Skip to content

fix : Performance optimization with targeted sync (M2-10426, M2-10465)#1065

Open
sricharan-varanasi wants to merge 19 commits intoM2-10227-local-vs-server-syncfrom
performance-targeted-sync
Open

fix : Performance optimization with targeted sync (M2-10426, M2-10465)#1065
sricharan-varanasi wants to merge 19 commits intoM2-10227-local-vs-server-syncfrom
performance-targeted-sync

Conversation

@sricharan-varanasi
Copy link
Copy Markdown
Contributor

@sricharan-varanasi sricharan-varanasi commented Feb 12, 2026

  • Tests for the changes have been added
  • Related documentation has been added / updated
  • OSS packages added to Curious open source credit page

📝 Description

🔗 Jira Ticket M2-10426
🔗 Jira Ticket M2-10465

Performance fix for the cross-device flow sync feature. Replaces full refresh with targeted sync when starting activities/flows.

Changes include:

  • Replace useRefreshMutation with TargetedProgressSyncService in useStartEntity
  • Skip sync when feature flag is disabled (matches original dev behavior)
  • Remove duplicate sync from InProgressActivityScreen (already synced on tap)

🪤 Peer Testing

  1. With flag enabled (['*']): Tap a flow → should open quickly without 3-5 sec delay
  2. With flag disabled ([]): Behavior should match dev branch exactly

@sricharan-varanasi sricharan-varanasi changed the title Performance targeted sync fix : Performance optimization with targeted sync (M2-10426) Feb 12, 2026
@sricharan-varanasi sricharan-varanasi force-pushed the performance-targeted-sync branch 2 times, most recently from 52149f2 to 4d1b980 Compare February 12, 2026 19:09
@sricharan-varanasi sricharan-varanasi changed the base branch from dev to M2-10227-local-vs-server-sync February 13, 2026 19:25
… logic

T_EDITOR=true git rebase --continue
o "" | git rebase --continue
… feature flag

- AvailableGroupEvaluator: Use legacy 'any record exists' check when flag OFF
- ConstructCompletionsService: Skip cross-device auto-completion when flag OFF
- Replace full refresh with targeted sync in useStartEntity
- Skip sync entirely when feature flag is disabled (matches dev behavior)
- Remove duplicate sync from InProgressActivityScreen (already synced on tap)
Copy link
Copy Markdown
Contributor

@divbzero divbzero left a comment

Choose a reason for hiding this comment

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

Looks good. Focused my review on the last commit c53876e.

Add unit and integration tests covering the feature flag behavior:
- ProgressSyncService skips in-progress flows when flag disabled
- Completed flows and activities still process normally
- In-progress flows dispatch with full payload when flag enabled
- Per-applet flag evaluation works correctly
- Redux slice upsertEntityProgression contract documented
@sricharan-varanasi sricharan-varanasi changed the title fix : Performance optimization with targeted sync (M2-10426) fix : Performance optimization with targeted sync (M2-10426, M2-10465) Feb 23, 2026
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