You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[$250] Onboarding-Missing actions in 1:1 DM after sent Test receipt switch to Concierge and return to 1:1 DM #65160
BugSomething is broken. Auto assigns a BugZero manager.DailyKSv2ExternalAdded to denote the issue can be worked on by a contributorHelp WantedApply this label when an issue is open to proposals by contributors
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:https://expensify.testrail.io/index.php?/tests/view/6378642&group_by=cases:section_id&group_id=229043&group_order=asc Email or phone of affected tester (no customers): N/A Issue reported by: Applause Internal Team Device used: Windows 10 / Chrome App Component: Left Hand Navigation (LHN)
Action Performed:
Open New Dot and create a new user
Select the purpose "Chat and split expenses with friends"
Click on "Continue"
Enter any names
Click on "Continue"
Enter the boss's email in the Test Drive modal
Click on the Start Test Drive
Click on the Create Test Receipt
Click on the + button in the 1:1 DM
Click on the Concierge chat in the LHN and click on the 1:1 DM
Click on the + button in the 1:1 DM again
Refresh the page
Click on the + button in the 1:1 DM again
Expected Result:
All the actions in the + menu in the 1:1 DM can display normally
Actual Result:
After sending the Test receipt and navigate to the Concierge chat, and returning to 1:1 DM, some options are not displayed in the action menu
changed the title [-]Onboarding-Missing actions in 1:1 DM after sent Test receipt switch to Concierge and return to 1:1 DM[/-][+][$250] Onboarding-Missing actions in 1:1 DM after sent Test receipt switch to Concierge and return to 1:1 DM[/+]on Jul 1, 2025
Please re-state the problem that we are trying to solve in this issue.
After sending the Test receipt and navigate to the Concierge chat, and returning to 1:1 DM, some options are not displayed in the action menu
What is the root cause of that problem?
lastActorDetails is a direct reference to personalDetails?.[lastActorAccountID] from Onyx. In the DM the last action is report preview action, the line lastActorDetails.accountID = lastAction.The' actorAccountID directly mutates the Onyx data, causing the accountID of the current user to be changed to lastAction.actorAccountID, which is the boss.
Then, in this line, otherParticipants becomes an empty array because currentUserPersonalDetails?.accountID is the boss's account ID, as explained above.
Or we can create a clone of personalDetails with cloneDeep before using it in this function.
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)
NA
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.
@nkdengineer Thanks for the proposal. The RCA makes sense and the first solution would be the best way to handle this. The problem is that I just tested the OP issue on both latest dev (main) and latest staging (v9.1.76-0) to verify if it's reproducible and I cannot reproduce it, tried multiple times and there's no issue on my side:
MacOS: Chrome
Android: mWeb Chrome
Screen.Recording.2025-07-03.at.17.52.26.mov
screen-20250703-191107.mp4
🟡 Either I did not follow the steps correctly (100% sure I did, multiple times), or this issue was fixed in the meantime.
Note
I tested on both MacOS: Chrome and Android: mWeb Chrome, not sure if this is only reproducible on Windows 10 / Chrome as the OP mentioned on the device used section. Please let me know if you can consistently reproduce the issue, on what platform and share a video if you don't mind so I can clearly see the steps.
Given that the above-mentioned PR solved this issue (unintentionally), I think we're fine to close this one as fixed or maybe ask QA to confirm the issue was fixed before closing.
Issue was fixed by PR mentioned above in #65160 (comment). @abekkala I think we're fine to close this one as fixed or maybe ask QA to confirm the issue was fixed before closing.
Issue was fixed by PR mentioned above in #65160 (comment). @abekkala I think we're fine to close this one as fixed or maybe ask QA to confirm the issue was fixed before closing.
@abekkala@ikevin127 this issue was created 2 weeks ago. Are we close to approving a proposal? If not, what's blocking us from getting this issue assigned? Don't hesitate to create a thread in #expensify-open-source to align faster in real time. Thanks!
Issue was fixed by PR mentioned above in #65160 (comment). @abekkala I think we're fine to close this one as fixed or maybe ask QA to confirm the issue was fixed before closing.
BugSomething is broken. Auto assigns a BugZero manager.DailyKSv2ExternalAdded to denote the issue can be worked on by a contributorHelp WantedApply this label when an issue is open to proposals by contributors
Activity
melvin-bot commentedon Jun 30, 2025
Triggered auto assignment to @abekkala (
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.[-]Onboarding-Missing actions in 1:1 DM after sent Test receipt switch to Concierge and return to 1:1 DM[/-][+][$250] Onboarding-Missing actions in 1:1 DM after sent Test receipt switch to Concierge and return to 1:1 DM[/+]melvin-bot commentedon Jul 1, 2025
Job added to Upwork: https://www.upwork.com/jobs/~021940132591089571948
melvin-bot commentedon Jul 1, 2025
Triggered auto assignment to Contributor-plus team member for initial proposal review - @ikevin127 (
External)nkdengineer commentedon Jul 2, 2025
Proposal
Please re-state the problem that we are trying to solve in this issue.
After sending the Test receipt and navigate to the Concierge chat, and returning to 1:1 DM, some options are not displayed in the action menu
What is the root cause of that problem?
lastActorDetailsis a direct reference topersonalDetails?.[lastActorAccountID]from Onyx. In the DM the last action is report preview action, the linelastActorDetails.accountID = lastAction.The' actorAccountIDdirectly mutates the Onyx data, causing theaccountIDof the current user to be changed tolastAction.actorAccountID, which is the boss.App/src/libs/SidebarUtils.ts
Lines 630 to 646 in 2846678
When we get the money request option in the DM,
reportParticipantIDsfilters out the current user and has only the bossApp/src/pages/home/report/ReportActionCompose/AttachmentPickerWithMenuItems.tsx
Line 233 in 2846678
Then, in this line,
otherParticipantsbecomes an empty array becausecurrentUserPersonalDetails?.accountIDis the boss's account ID, as explained above.App/src/libs/ReportUtils.ts
Line 8629 in 2846678
As a result,
canRequestMoneyreturns false here, and no money request action is shown in the DM.App/src/libs/ReportUtils.ts
Lines 8526 to 8528 in 2846678
What changes do you think we should make in order to solve the problem?
We should create a new object here instead
App/src/libs/SidebarUtils.ts
Lines 630 to 646 in 2846678
Or we can create a clone of
personalDetailswithcloneDeepbefore using it in this function.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)
NA
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.
ikevin127 commentedon Jul 3, 2025
ikevin127 commentedon Jul 4, 2025
@nkdengineer Thanks for the proposal. The RCA makes sense and the first solution would be the best way to handle this. The problem is that I just tested the OP issue on both latest dev (main) and latest staging (v9.1.76-0) to verify if it's reproducible and I cannot reproduce it, tried multiple times and there's no issue on my side:
Screen.Recording.2025-07-03.at.17.52.26.mov
screen-20250703-191107.mp4
🟡 Either I did not follow the steps correctly (100% sure I did, multiple times), or this issue was fixed in the meantime.
Note
I tested on both MacOS: Chrome and Android: mWeb Chrome, not sure if this is only reproducible on
Windows 10 / Chromeas the OP mentioned on the device used section. Please let me know if you can consistently reproduce the issue, on what platform and share a video if you don't mind so I can clearly see the steps.nkdengineer commentedon Jul 4, 2025
@ikevin127 This PR changed this line from
const lastActorAccountID = report.lastActorAccountID || lastAction?.actorAccountIDtoThen the
lastActorDetailsis not changed. If you revert this line, you can reproduce this bug easily.ikevin127 commentedon Jul 4, 2025
I'm guessing you're refering to this PR:
which interchanged the checks between each other, moving the last one to the front and vice versa:
Given that the above-mentioned PR solved this issue (unintentionally), I think we're fine to close this one as fixed or maybe ask QA to confirm the issue was fixed before closing.
cc @abekkala
melvin-bot commentedon Jul 7, 2025
@ikevin127 Whoops! This issue is 2 days overdue. Let's get this updated quick!
ikevin127 commentedon Jul 7, 2025
Issue was fixed by PR mentioned above in #65160 (comment). @abekkala I think we're fine to close this one as fixed or maybe ask QA to confirm the issue was fixed before closing.
melvin-bot commentedon Jul 8, 2025
📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸
melvin-bot commentedon Jul 11, 2025
@ikevin127 Whoops! This issue is 2 days overdue. Let's get this updated quick!
ikevin127 commentedon Jul 11, 2025
Issue was fixed by PR mentioned above in #65160 (comment). @abekkala I think we're fine to close this one as fixed or maybe ask QA to confirm the issue was fixed before closing.
melvin-bot commentedon Jul 14, 2025
@abekkala @ikevin127 this issue was created 2 weeks ago. Are we close to approving a proposal? If not, what's blocking us from getting this issue assigned? Don't hesitate to create a thread in #expensify-open-source to align faster in real time. Thanks!
ikevin127 commentedon Jul 14, 2025
Issue was fixed by PR mentioned above in #65160 (comment). @abekkala I think we're fine to close this one as fixed or maybe ask QA to confirm the issue was fixed before closing.
melvin-bot commentedon Jul 15, 2025
📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸