App icon indicating copy to clipboard operation
App copied to clipboard

[Due for payment 2026-11-14] [$175] A Copilot’s approval stays stuck in the app’s request queue and never reaches the server. The Approve button still disappears.

Open m-natarajan opened this issue 1 month ago • 26 comments

If you haven’t already, check out our contributing guidelines for onboarding. To join our Slack channel, fill out this form.


Version Number: 9.5.18-1 Reproducible in staging?: Needs reproduction Reproducible in production?: Needs Reproduction If this was caught during regression testing, add the test name, ID and link from BrowserStack: Email or phone of affected tester (no customers): Logs: https://stackoverflow.com/c/expensify/questions/4856 Expensify/Expensify Issue URL: Issue reported by: @greg-schroeder Slack conversation (hyperlinked to channel name): #Expensify Bugs

Action Performed:

  1. Copilot into the final approver's account with full access.
  2. Open a Processing report that's waiting on that account for final approval.
  3. Click Approve.

Expected Result:

The approval request reaches the server. If it fails for any reason, the app should roll back the local approval state and show an error so the user can retry.

Actual Result:

  • The app approves the report locally/optimistically and hides the Approve button, as if the action succeeded.
  • The approval request never reaches the server — no error is shown to the user.
  • The report remains in Processing status on the server side.
  • The user reopened the report 9 times, with the same result each time, then put the report on hold with the comment "Not able to approve."
  • A second Copilot later opened the same report, saw the Approve button (correctly, since the server never received the first approval), and approved it successfully.

Workaround:

Unknown

Platforms:

Select the officially supported platforms where the issue was reproduced:

  • [ ] Android: App
  • [ ] Android: mWeb Chrome
  • [ ] iOS: App
  • [ ] iOS: mWeb Safari
  • [ ] iOS: mWeb Chrome
  • [x] Windows: Chrome
  • [x] MacOS: Chrome / Safari

Screenshots/Videos

The video and affected account details are in Slack thread

View all open jobs on GitHub

Upwork Automation - Do Not Edit
Issue OwnerCurrent Issue Owner: @mallenexpensify

m-natarajan avatar Oct 27 '26 20:10 m-natarajan

⚠️ Preliminary analysis (low confidence): treat this as a starting point, not a conclusion.

I think the Approve request was saved to the shared request queue, but the browser tab the Copilot used never sent it. Nothing in this flow is specific to Copilot. Clicking Approve applies the optimistic data and adds the request to the queue in the same call (ReportWorkflow.ts:511). So if the button disappeared, the request was queued.

There are two likely ways it got stuck without an error:

  1. The tab was not the "leader" tab. On web, only one tab sends the shared queue. Every other tab returns early, logs only Unable to flush. Client is not the leader., and shows no error (SequentialQueue.ts:662-672). The leader is simply the last tab that loaded (ActiveClientManager/index.ts:60-75). If that tab is discarded by Chrome Memory Saver, crashes, or is frozen in the background, it may never get removed from the list. Then no tab sends the request. Copilots often keep several tabs open, and opening the report again does not re-register the tab, so the problem would survive all 9 attempts.
  2. An earlier request is stuck at the front of the queue. isSequentialQueueRunning stays true and every later request waits behind it. HttpUtils has no fetch timeout, so one request that never returns can block everything until the page reloads.

I ruled out these explanations:

  • The Copilot access check. It only blocks Copilots with submit-only access, and it shows a modal instead of hiding the button.
  • An expired Copilot session (407). That path clears the queue but also returns the user to their own account, which the report doesn't mention.
  • A paused queue. A watchdog unpauses it within about 2 minutes.

What I couldn't verify: I had no logs or account details, because they're in the Slack thread. To confirm, check the Copilot's client logs around the Approve clicks for:

  • [API] Called API write with ApproveMoneyRequest
  • [SequentialQueue] Unable to flush. Client is not the leader. (this points to cause 1)
  • Queue is already running, or client logs that stop entirely (this points to cause 2)
  • [PersistedRequests] Onyx.clear dropped queued requests (this points to an expired Copilot session)

It would also help to know whether the Copilot had more than one Expensify tab open, and whether "reopened" included full page reloads. A full reload should clear both causes.


Next Steps: Reply with @MelvinBot <your feedback> to refine this analysis.


view run

MelvinBot avatar Oct 27 '26 20:10 MelvinBot

Triggered auto assignment to Contributor-plus team member for initial proposal review - @FitseTLT (External)

melvin-bot[bot] avatar Oct 27 '26 20:10 melvin-bot[bot]

Job added to Upwork: https://www.upwork.com/jobs/~022115180516038540997

melvin-bot[bot] avatar Oct 27 '26 20:10 melvin-bot[bot]

Proposal

Please re-state the problem that we are trying to solve in this issue.

A full-access Copilot reportedly approves a report locally, causing the Approve button to disappear, while the server retains the report in Processing. The client must eventually deliver the queued approval or handle a definitive failure with rollback and a visible, retryable error.

Audit verdict: insufficient evidence for a production fix. The supplied report establishes symptoms, but does not establish the failing code path.

What is the root cause of that problem?

The root cause is unverified. No request trace, persisted queue snapshot, reproducible test, or affected-release source was supplied. The linked private logs and Slack thread were inaccessible during this review.

The distinction matters:

  • A hidden Approve button establishes local state behavior; it does not identify why transmission stopped.
  • No matching server log does not, by itself, prove that the request remains queued.
  • Another Copilot succeeding does not isolate an authentication defect. Queue contents, connectivity, tab leadership, and session state could differ.
  • Nine report openings are not evidence of nine approval submissions or queue retries.

Current upstream src/libs/Network/SequentialQueue.ts contains flush guards at lines 560–574 for paused, offline, and already-running queues. It also contains pause recovery logic at lines 182–219. These are investigation points, not an established root cause, and their correspondence to version 9.5.18-1 remains unverified.

There is no demonstrated security vulnerability or basis for a CVSS score.

What changes do you think we should make in order to solve the problem?

No TypeScript diff is defensible yet. Providing affected-release line numbers or calling a speculative patch production-grade would fabricate precision.

The minimum evidence needed to select a surgical fix is:

  1. Pin the commit corresponding to 9.5.18-1.
  2. Capture the approval command entering the queue, its request identifier, preceding queued command, and relevant queue state.
  3. Correlate enqueue, dispatch, retry, and completion events with network capture and server receipt logs.
  4. Reproduce the specific stall in an automated test that fails before the patch.
  5. Change the smallest responsible branch and verify both successful delivery and terminal failure handling.

Do not roll back merely because a request remains pending: a retained approval could later execute after the UI invites another submission. Any terminal-failure fix must settle the queued request consistently with its local rollback.

What alternative solutions did you explore? (Optional)

No MelvinBot proposal was supplied, so there is nothing concrete to refute.

Reject these unsupported approaches:

  • Force-unpause the queue: bypasses the reason processing was suspended.
  • Bypass the queue for approvals: risks violating request ordering.
  • Add a generic timeout: does not establish whether the server accepted the request.
  • Only restore the button: leaves the underlying queued mutation unresolved.

Duplicate and existing-fix status remain unverified.

What automated tests can you add to prevent this from re-occurring?

The following are proposed Jest scenarios, not implemented or executed tests:

  • dispatches a full-access Copilot approval after the reproduced queue blocker clears: reproduce the proven blocker, enqueue approval, release it, and assert one dispatch with the expected delegated identity.
  • restores approval eligibility after a definitive approval rejection: assert rollback, visible error, cleared pending state, and safe retry.
  • retains an offline approval and dispatches it after reconnect: assert no premature terminal rollback and one eventual dispatch.
  • does not dispatch a terminally failed approval after retry: assert the original queued mutation cannot execute afterward.

The decisive regression test must reproduce the actual incident mechanism; testing an arbitrarily paused queue is insufficient.

Contributor details
Your Expensify account email: [email protected]
Upwork Profile Link: https://www.upwork.com/freelancers/~01b60d704ba377be83

camesenin avatar Oct 27 '26 20:10 camesenin

✅ Contributor details stored successfully. Thank you for contributing to Expensify!

melvin-bot[bot] avatar Oct 27 '26 20:10 melvin-bot[bot]

Proposal

Please re-state the problem that we are trying to solve in this issue.

When a Copilot with full access opens a report in Processing status and clicks Approve, the app optimistically marks the report as approved and removes the Approve button, but the request remains stuck in persistedRequests and never reaches the server. No error is shown, and the report remains in Processing on the server.


What is the root cause of that problem?

The failure is caused by a multi-tab leader election deadlock in ActiveClientManager and missing client synchronization during delegate transitions:

  1. Dead Leader Deadlock (ActiveClientManager):

    • In src/libs/Network/SequentialQueue.ts:662–672, SequentialQueue.flush() enforces leader-only queue execution to prevent duplicate requests across tabs:
      if (!isClientTheLeader()) {
          Log.info('[SequentialQueue] Unable to flush. Client is not the leader.', false, {
              persistedRequestsLength,
              hasOngoingRequest: !!currentOngoingRequest,
          });
          resolveIsReadyPromise?.();
          return;
      }
      
    • In src/libs/ActiveClientManager/index.ts:60–75, leader status is determined strictly by checking if the tab's clientID is the last element in activeClients:
      const lastActiveClient = activeClients.length && activeClients.at(-1);
      return lastActiveClient === clientID;
      
    • ActiveClientManager only registers/appends a tab once during init() on page load. It relies on the beforeunload event (window.addEventListener('beforeunload', cleanUpClientId)) to remove inactive clients.
    • The Dead Leader Problem: When Chrome Memory Saver discards/freezes background tabs, or when a user closes/hibernates an older leader tab, beforeunload does not fire. As a result, the dead tab's clientID remains permanently at activeClients.at(-1).
    • Any surviving tab that the user actively interacts with (such as the Copilot tab approving the report) is treated as a follower (isClientTheLeader() === false). It saves the ApproveMoneyRequest optimistically to ONYXKEYS.PERSISTED_REQUESTS, hides the Approve button in the UI, and returns early from flush(). Because the recorded leader tab is dead or hibernated, the queue is never flushed, leaving the request permanently stranded.
  2. ACTIVE_CLIENTS Wiped on Copilot Connect Transition:

    • In src/libs/actions/Delegate.ts:34–60, clearOnyxForDelegateTransition() invokes clearOnyxAndSeedFullReconnect(KEYS_TO_PRESERVE_DELEGATE_ACCESS).
    • While src/libs/actions/SignInRedirect.ts:67 explicitly preserves ONYXKEYS.ACTIVE_CLIENTS during session sign-outs to maintain multi-tab coordination, KEYS_TO_PRESERVE_DELEGATE_ACCESS omits ONYXKEYS.ACTIVE_CLIENTS.
    • When entering Copilot delegate mode, ACTIVE_CLIENTS is cleared from Onyx. In ActiveClientManager/index.ts:33, the callback drops null values (if (!val) return), causing active client state across tabs to desynchronize or orphan the current tab.
  3. No Active-Tab Focus Promotion:

    • There is no listener on focus or visibilitychange. Even when a user actively clicks and interacts within a tab, ActiveClientManager never promotes the active, foregrounded tab to the leader position.

What changes do you think we should make in order to solve the problem?

1. Promote Active Foreground Tab to Leader on Focus / Visibility Change

In src/libs/ActiveClientManager/index.ts, promote the currently focused tab to the leader position so that the tab the user is actively working in is always capable of flushing its sequential write requests:

const promoteToLeader = () => {
    if (isClientTheLeader()) {
        return;
    }
    activeClients = activeClients.filter((id) => id !== clientID);
    activeClients.push(clientID);
    setActiveClients(activeClients);
};

const init: Init = () => {
    removeBeforeUnloadListener();
    activeClients = activeClients.filter((id) => id !== clientID);
    activeClients.push(clientID);
    setActiveClients(activeClients).then(resolveSavedSelfPromise);

    beforeunloadListenerAdded = true;
    window.addEventListener('beforeunload', () => {
        cleanUpClientId();
        setModalVisibility(false);
    });

    // Ensure the tab that the user is actively interacting with is the queue leader
    window.addEventListener('focus', promoteToLeader);
    document.addEventListener('visibilitychange', () => {
        if (document.visibilityState === 'visible') {
            promoteToLeader();
        }
    });
};

2. Preserve ACTIVE_CLIENTS Across Delegate Access Transitions

In src/libs/actions/Delegate.ts, add ONYXKEYS.ACTIVE_CLIENTS to KEYS_TO_PRESERVE_DELEGATE_ACCESS (matching SignInRedirect.ts:67):

const KEYS_TO_PRESERVE_DELEGATE_ACCESS = [
    ONYXKEYS.NVP_TRY_FOCUS_MODE,
    ONYXKEYS.PREFERRED_THEME,
    ONYXKEYS.NVP_PREFERRED_LOCALE,
    ONYXKEYS.RAM_ONLY_ARE_TRANSLATIONS_LOADING,
    ONYXKEYS.SESSION,
    ONYXKEYS.STASHED_SESSION,
    ONYXKEYS.HAS_LOADED_APP,
    ONYXKEYS.STASHED_CREDENTIALS,
    ONYXKEYS.PENDING_SELF_COPILOT_REMOVAL,
    ONYXKEYS.HYBRID_APP,
    ONYXKEYS.ACTIVE_CLIENTS, // <-- Add this to preserve tab leader state during delegate transitions
    ...

3. Fallback Flush Trigger in SequentialQueue

In src/libs/Network/SequentialQueue.ts, when a write is queued on a follower tab, if the leader does not process the request within a reasonable grace period (or if the tab is focused), attempt promotion or trigger a leader health check rather than permanently stranding the request.


What alternative solutions did you explore? (Optional)

Use the Web standard Web Locks API (navigator.locks.request('expensify_sequential_queue_leader', ...)), which automatically releases the lock when a browser tab closes, crashes, or is discarded by Chrome Memory Saver without relying on beforeunload. Promoting on focus and preserving ACTIVE_CLIENTS in KEYS_TO_PRESERVE_DELEGATE_ACCESS integrates cleanly with the existing ActiveClientManager architecture with minimal footprint.


What automated tests can you add to prevent this from re-occurring?

  1. Unit Test for ActiveClientManager:
    • Test that firing a focus event or visibilitychange event on a follower tab re-orders activeClients and promotes the tab to leader.
  2. Delegate Transition Test in DelegateTest.ts:
    • Verify that calling clearOnyxForDelegateTransition() preserves ONYXKEYS.ACTIVE_CLIENTS and does not wipe the active client list.
  3. SequentialQueue Leader Verification Test:
    • Verify that queued write requests are flushed immediately when a tab transitions from follower to focused leader.

Contributor details Your Expensify account email: [email protected] Upwork Profile Link: https://www.upwork.com/freelancers/~01f7d7991785f2ee01

apoorv-xs avatar Oct 27 '26 23:10 apoorv-xs

✅ Contributor details stored successfully. Thank you for contributing to Expensify!

melvin-bot[bot] avatar Oct 27 '26 23:10 melvin-bot[bot]

Proposal

Please re-state the problem that we are trying to solve in this issue.

When a full-access Copilot opens a report in Processing status and clicks Approve, the app applies the optimistic Onyx update and hides the Approve button locally, but the ApproveMoneyRequest write stays stuck in ONYXKEYS.PERSISTED_REQUESTS and is never sent to the server, with no error shown to the user.

What is the root cause of that problem?

Clicking Approve calls approveMoneyRequest, which applies the optimistic Onyx state (hiding the Approve button) and enqueues WRITE_COMMANDS.APPROVE_MONEY_REQUEST into ONYXKEYS.PERSISTED_REQUESTS, then calls SequentialQueue.flush().

The request gets stranded in ONYXKEYS.PERSISTED_REQUESTS without ever reaching the server due to three compounding flaws in multi-tab leader election (ActiveClientManager) and Copilot delegate transitions (Delegate.ts):

  1. ONYXKEYS.ACTIVE_CLIENTS is wiped during Copilot delegate transitions (src/libs/actions/Delegate.ts):

    • In src/libs/actions/Delegate.ts, clearOnyxForDelegateTransition() calls clearOnyxAndSeedFullReconnect(KEYS_TO_PRESERVE_DELEGATE_ACCESS).
    • Unlike src/libs/actions/SignInRedirect.ts (which preserves ONYXKEYS.ACTIVE_CLIENTS), KEYS_TO_PRESERVE_DELEGATE_ACCESS omits ONYXKEYS.ACTIVE_CLIENTS.
    • When connecting as a Copilot (Delegate.connect), Onyx.clear wipes ONYXKEYS.ACTIVE_CLIENTS in storage. Any subsequent tab initialization or background tab state overwrites activeClients without the Copilot tab's clientID at the end of the array.
  2. Dead-leader deadlock in ActiveClientManager (src/libs/ActiveClientManager/index.ts):

    • In src/libs/Network/SequentialQueue.ts, flush() immediately exits if !isClientTheLeader():
      if (!isClientTheLeader()) {
          Log.info('[SequentialQueue] Unable to flush. Client is not the leader.', false, {
              persistedRequestsLength,
              hasOngoingRequest: !!currentOngoingRequest,
          });
          resolveIsReadyPromise?.();
          return;
      }
      
    • In src/libs/ActiveClientManager/index.ts, leader status is strictly activeClients.at(-1) === clientID, and a tab only registers itself once inside init() and only removes itself on window.beforeunload.
    • When another tab was opened later and then frozen/discarded by Chrome Memory Saver (or after ACTIVE_CLIENTS desynchronizes during Copilot connect), beforeunload never fires. The active foreground tab where the Copilot clicks Approve has isClientTheLeader() === false, so every flush() call silently bails out across all 9 attempts to reopen the report.
  3. SequentialQueue never flushes when a tab is promoted to leader (src/libs/Network/SequentialQueue.ts):

    • In src/libs/Network/SequentialQueue.ts, flush is only registered on onPersistedRequestsInitialization(flush) and onPersistedRequestsCrossTabMerge(flush).
    • Even when ONYXKEYS.ACTIVE_CLIENTS changes and a follower tab becomes the leader (either because the previous leader closed or the current tab was promoted on focus), nothing triggers SequentialQueue.flush(). Any request already queued in ONYXKEYS.PERSISTED_REQUESTS remains stuck until another write is enqueued.

What changes do you think we should make in order to solve the problem?

  1. Preserve ONYXKEYS.ACTIVE_CLIENTS in src/libs/actions/Delegate.ts (lines 34–64):

    • Add ONYXKEYS.ACTIVE_CLIENTS to KEYS_TO_PRESERVE_DELEGATE_ACCESS (matching SignInRedirect.ts:67) so clearOnyxForDelegateTransition() never wipes active client registration during Copilot connect/disconnect transitions.
  2. Promote active foreground tab to leader and notify listeners on leader promotion (src/libs/ActiveClientManager/index.ts & types.ts):

    • Add a leader-promotion listener registry (onLeaderPromoted(callback: () => void)) and track transitions from follower to leader inside the ONYXKEYS.ACTIVE_CLIENTS callback and when promoting the current tab.
    • Add focus and visibilitychange (document.visibilityState === 'visible') listeners in init() that promote the active foreground tab (clientID) to the end of activeClients (when !isClientTheLeader()) and invoke onLeaderPromoted callbacks:
      const promoteToLeader = () => {
          if (isClientTheLeader()) {
              return;
          }
          activeClients = activeClients.filter((id) => id !== clientID);
          activeClients.push(clientID);
          setActiveClients(activeClients).then(() => {
              notifyLeaderPromoted();
          });
      };
      
    • In the ONYXKEYS.ACTIVE_CLIENTS subscription callback (lines 33–53), check const wasLeader = isClientTheLeader(); before updating activeClients = val;, and if !wasLeader && isClientTheLeader(), call notifyLeaderPromoted().
  3. Flush SequentialQueue when promoted to leader (src/libs/Network/SequentialQueue.ts):

    • Guard against mid-flight duplicate execution: if !getPersistedOngoingRequest(), register onLeaderPromoted(() => flush()) alongside onPersistedRequestsInitialization(flush) and onPersistedRequestsCrossTabMerge(flush) (around line 805) so any pending requests in ONYXKEYS.PERSISTED_REQUESTS (such as ApproveMoneyRequest) are flushed immediately as soon as the tab becomes the leader.

What alternative solutions did you explore? (Optional)

  • Only adding focus/visibilitychange promotion in ActiveClientManager without onLeaderPromoted(flush) in SequentialQueue: Insufficient because if a request is already in ONYXKEYS.PERSISTED_REQUESTS when the tab regains focus or when the old leader tab closes, SequentialQueue does not observe ONYXKEYS.ACTIVE_CLIENTS and will not flush the stranded queue until a new write occurs.

Enes2553 avatar Oct 28 '26 17:10 Enes2553

I'm looking into this as an expert contributor from Callstack.

adhorodyski avatar Oct 28 '26 17:10 adhorodyski

Quick update, I should have 2 PRs for this on tomorrow. One with the fix I'm wrapping up validating, and another one for improved logs so we can catch these kind of issues more easily in the future.

adhorodyski avatar Oct 29 '26 23:10 adhorodyski

Just opened https://github.com/Expensify/App/pull/105420 for review. I also want to fold in https://github.com/Expensify/App/pull/105372 with better logs around this feature (polishing it so its also opened asap).

adhorodyski avatar Oct 30 '26 17:10 adhorodyski

Thx reviewing

FitseTLT avatar Oct 30 '26 18:10 FitseTLT

Opened https://github.com/Expensify/App/pull/105372 too.

adhorodyski avatar Oct 30 '26 20:10 adhorodyski

Triggered auto assignment to @blimpich, see https://stackoverflow.com/c/expensify/questions/7972 for more details.

melvin-bot[bot] avatar Nov 03 '26 21:11 melvin-bot[bot]

Proposal

Please re-state the problem that we are trying to solve in this issue.

When a full-access Copilot switches into a delegator's account, opens a report in Processing status, and clicks Approve, the app applies the optimistic Onyx update and hides the Approve button locally, but the ApproveMoneyRequest API command stays stuck in ONYXKEYS.PERSISTED_REQUESTS and is never flushed to the server.

What is the root cause of that problem?

  1. Clicking Approve calls approveMoneyRequest (src/libs/actions/IOU/ReportWorkflow.ts line 511), which writes optimistic Onyx data immediately (hiding the Approve button) and enqueues ApproveMoneyRequest into the SequentialQueue (src/libs/Network/SequentialQueue.ts).
  2. In src/libs/Network/SequentialQueue.ts (lines 662–672), flush() checks ActiveClientManager.isClientTheLeader() and aborts silently (Unable to flush. Client is not the leader.) if the current tab is not recognized as the active leader client.
  3. During a Copilot account switch (connect / disconnect in src/libs/actions/Delegate.ts), Onyx.clear resets Onyx keys (including ONYXKEYS.ACTIVE_CLIENTS), or a stale tab ID from the pre-switch session remains in ACTIVE_CLIENTS without ActiveClientManager.init() re-registering and claiming leadership for the current tab after the Onyx clear. As a result, isClientTheLeader() returns false (or isReady() stays unresolved), and SequentialQueue.flush() never sends any queued write requests made during the Copilot session.

What changes do you think we should make in order to solve the problem?

  1. In src/libs/actions/Delegate.ts (inside both connect and disconnect), preserve ONYXKEYS.ACTIVE_CLIENTS in the keysToPreserve array passed to Onyx.clear(...) (matching how Session/index.ts preserves client state when appropriate) and call ActiveClientManager.init() after the delegate transition completes so the active tab maintains leadership.
  2. In src/libs/ActiveClientManager/index.ts, ensure that if activeClients in Onyx becomes empty or loses the current clientID while the tab is visible/focused, the active tab re-registers its clientID and triggers SequentialQueue.flush().

What alternative solutions did you explore? (Optional)

We considered bypassing isClientTheLeader() in SequentialQueue.flush() when in Copilot mode, but leader election prevents duplicate writes when multiple tabs are open; preserving and re-initializing ActiveClientManager across Onyx.clear in Delegate.ts fixes the root cause for all queued write operations during a Copilot session.

jeffrey-graham avatar Nov 07 '26 08:11 jeffrey-graham

📣 @jeffrey-graham! 📣 Hey, it seems we don’t have your contributor details yet! You'll only have to do this once, and this is how we'll hire you on Upwork. Please follow these steps:

  1. Make sure you've read and understood the contributing guidelines.
  2. Get the email address used to login to your Expensify account. If you don't already have an Expensify account, create one here. If you have multiple accounts (e.g. one for testing), please use your main account email.
  3. Get the link to your Upwork profile. It's necessary because we only pay via Upwork. You can access it by logging in, and then clicking on your name. It'll look like this. If you don't already have an account, sign up for one here.
  4. Copy the format below and paste it in a comment on this issue. Replace the placeholder text with your actual details. Screen Shot 2022-11-16 at 4 42 54 PM Format:
Contributor details
Your Expensify account email: <REPLACE EMAIL HERE>
Upwork Profile Link: <REPLACE LINK HERE>

melvin-bot[bot] avatar Nov 07 '26 08:11 melvin-bot[bot]

@FitseTLT

The solution for this issue has been :rocket: deployed to production :rocket: in version 9.5.33-1 and is now subject to a 7-day regression period :calendar:. Here is the list of pull requests that resolve this issue:

  • https://github.com/Expensify/App/pull/105372
  • https://github.com/Expensify/App/pull/105420

If no regressions arise, payment will be issued on 2026-11-14. :confetti_ball:

The following checklist (instructions) will need to be completed before the issue can be closed. Please copy/paste the Contributor+ Checklist from here into a new comment on this GH and complete it. If you have the K2 extension, you can simply click: [this button]. If no checklist is needed for this issue, you can click: [no checklist button]

melvin-bot[bot] avatar Nov 07 '26 20:11 melvin-bot[bot]

BugZero Checklist:

  • [x] [Contributor] The offending PR and associated issue have been commented on, pointing out the bug it caused and why, so the author and reviewers can learn from the mistake.

    Link to the comment on the PR: https://github.com/Expensify/App/pull/85920/changes#r4512396290 Link to the comment on the Issue: N/A

  • [x] [Contributor] If the regression was CRITICAL (e.g. interrupts a core flow) A discussion in #expensify-open-source has been started about whether any other steps should be taken (e.g. updating the PR review checklist) in order to catch this type of bug sooner.

    N/A — it only happens on web, with two tabs open, while the leader's queue is paused and holding unsent writes.

    Link to discussion: N/A

  • [x] [Contributor] If it was decided to create a regression test for the bug, please propose the regression test steps using the template below to ensure the same bug will not reach production again.

  • [x] [BugZero Assignee] Create a GH issue for creating/updating the regression test once above steps have been agreed upon.

    Link to issue: https://github.com/Expensify/Expensify/issues/708659

Regression Test Proposal

Precondition:

  • Web, signed in as an approver with reports waiting for your approval.

Test:

  1. Open the app in a second tab. In one tab, open a report waiting for your approval and click Approve.
  2. Reload both tabs. Verify the report still shows as approved in both tabs.
  3. Go offline on one of the tabs.
  4. Approve a report in the same tab, then open a report in the other tab.
  5. Go back online. Verify the approval reaches the server and stays approved after both tabs reload.

Do we agree 👍 or 👎

Zapier Logs Run ID: 00040eee-e920-aa19-cf9d-9bd31a28eb34

FitseTLT avatar Nov 09 '26 11:11 FitseTLT

Triggered auto assignment to @mallenexpensify (Awaiting Payment)

melvin-bot[bot] avatar Nov 13 '26 21:11 melvin-bot[bot]

Payment Summary

Resolving PRs:

  • https://github.com/Expensify/App/pull/105372

  • https://github.com/Expensify/App/pull/105420

  • Contributor: @VickyStash does not require payment (Contractor)

  • Reviewer: @FitseTLT owed $175 via NewDot

  • Contributor: @adhorodyski does not require payment (Contractor)

BugZero Checklist (@mallenexpensify)

  • [ ] I have confirmed assignees, roles, and Upwork contracts look correct
  • [ ] I have paid out Upwork contracts / manual NewDot requests
  • [ ] [BugZero Assignee] I have created a GH issue for creating/updating the regression test once above steps have been agreed upon

melvin-bot[bot] avatar Nov 13 '26 21:11 melvin-bot[bot]