Repository navigation
Description
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.3.7-1
Reproducible in staging?: Yes
Reproducible in production?: Yes
If this was caught during regression testing, add the test name, ID and link from BrowserStack: https://test-management.browserstack.com/projects/2219752/test-runs/TR-3292/folder/13176687/41236699/1143583286?sort=%2Bidentifier&p=2
Email or phone of affected tester (no customers): N/A
Issue reported by: Applause Internal Team
Bug source: Regression TC Execution
Device used: Windows 11/ Chrome, Android 13
App Component: Other
Action Performed:
Pre-condition:
Main account has added a copilot
- Sign in to staging.new.expensify.com with the copilot account
- Navigate to account settings > two arrows (to change to the main account)
- With the main account opened as the copilot account, navigate to personal conversation (Your space)
- Create an expense (track an expense) with the category field empty
Expected Result:
In the conversation the tracked expense is created and a concierge message is displayed to categorize the expense. The message is displayed with "Concierge" as the message header.
Actual Result:
Concierge message is displayed as if it is sent from the copilot account with the copilot header displayed on the message.
Workaround:
Unknown
Platforms:
- Android: App
- Android: mWeb Chrome
- iOS: App
- iOS: mWeb Safari
- iOS: mWeb Chrome
- Windows: Chrome
- MacOS: Chrome / Safari
Screenshots/Videos
1.mp4
Upwork Automation - Do Not Edit
- Upwork Job URL: https://www.upwork.com/jobs/~022014774958973147602
- Upwork Job ID: 2014774958973147602
- Last Price Increase: 2026-01-23
Issue Owner
Current Issue Owner: @garrettmknightMetadata
Metadata
Labels
Type
Projects
- StatusShow more project fieldsDone
Activity
melvin-bot commentedon Jan 23, 2026
Triggered auto assignment to @garrettmknight (
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.daledah commentedon Jan 23, 2026
Proposal
Please re-state the problem that we are trying to solve in this issue.
When a copilot creates a tracked expense on behalf of the main account in Self DM (Your space), the Concierge actionable whisper message is displayed with the copilot's header instead of "Concierge". The message shows "[copilot email] (as copilot for Concierge)" with "on behalf of Expensify Concierge" text below.
What is the root cause of that problem?
The issue is that the
ACTIONABLE_TRACK_EXPENSE_WHISPERaction is being created or returned with adelegateAccountIDfield when it shouldn't have one.Looking at the rendering code in
useReportActionAvatars.ts:App/src/components/ReportActionAvatars/useReportActionAvatars.ts
Lines 118 to 120 in c9e36d3
And in
ReportActionItemSingle.tsx:App/src/pages/home/report/ReportActionItemSingle.tsx
Line 228 in c9e36d3
When
delegateAccountIDis present on the action, the UI:The
buildOptimisticActionableTrackExpenseWhisperfunction inReportUtils.tsdoes NOT setdelegateAccountID, but when the server processes the request with a copilot (delegate) context, it likely addsdelegateAccountIDto all report actions created during that session.What changes do you think we should make in order to solve the problem?
The
ACTIONABLE_TRACK_EXPENSE_WHISPERaction should NEVER have adelegateAccountIDbecause it's always from Concierge, not from the user/copilot who triggered it.Update
buildOptimisticActionableTrackExpenseWhisperto explicitly setdelegateAccountID: undefinedto ensure it's not inherited or added:App/src/libs/ReportUtils.ts
Lines 7654 to 7686 in c9e36d3
function buildOptimisticActionableTrackExpenseWhisper(iouAction: OptimisticIOUReportAction, transactionID: string): ReportAction { ... return { actionName: CONST.REPORT.ACTIONS.TYPE.ACTIONABLE_TRACK_EXPENSE_WHISPER, actorAccountID, avatar: getDefaultAvatarURL({accountID: actorAccountID, accountEmail: targetEmail}), + delegateAccountID: undefined, // Concierge messages should never show delegate info created: DateUtils.addMillisecondsFromDateTime(currentTime, 1), ... }; }What alternative solutions did you explore? (Optional)
Update
getDelegateAccountIDFromReportActionor the rendering components to explicitly ignoredelegateAccountIDforACTIONABLE_TRACK_EXPENSE_WHISPERactions:In
ReportActionItemSingle.tsx:There might also be a server-side fix needed to ensure the server doesn't add
delegateAccountIDtoACTIONABLE_TRACK_EXPENSE_WHISPERactions.nkdengineer commentedon Jan 23, 2026
Proposal
Please re-state the problem that we are trying to solve in this issue.
Concierge message is displayed as if it is sent from the copilot account with the copilot header displayed on the message.
What is the root cause of that problem?
The backend returns the
delegateAccountIDforACTIONABLE_TRACK_EXPENSE_WHISPERaction, then the copilot user is displayed in the avatar of the actionApp/src/libs/ReportActionsUtils.ts
Line 401 in 16e02f4
App/src/components/ReportActionAvatars/useReportActionAvatars.ts
Line 118 in 16e02f4
What changes do you think we should make in order to solve the problem?
We should return the
delegateAccountIDasundefinedif theactorAccountIDis the conciergeApp/src/libs/ReportActionsUtils.ts
Line 401 in 16e02f4
What alternative solutions did you explore? (Optional)
We can return
undefinedbased on the action type. Will returnundefinedif the action is a system message action.App/src/libs/ReportActionsUtils.ts
Line 401 in 16e02f4
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.
[-]Copilot - Concierge message is displayed with a copilot header for uncategorized expense[/-][+][$250] Copilot - Concierge message is displayed with a copilot header for uncategorized expense[/+]melvin-bot commentedon Jan 23, 2026
Job added to Upwork: https://www.upwork.com/jobs/~022014774958973147602
melvin-bot commentedon Jan 23, 2026
Triggered auto assignment to Contributor-plus team member for initial proposal review - @suneox (
External)suneox commentedon Jan 25, 2026
@nkdengineer proposal LGTM
🎀 👀 🎀 C+ reviewed
melvin-bot commentedon Jan 25, 2026
Triggered auto assignment to @jasperhuangg, see https://stackoverflow.com/c/expensify/questions/7972 for more details.
9 remaining items
melvin-bot commentedon Feb 20, 2026
This issue has not been updated in over 15 days. @garrettmknight, @suneox, @jasperhuangg, @nkdengineer eroding to Monthly issue.
P.S. Is everyone reading this sure this is really a near-term priority? Be brave: if you disagree, go ahead and close it out. If someone disagrees, they'll reopen it, and if they don't: one less thing to do!
garrettmknight commentedon Feb 20, 2026
Payment Summary
trjExpensify commentedon Feb 25, 2026
approved $250 for @suneox.
twisterdotcom commentedon Feb 25, 2026
@nkdengineer has submitted payment for this report on ND here.
SO: https://stackoverflowteams.com/c/expensify/questions/7582
Zapier Logs
Run ID: 00040eee-e942-a6bd-bfaa-67bc05e82fe4