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] Concierge AI - Expense report title created by Concierge AI is in code format #75296
Version Number: v9.2.59-2 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-1993/folder/22315296/56014375/1016708755 Email or phone of affected tester (no customers): N/A Issue reported by: Applause Internal Team Device used: Windows 11 Home/Chrome App Component: Money Requests
Action Performed:
Preconditions: Create a fresh test account (email without "+", select manage my team's expense and QBD)
changed the title [-]Concierge AI - Expense report title created by Concierge AI is in code format[/-][+][$250] Concierge AI - Expense report title created by Concierge AI is in code format[/+]on Nov 19, 2025
Please re-state the problem that we are trying to solve in this issue.
Concierge-created expense reports show raw formula text ({report:type} {report:startdate}) in the DM preview and LHN row instead of the formatted title (e.g., “Expense Report 2025-11-24”).
What is the root cause of that problem?
The root cause is that our report-naming logic never evaluates formula-based titles, so the UI renders the raw formula string that Concierge seeds by default.
Specifically:
getMoneyRequestReportName simply returns report.reportName for expense reports without computing it. When Concierge sets the title to {report:type} {report:startdate}, that exact string is passed through unchanged.
The same raw string ({report:type} {report:startdate}) appeared in both the DM preview and the LHN row because both getReportName and getMoneyReportPreviewName resolve expense report titles through getMoneyRequestReportName, which returns the uncomputed formula string.
What changes do you think we should make in order to solve the problem?
We should make getMoneyRequestReportName formula-aware so it computes report titles instead of returning the raw {report:type} {report:startdate} string.
Changes implemented:
We now compute formula-based titles at read-time instead of returning raw strings.
Add at the top of getMoneyRequestReportName:
// Typed shape of the Formula module for dynamic requires.typeFormulaModule=typeofimport('./Formula');// Detect if a report name or title field string contains any formula parts (e.g., {report:type}).functionhasFormulaBasedReportName(reportName: string|null|undefined): reportName is string{const{parse,FORMULA_PART_TYPES}=require('./Formula')asFormulaModule;return!!reportName&&typeofreportName==='string'&&parse(reportName).some((part)=>part.type!==FORMULA_PART_TYPES.FREETEXT);}// Resolve a report title by evaluating any formula found in the report name or policy title field.functioncomputeReportNameFromTitleField(report: OnyxEntry<Report>,policy?: OnyxEntry<Policy>): string{constreportNameValuePairs=allReportNameValuePair?.[`${ONYXKEYS.COLLECTION.REPORT_NAME_VALUE_PAIRS}${report.reportID}`];consttitleField=reportNameValuePairs?.expensify_text_title;constformulas=[report.reportName,titleField?.value,titleField?.defaultValue].filter(hasFormulaBasedReportName);if(formulas.length===0){return'';}const{compute}=require('./Formula')asFormulaModule;constsanitizedAllTransactions: Record<string,Transaction>=Object.fromEntries(Object.entries(allTransactions??{}).flatMap(([key,transaction])=>(transaction ? [[key,transaction]] : [])),);constcontext={report: reportasReport,policy: policy??allPolicies?.[`${ONYXKEYS.COLLECTION.POLICY}${report.policyID}`],allTransactions: sanitizedAllTransactions};for(constformulaofformulas){constcomputedName=compute(formula,context)?.trim();if(computedName&&computedName!==formula){returncomputedName;}}return'';}
Detects when report.reportName or the policy title field holds a formula (e.g., {report:type} {report:startdate}).
Computes it via Formula.compute using the current report/policy/transactions context.
Returns the computed string immediately, ensuring Concierge-created reports render as “Expense Report 2025-11-24” in the DM preview and LHN row instead of showing raw placeholders.
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)
Activity
melvin-bot commentedon Nov 17, 2025
Triggered auto assignment to @dylanexpensify (
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.melvin-bot commentedon Nov 19, 2025
Job added to Upwork: https://www.upwork.com/jobs/~021991095954756240982
[-]Concierge AI - Expense report title created by Concierge AI is in code format[/-][+][$250] Concierge AI - Expense report title created by Concierge AI is in code format[/+]melvin-bot commentedon Nov 19, 2025
Triggered auto assignment to Contributor-plus team member for initial proposal review - @Pujan92 (
External)marufsharifi commentedon Nov 26, 2025
Proposal
Please re-state the problem that we are trying to solve in this issue.
Concierge-created expense reports show raw formula text (
{report:type} {report:startdate}) in the DM preview and LHN row instead of the formatted title (e.g., “Expense Report 2025-11-24”).What is the root cause of that problem?
The root cause is that our report-naming logic never evaluates formula-based titles, so the UI renders the raw formula string that Concierge seeds by default.
Specifically:
getMoneyRequestReportNamesimply returnsreport.reportNamefor expense reports without computing it. When Concierge sets the title to{report:type} {report:startdate}, that exact string is passed through unchanged.App/src/libs/ReportUtils.ts
Lines 4365 to 4368 in 29e1abf
{report:type} {report:startdate}) appeared in both the DM preview and the LHN row because bothgetReportNameandgetMoneyReportPreviewNameresolve expense report titles throughgetMoneyRequestReportName, which returns the uncomputed formula string.What changes do you think we should make in order to solve the problem?
We should make
getMoneyRequestReportNameformula-aware so it computes report titles instead of returning the raw{report:type} {report:startdate}string.Changes implemented:
We now compute formula-based titles at read-time instead of returning raw strings.
Add at the top of
getMoneyRequestReportName:Refine
reportNameingetMoneyRequestReportName:function getMoneyRequestReportName({report, policy, invoiceReceiverPolicy}: {report: OnyxEntry<Report>; policy?: OnyxEntry<Policy>; invoiceReceiverPolicy?: OnyxEntry<Policy>}): string { + const computedReportName = computeReportNameFromTitleField(report, policy); + if (computedReportName) return computedReportName; // …existing logic (decode reportName, payer/amount strings, etc.) }Why this fixes the issue:
report.reportNameor the policy title field holds a formula (e.g.,{report:type} {report:startdate}).Formula.computeusing the current report/policy/transactions context.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)
marufsharifi commentedon Nov 26, 2025
Video demonstrates the proposal resolves the issue.
main.webm
melvin-bot commentedon Nov 26, 2025
📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸
Pujan92 commentedon Nov 26, 2025
This seems to a BE issue. It needs to return the correct evaluated report name.
@dylanexpensify can we assign an internal engineer here?
7 remaining items
dylanexpensify commentedon Dec 11, 2025
Updated
ishpaul777 commentedon Dec 11, 2025
I can take this!
ishpaul777 commentedon Dec 11, 2025
Its seems like the issue is not reproducible, can we please retest this @jponikarchuk
Screen.Recording.2025-12-12.at.4.47.36.AM.mov
jponikarchuk commentedon Dec 13, 2025
@ishpaul777 I can't reproduce this issue now
bandicam.2025-12-13.19-09-41-772.mp4
ishpaul777 commentedon Dec 15, 2025
great! we can close this one as not reproducible @dylanexpensify
melvin-bot commentedon Dec 16, 2025
@Pujan92 Eep! 4 days overdue now. Issues have feelings too...
ishpaul777 commentedon Dec 17, 2025
gentle bump @dylanexpensify