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
[Due for payment 2026-10-28] [Metrics] Investigate and optimize the first message in a chat #103609
The first message in a chat is slower than messages grouped with other messages. This matters for report chats where someone sends one short message, such as "OK", and then moves on.
Scope
Measure the first ungrouped message against grouped messages, identify where the extra time is spent, and improve the slow path. Verify the result with the same measurement before and after the change.
The solution for this issue has been 🚀 deployed to production 🚀 in version 9.5.15-3 and is now subject to a 7-day regression period 📆. Here is the list of pull requests that resolve this issue:
changed the title [-][Metrics] Investigate and optimize the first message in a chat[/-][+][Due for payment 2026-10-28] [Metrics] Investigate and optimize the first message in a chat[/+]on Nov 3, 2026
[Contributor] The offending PR and associated issue have been commented on, pointing out the bug it caused and why, so the author and reviewers can learn from the mistake.
No offending PR to comment on since this is a performance improvement.
[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: Not Required.
[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
The tests itself may not be needed since this may already be covered elsewhere. Nevertheless, adding the test cases here for QA to cross-check
Precondition:
Test:
Test 1: Smoke, message avatars in chats
As A, open a DM with B, a workspace chat, and an expense report thread in turn.
In each, as A and as B, send a message right after the other account's message.
Confirm each ungrouped message shows the correct sender avatar.
Confirm avatars do not flicker or change when a new message arrives.
Test 2: Avatars still update on real report changes
Prerequisite: A is an admin of the workspace.
As A, open the workspace chat and keep it on screen.
Rename the workspace and change its avatar from another session.
Confirm the workspace avatar and name on existing messages update without a reload.
Test 3: Report preview sender while a receipt is scanning
Prerequisite: account A has a DM with account B.
As A, scan a receipt in the DM with B and submit it.
While the preview still shows "Scanning", confirm the preview avatar is A
Send a chat message in the same DM.
Confirm the preview avatar is still A and does not flicker.
When the scan finishes, confirm the preview avatar is still A
Activity
melvin-bot commentedon Oct 21, 2026
@Julesssss / @cristipaval @LukasMod
The solution for this issue has been 🚀 deployed to production 🚀 in version 9.5.15-3 and is now subject to a 7-day regression period 📆. Here is the list of pull requests that resolve this issue:
melvin-bot commentedon Oct 26, 2026
@LukasMod Huh... This is 4 days overdue. Who can take care of this?
7 remaining items
[-][Metrics] Investigate and optimize the first message in a chat[/-][+][Due for payment 2026-10-28] [Metrics] Investigate and optimize the first message in a chat[/+]rojiphil commentedon Nov 4, 2026
Contributor+ Checklist:
[Contributor] The offending PR and associated issue have been commented on, pointing out the bug it caused and why, so the author and reviewers can learn from the mistake.
No offending PR to comment on since this is a performance improvement.
[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: Not Required.
[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
The tests itself may not be needed since this may already be covered elsewhere. Nevertheless, adding the test cases here for QA to cross-check
Precondition:
Test:
Test 1: Smoke, message avatars in chats
Test 2: Avatars still update on real report changes
Prerequisite: A is an admin of the workspace.
Test 3: Report preview sender while a receipt is scanning
Prerequisite: account A has a DM with account B.
Do we agree 👍 or 👎
melvin-bot commentedon Nov 4, 2026
Triggered auto assignment to @mallenexpensify (
Awaiting Payment)melvin-bot commentedon Nov 4, 2026
Payment Summary
Resolving PRs:
perf: stop report action avatars re-rendering on every chat message #103976
Reviewer: @rojiphil owed $175 via NewDot
Contributor: @LukasMod does not require payment (Contractor)
BugZero Checklist (@mallenexpensify)
mallenexpensify commentedon Nov 4, 2026
Payment Summary
Contributor+: @rojiphil due $175 via NewDot
quinthar commentedon Nov 15, 2026
Approved $175 to @rojiphil