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
Deleted Expenses Still Appear in LHN with Unread Concierge Auto-Categorization Messages #67287
BugSomething is broken. Auto assigns a BugZero manager.InternalRequires API changes or must be handled by Expensify staffReviewingHas a PR in reviewWeeklyKSv2
Version Number: 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 TestRail: Email or phone of affected tester (no customers): Logs:https://stackoverflow.com/c/expensify/questions/4856 Expensify/Expensify Issue URL: Issue reported by:@puneetlath Slack conversation (hyperlinked to channel name): #Retain
Action Performed:
Create or view an expense that triggers Concierge auto-categorization
Delete the expense
Check the LHN for remaining threads
Expected Result:
Once an expense is deleted, the related report thread should no longer appear in the LHN.
Any Concierge messages related to deleted reports should not cause the report to remain visible as unread.
Furthermore, we should ignore Concierge messages when counting the number of comments made on a thread before we decide if we delete it completely. Right now, we keep the thread if there were comments on it for audit history. Let's consider the report as without any comments if the only report actions are from Concierge
Actual Result:
After deleting an expense, the associated report thread remains in the LHN.
The Concierge message remains marked as unread, keeping the thread active in the LHN.
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
Windows: Chrome
MacOS: Chrome / Safari
MacOS: Desktop
Platforms Tested:
On which of our officially supported platforms was this issue tested:
changed the title [-]Full story : Deleted Expenses Still Appear in LHN with Unread Concierge Auto-Categorization Messages[/-][+]Deleted Expenses Still Appear in LHN with Unread Concierge Auto-Categorization Messages[/+]on Jul 29, 2025
Actually I think @jasperhuangg's changes here might fix this problem for everyone. I started writing an automated test and did some refactoring though so I think I will raise a PR with that at least, but this should be fixed 🤞
Nice, looks like this hit production, woo! I don't have a great way of testing that I know of because my test Amex feed categorizes them correctly so I don't get the original concierge message.
@marcaaron can you think of another way for me to test this?
Ah hmm. Whether you had these auto-categorize messages from Concierge or not the expectation would still be for the threads to not be in the LHN anymore. We delete any thread as long as it does not have a comment from a user in it (or some other kind of non-whitelisted action) so I think a test might be something like:
Connect Card Feed
Leave a Comment on one of the transaction threads (comments are considered "important" actions that we don't want to lose)
Disconnect the Card Feed
Confirm that all the threads have been deleted except the one where you left a comment
If it's the same account from before then that's expected. The fix will only apply to future cases. We would need to manually delete those with a custom query. Can we create a clean up issue and letting this issue reopen only if a new case pops up? I can help write the queries to manually clean this up, but we will need ring1 to help.
BugSomething is broken. Auto assigns a BugZero manager.InternalRequires API changes or must be handled by Expensify staffReviewingHas a PR in reviewWeeklyKSv2
Activity
melvin-bot commentedon Jul 28, 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.MelvinBot commentedon Jul 28, 2025
This has been labelled "Needs Reproduction". Follow the steps here: https://stackoverflowteams.com/c/expensify/questions/16989
[-]Full story : Deleted Expenses Still Appear in LHN with Unread Concierge Auto-Categorization Messages[/-][+]Deleted Expenses Still Appear in LHN with Unread Concierge Auto-Categorization Messages[/+]marcaaron commentedon Jul 29, 2025
PR up.
13 remaining items
marcaaron commentedon Aug 29, 2025
@MitchExpensify do you think that other user also might have removed a card feed?
marcaaron commentedon Aug 29, 2025
Actually I think @jasperhuangg's changes here might fix this problem for everyone. I started writing an automated test and did some refactoring though so I think I will raise a PR with that at least, but this should be fixed 🤞
marcaaron commentedon Aug 29, 2025
Or maybe not. We still want the transaction threads deleted.
danielrvidal commentedon Sep 4, 2025
Nice, looks like this hit production, woo! I don't have a great way of testing that I know of because my test Amex feed categorizes them correctly so I don't get the original concierge message.
@marcaaron can you think of another way for me to test this?
marcaaron commentedon Sep 5, 2025
Ah hmm. Whether you had these auto-categorize messages from Concierge or not the expectation would still be for the threads to not be in the LHN anymore. We delete any thread as long as it does not have a comment from a user in it (or some other kind of non-whitelisted action) so I think a test might be something like:
danielrvidal commentedon Sep 9, 2025
Nice, I think we're good here! Here is the comment of a feed that I removed from the user:
Admins account:

Employees account:
marcaaron commentedon Sep 9, 2025
Nice! I think let's close this one out. If there are any edge cases that pop up we can reopen. Happy to keep looking into any inconsistencies.
ryanldonato commentedon Sep 10, 2025
@marcaaron these deleted expense chats are still showing for accounting@bluesprucecg.com
marcaaron commentedon Sep 11, 2025
If it's the same account from before then that's expected. The fix will only apply to future cases. We would need to manually delete those with a custom query. Can we create a clean up issue and letting this issue reopen only if a new case pops up? I can help write the queries to manually clean this up, but we will need ring1 to help.