Skip to content

[Due for payment 2025-07-25] [$250] Copilot - Error is shown after holding expense with a "Limited" Copilot account #65133

Closed

Description

@nlemma

If you haven’t already, check out our contributing guidelines for onboarding and email contributors@expensify.com to request to join our Slack channel!


Version Number: v9.1.72-0
Reproducible in staging?: Yes
Reproducible in production?: Yes
If this was caught during regression testing, add the test name, ID and link from TestRail: #64020
Email or phone of affected tester (no customers): applausetester+bg@applause.expensifail.com
Issue reported by: Applause Internal Team
Device used: macOS/chrome
App Component: Other

Action Performed:

Preconditions:
User A has unpaid expenses
User A has given a "Limited" Copilot access to User B

As User B

  1. Log in with a "Limited" Copilot account
  2. Switch account to user A
  3. Go to any unpaid expense and hold the expense

Expected Result:

"Not so fast" message is displayed indicating that you are not able to perform this action before holding the expense

Actual Result:

Error is shown after finishing the Hold Expense flow

Workaround:

Unknown

Platforms:

  • Android: App
  • Android: mWeb Chrome
  • iOS: App
  • iOS: mWeb Safari
  • iOS: mWeb Chrome
  • Windows: Chrome
  • MacOS: Chrome / Safari
  • MacOS: Desktop

Screenshots/Videos

Bug6872120_1751085992589.Screen_Recording_2025-06-28_at_7.19.43_in_the_morning.mp4

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~021940340724829893360
  • Upwork Job ID: 1940340724829893360
  • Last Price Increase: 2025-07-02
  • Automatic offers:
    • nkdengineer | Contributor | 107906914
Issue OwnerCurrent Issue Owner: @kadiealexander

Activity

  1. added
    Daily
    Bug
    on Jun 28, 2025
  2. melvin-bot commented on Jun 28, 2025

    @melvin-bot

    Triggered auto assignment to @kadiealexander (Bug), see https://stackoverflow.com/c/expensify/questions/14418 for more details. Please add this bug to a GH project, as outlined in the SO.

  3. nkdengineer commented on Jun 28, 2025

    @nkdengineer
    Contributor

    Proposal

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

    Error is shown after finishing the Hold Expense flow

    What is the root cause of that problem?

    We don't show the showDelegateNoAccessModal when holding expense with a "Limited" Copilot account

    onSelected: () => {
    if (!requestParentReportAction) {
    throw new Error('Parent action does not exist');
    }
    changeMoneyRequestHoldStatus(requestParentReportAction);
    },
    },

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

    We should call showDelegateNoAccessModal function to show the modal like we did with the unapprove action here

        if (isDelegateAccessRestricted) {
            showDelegateNoAccessModal();
            return;
        }
    

    onSelected: () => {
    if (!requestParentReportAction) {
    throw new Error('Parent action does not exist');
    }
    changeMoneyRequestHoldStatus(requestParentReportAction);
    },
    },

    onSelected: () => {
    if (isDelegateAccessRestricted) {
    showDelegateNoAccessModal();
    return;
    }

    Note: We should do the same with the places where there is an action hold like here... and other actions that need to show the modal.

    What specific scenarios should we cover in automated tests to prevent reintroducing this issue in the future?

    None

    What alternative solutions did you explore? (Optional)

    Reminder: Please use plain English, be brief and avoid jargon. Feel free to use images, charts or pseudo-code if necessary. Do not post large multi-line diffs or write walls of text. Do not create PRs unless you have been hired for this job.

  4. melvin-bot commented on Jul 1, 2025

    @melvin-bot

    @kadiealexander Uh oh! This issue is overdue by 2 days. Don't forget to update your issues!

  5. added
    External
    on Jul 2, 2025
  6. changed the title [-]Copilot - Error is shown after holding expense with a "Limited" Copilot account[/-] [+][$250] Copilot - Error is shown after holding expense with a "Limited" Copilot account[/+] on Jul 2, 2025
  7. melvin-bot commented on Jul 2, 2025

    @melvin-bot
  8. added
    Help Wanted
    on Jul 2, 2025
  9. melvin-bot commented on Jul 2, 2025

    @melvin-bot

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

  10. 15 remaining items

  11. melvin-bot commented on Jul 18, 2025

    @melvin-bot

    Reviewing label has been removed, please complete the "BugZero Checklist".

  12. removed
    Reviewing
    on Jul 18, 2025
  13. melvin-bot commented on Jul 18, 2025

    @melvin-bot

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

    If no regressions arise, payment will be issued on 2025-07-25. 🎊

    For reference, here are some details about the assignees on this issue:

  14. melvin-bot commented on Jul 18, 2025

    @melvin-bot

    @eVoloshchak @kadiealexander The PR fixing this issue has been merged! The following checklist (instructions) will need to be completed before the issue can be closed. Please copy/paste the BugZero 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]

  15. added
    Daily
    and removed
    Weekly
    on Jul 24, 2025
  16. kadiealexander commented on Jul 25, 2025

    @kadiealexander
    Contributor

    Payments needed:

    @eVoloshchak could you please complete the checklist?

  17. eVoloshchak commented on Jul 25, 2025

    @eVoloshchak
    Contributor

    BugZero Checklist:

    • [Contributor] Classify the bug:
    Bug classification

    Source of bug:

    • 1a. Result of the original design (eg. a case wasn't considered)
    • 1b. Mistake during implementation
    • 1c. Backend bug
    • 1z. Other:

    Where bug was reported:

    • 2a. Reported on production (eg. bug slipped through the normal regression and PR testing process on staging)
    • 2b. Reported on staging (eg. found during regression or PR testing)
    • 2d. Reported on a PR
    • 2z. Other:

    Who reported the bug:

    • 3a. Expensify user
    • 3b. Expensify employee
    • 3c. Contributor
    • 3d. QA
    • 3z. Other:
    • [Contributor] The offending PR has been commented on, pointing out the bug it caused and why, so the author and reviewers can learn from the mistake.

      Link to comment: there isn't an offending PR, this functionality (error handling) wasn't implemented initially (when Copilot functionality was added gradually)

    • [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.

      Link to discussion: regression wasn't critical

    • [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.

    Regression Test Proposal Template

    Regression Test Proposal

    Precondition:

    • User A has unpaid expenses
    • User A has given a "Limited" Copilot access to User B

    Test:

    1. Log in with a "Limited" Copilot account
    2. Switch account to user A
    3. Go to any unpaid expense and hold the expense
    4. Verify that: "Not so fast" message is displayed indicating that you are not able to perform this action before holding the expense

    Do we agree 👍 or 👎

  18. melvin-bot commented on Jul 28, 2025

    @melvin-bot

    @kadiealexander Uh oh! This issue is overdue by 2 days. Don't forget to update your issues!

  19. kadiealexander commented on Jul 29, 2025

    @kadiealexander
    Contributor

    Payment summary here.

  20. moved this from Bugs and Follow Up Issues to Done in #expensify-bugson Jul 29, 2025
  21. garrettmknight commented on Dec 18, 2025

    @garrettmknight
    Contributor

    $250 approved for @eVoloshchak

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

Awaiting PaymentBugDailyExternal

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions