[CP Staging] Revert "[No QA] Fix leader-election deadlock in ActiveClientManager (SequentialQueue unable to flush)"#95718
Conversation
…SequentialQueue unable to flush)"
|
🚧 grgia has triggered a test Expensify/App build. You can view the workflow run here. |
|
@pecanoro added the team from offending PR, no worries |
Codecov Report❌ Looks like you've decreased code coverage for some files. Please write tests to increase, or at least maintain, the existing level of code coverage. See our documentation here for how to interpret this table.
|
|
🚧 grgia has triggered a test Expensify/App build. You can view the workflow run here. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: fcd33c590d
ℹ️ About Codex in GitHub
Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".
| if (removed) { | ||
| setActiveClients(activeClients); |
There was a problem hiding this comment.
Re-register a live client after ACTIVE_CLIENTS is cleared
When a live Onyx reset path that does not preserve ONYXKEYS.ACTIVE_CLIENTS runs (for example clearOnyxAndResetApp()/the 2FA clear path using KEYS_TO_PRESERVE), this callback now accepts the incoming empty or stale list and only writes back when trimming. That leaves every surviving tab without its own GUID in activeClients, so isClientTheLeader() returns false and SequentialQueue.flush() takes the follower early return; queued writes such as the OpenApp issued immediately after the reset are persisted but never sent until a later app-state transition or refresh calls init() again.
Useful? React with 👍 / 👎.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
|
tested, confirmed fix |
|
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
…ader-election-deadlock [CP Staging] Revert "[No QA] Fix leader-election deadlock in ActiveClientManager (SequentialQueue unable to flush)" (cherry picked from commit b1e92e9) (cherry-picked to staging by grgia)
|
🚧 grgia has triggered a test Expensify/App build. You can view the workflow run here. |
|
🧪🧪 Use the links below to test this adhoc build on Android, iOS, and Web. Happy testing! 🧪🧪
|
|
🚀 Cherry-picked to staging by https://github.com/grgia in version: 9.4.32-1 🚀
|
|
🤖 No help-site changes required. I reviewed the changes in this PR against
None of these touch a documented, user-facing feature, setting, tab, or button. The help site ( @grgia, there's no linked help site PR to review here since no documentation changes were required. If you believe this revert does affect a user-facing behavior that's documented, let me know and I'll open one. |
|
🚀 Cherry-picked to staging by https://github.com/grgia in version: 9.4.32-1 🚀
|
|
🤖 No help site changes required. I reviewed the changes in this PR. This is a revert of an internal leader-election fix in
These are purely internal plumbing changes (cross-tab leader election / persisted request queue) with no user-facing feature, setting, or UI behavior change. Nothing here corresponds to any article under @grgia, if you believe there's a customer-facing behavior change I've missed that should be documented, let me know and I'll draft the help site update. |
|
🚀 Deployed to production by https://github.com/grgia in version: 9.4.32-3 🚀
Bundle Size Analysis (Sentry): |
|
🚀 Cherry-picked to staging by https://github.com/grgia in version: 9.4.33-0 🚀
|
|
🤖 No help site changes required. I reviewed the changes in this PR against the help site files under Why: This PR reverts an internal, client-side fix — it has no customer-facing behavior to document. The three changed files are all internal:
The help site ( Since no docs changes are required, no draft help site PR was created — there's nothing to mark |
|
🚀 Deployed to production by https://github.com/lakchote in version: 9.4.33-8 🚀
Bundle Size Analysis (Sentry): |
Reverts #95148
$ #95705