Skip to content

Workspace - "updated your display name to x" whisper disappears after reacting to it #103933

Closed

Description

@applause-bot

If you haven’t already, check out our contributing guidelines for onboarding. To join our Slack channel, fill out this form.


Version Number: 9.5.8-3
Reproducible in staging?: Yes
Reproducible in production?: N/A - new feature, doesn't exist in prod
If this was caught during regression testing, add the test name, ID and link from BrowserStack: #100727
Email or phone of affected tester (no customers): sjdoisjnodjiosjo2@gmail.com
Issue reported by: Applause Internal Team
Bug source: Exploratory - Significant User Experience Deterioration
Device used: Mac 26.5 / Chrome
App Component: Chat Report View

Action Performed:

[Admin]:

  1. Go to staging.new.expensify.com
  2. Go to workspace settings > Members.
  3. Invite a non-existing user.
  4. Click on the invited member.
  5. Click Profile > Display name.
  6. Enter name and save it.

[Member]
7. Open the invited workspace chat.
8. React to the "updated your display name to x" whisper

Expected Result:

"updated your display name to x" whisper will not disappear after reacting to it.

Actual Result:

"updated your display name to x" whisper disappears after reacting to it.
It reappears after reopening the chat.

Workaround:

Unknown

Platforms:

  • Android: App
  • Android: mWeb Chrome
  • iOS: App
  • iOS: mWeb Safari
  • iOS: mWeb Chrome
  • Windows: Chrome
  • MacOS: Chrome Safari

Screenshots/Videos

Bug7285560_1791911873272.19.mp4

View all open jobs on GitHub

Applause Internal Information
Exported by: Svetlana Lazutkina
Bug ID: 7285560

Issue OwnerCurrent Issue Owner: @gijoe0295

Activity

  1. added
    DeployBlockerCash
    Bug
    on Oct 13, 2026
  2. applause-bot commented on Oct 13, 2026

    @applause-bot
    Author

    While Applause doesn't embed attachments for this bug, here are the links for quick view:
    https://platform.applause.com/services/links/v1/external/066eb31b674ca4a88b891daf02fc0f9c666c1e95d66c338a8732167bb21de587

  3. melvin-bot commented on Oct 13, 2026

    @melvin-bot

    You have been assigned to this deploy blocker because you recently merged this PR: #100727

  4. melvin-bot commented on Oct 13, 2026

    @melvin-bot

    @arosiclair @gijoe0295 you have been assigned to this deploy blocker because you reviewed the offending PR: #100727

  5. melvin-bot commented on Oct 13, 2026

    @melvin-bot

    @allgandalf you have been assigned to this deploy blocker because you authored the offending PR: #100727

  6. melvin-bot commented on Oct 13, 2026

    @melvin-bot

    💬 A slack conversation has been started in #expensify-open-source

  7. github-actions commented on Oct 13, 2026

    @github-actions
    Contributor

    👋 Friendly reminder that deploy blockers are time-sensitive ⏱ issues! Check out the open `StagingDeployCash` deploy checklist to see the list of PRs included in this release, then work quickly to do one of the following:

    1. Identify the pull request that introduced this issue and revert it.
    2. Find someone who can quickly fix the issue.
    3. Fix the issue yourself.
  8. MelvinBot commented on Oct 13, 2026

    @MelvinBot
    Contributor

    Deploy Blocker Analysis

    Causing PR: Allow workspace admins to set a member's display name (high confidence). It added the new whisper type POLICYCHANGELOG_UPDATE_EMPLOYEE_DISPLAY_NAME, and only that whisper is affected.

    Root cause (medium confidence): The new type renders from originalMessage and has an empty message. It was not added to the exemption list in isDeletedAction. After a reaction, the server update arrives with an empty message, so App treats the whisper as deleted and hides it. Reopening the chat calls OpenReport, which returns a non-empty message, so the whisper comes back.

    Recommended resolution: roll forward, don't revert. Add CONST.REPORT.ACTIONS.TYPE.POLICY_CHANGE_LOG.UPDATE_EMPLOYEE_DISPLAY_NAME to that exemption list. Add a unit test in tests/unit/ReportActionsUtilsTest.ts that checks isDeletedAction returns false for this type with message: []. This is the same fix as Exempt card-issued actions from isDeletedAction empty-message check.

    Investigation details

    How the whisper gets hidden

    1. addEmojiReaction only writes to reportActionsReactions_<reportActionID>. It never touches the whisper. So the change comes from the server or Pusher update after AddEmojiReaction.
    2. That update changes the report's actions. visibleReportActions then rechecks visibility for each action.
    3. shouldReportActionBeVisible hides an action when isDeletedAction is true. hasDeletedMessage treats message: [] or an empty html as deleted.
    4. The new type never reads message. It renders from originalMessage (PolicyChangeLogContent.tsx:210-212, ReportUtils.ts:8246-8256). The PR's own unit test builds this action with message: [].

    Prior bug: [Due for payment 2026-06-01] [$250] WS Chat - Reacting to Expensify card system message causes it to disappear had the same symptom and mechanism.

    Not yet confirmed: No one has inspected the AddEmojiReaction response. To confirm, react to the whisper with the network tab open. The reportActions_<reportID> update should show this action with message: [] or html: ''. If message is not empty, this explanation is wrong.

    Ruled out: Speed up isDeletedAction and skip it for report attributes children without an error is in the same deploy. It reorders checks in isDeletedAction but returns the same result for every action.

    Backend vs. App: The server sends the empty message. But App renders this type from originalMessage only, so treating an empty message as deleted is an App bug. The App fix is enough on its own.

    Why not revert: A revert would remove a 31-file feature to fix a missing line. The bug is cosmetic: the whisper reappears on reopen and no data is lost.

    💡 Suggested AI code review rule

    This mistake has now happened at least twice, and a reviewer can spot it mechanically. Proposed for Expensify/App (app-coding-standards):

    • Rule: CONSISTENCY-21 Exempt originalMessage-only action types from isDeletedAction
    • Condition: Flag a PR that adds a CONST.REPORT.ACTIONS.TYPE value whose content renders only from originalMessage, unless it also adds the type to the exemption list in isDeletedAction.
    • Why: These actions can arrive with an empty message, so isDeletedAction treats them as deleted and hides them. See this issue and the card-issued bug above.
    • Search pattern: A diff adds a key under REPORT.ACTIONS.TYPE in src/CONST/index.ts but doesn't change isDeletedAction in src/libs/ReportActionsUtils.ts.
    • Offending code (❌): exemption list missing the new type, from the causing PR
    • Fix (✅): Exempt card-issued actions from isDeletedAction empty-message check

    A maintainer can add this rule to Expensify/App as a draft PR if it's worth having.


    Next Steps: allgandalf, please add the type to the exemption list. Or reply with @MelvinBot implement this to have me create a draft PR.


    view run

  9. arosiclair commented on Oct 13, 2026

    @arosiclair
    Contributor

    Very minor issue. Demoting this

  10. added
    Daily
    Skip Payment
    and removed
    DeployBlockerCash
    Hourly
    on Oct 13, 2026
  11. allgandalf commented on Oct 14, 2026

    @allgandalf
    Contributor

    Fix is up: #103868

  12. melvin-bot commented on Oct 16, 2026

    @melvin-bot

    @gijoe0295

    The solution for this issue has been 🚀 deployed to production 🚀 in version 9.5.12-1 and is now subject to a 7-day regression period 📆. Here is the list of pull requests that resolve this issue:

    The following checklist (instructions) will need to be completed before the issue can be closed. Please copy/paste the Contributor+ Checklist from here into a new comment on this GH and complete it. If you have the K2 extension, you can simply click: [this button]. If no checklist is needed for this issue, you can click: [no checklist button]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

BugDailySkip Payment

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions