Skip to content

Concierge stops responding when a new message is sent while a follow-up response is still generating #97049

Todo

Description

@m-natarajan

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


Version Number: 9.4.44-6
Reproducible in staging?: Y
Reproducible in production?: Y
If this was caught during regression testing, add the test name, ID and link from BrowserStack:
Email or phone of affected tester (no customers):
Logs: https://stackoverflow.com/c/expensify/questions/4856
Expensify/Expensify Issue URL:
Issue reported by: Applause Internal Team
Slack conversation (hyperlinked to channel name): More context here

Action Performed:

  1. Open Concierge and ask a question.
  2. Wait for Concierge to respond with suggested follow-up buttons.
  3. Click one of the suggested follow-up buttons.
  4. While Concierge is still generating the response (or while the next set of suggested follow-up buttons is still loading), send another user message.
  5. Wait for all pending requests to complete.
  6. Observe the conversation.

Expected Result:

Concierge should handle the new user message after the in-progress response, The conversation should remain responsive.

Actual Result:

Concierge does not reply to the message sent during the in-progress response.
The conversation appears to become stuck after the second message is sent.

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

Screenshots/Videos

626414625-88cc532e-d125-48e4-af40-203f01dd0559.mp4

View all open jobs on GitHub

Upwork Automation - Do Not Edit
Issue OwnerCurrent Issue Owner: @eh2077

Activity

  1. added
    Daily
    Bug
    on Jul 26, 2026
  2. MelvinBot commented on Jul 26, 2026

    @MelvinBot
    Contributor

    Issue Analysis

    ⚠️ Medium confidence — the App-side behavior is verified in code, but the definitive "message dropped" mechanism is backend and needs log confirmation (no reportID was available in the issue to run that).

    Root Cause: This is not a case of the App blocking or dropping the second message. The composer has no in-progress guard — a freeform message typed while Concierge is still generating is always dispatched via AddComment. The failure to reply lives in the backend Concierge turn-handling, which the App repo can't fix. Two App-side timing behaviors make the chat look permanently stuck once the backend fails to answer:

    1. Sending a message into the Concierge chat clears the "Concierge is thinking" indicator and relies on the backend to re-establish it — useComposerSubmit.ts:84-85. If the backend never re-establishes it, there's no visual signal that anything is pending.
    2. Follow-up buttons that carry a pre-generated response open a 4-second optimistic-reply window (SuggestedFollowup.ts:19,108-126). A message sent inside that window can cause the pending optimistic Concierge reply to be discarded — usePendingConciergeResponse.ts:143,214.

    The combination means: the second AddComment is sent, but if the backend treats that Concierge turn as already handled (the follow-up's pre-generated-response handshake) it never kicks off a new generation for the freeform message → Concierge never replies and the chat appears frozen.

    Recommended Fix: The core defect ("Concierge doesn't reply to the second message") requires a change outside the App repo — this is a backend/Concierge issue in how a concurrent AddComment arriving mid-turn is handled. It should be escalated to an internal engineer with access to the Concierge/Auth backend to confirm whether the second message triggers a new agent generation or is dropped/deduped. An App-side hardening (e.g. not clearing the thinking indicator / not discarding the pending response when a message is sent mid-turn) could reduce the "stuck" appearance, but won't make Concierge answer on its own.

    Investigation details

    Follow-up buttons flow. Suggested follow-up buttons are parsed from a <followup-list> in the Concierge report action HTML and rendered by ChatActionableButtons.tsx. Clicking one calls resolveSuggestedFollowup() — not ResolveActionableReportMentionWhisper. The "resolution" it applies (<followup-list selected>) is purely cosmetic (hides the buttons) and does not gate the composer.

    No composer gate. The only conditions that disable send are the abuse block (isBlockedFromConcierge), max-length, and empty draft — none related to an "in-progress" state. So the typed message is genuinely dispatched to the backend.

    Why it looks web-only / stuck. The "thinking" indicator is a display-only signal; while a follow-up list is pending, indicators are additionally suppressed. Once the backend fails to answer the concurrent message, none of the client optimism recovers the state, so the chat sits with a sent message and no reply.

    Recommended log confirmation (internal engineer): for an affected Concierge reportID during the repro, verify (a) the second AddComment reaches the backend within ~4s of the follow-up's AddComment, and (b) whether it triggers a new agent generation or is short-circuited/deduped by the pre-generated-response handshake (optimisticConciergeReportActionID / pregeneratedResponse).

    Possibly related: #96237 is referenced for context (a payment-tracking issue, not a duplicate). No open duplicate of this specific race was found.


    Next Steps: Reply with @MelvinBot <your feedback> to refine this analysis.

  3. added
    External
    on Jul 26, 2026
  4. melvin-bot commented on Jul 26, 2026

    @melvin-bot

    Triggered auto assignment to Contributor-plus team member for initial proposal review - @jayeshmangwani (External)

  5. melvin-bot commented on Jul 26, 2026

    @melvin-bot
  6. marufsharifi commented on Jul 27, 2026

    @marufsharifi
    Contributor

    I can take over this.

  7. added
    External
    and removed
    External
    on Jul 28, 2026
  8. melvin-bot commented on Jul 28, 2026

    @melvin-bot

    Triggered auto assignment to Contributor-plus team member for initial proposal review - @situchan (External)

  9. mallenexpensify commented on Jul 28, 2026

    @mallenexpensify
    Contributor

    @situchan plz take over as C+

  10. melvin-bot commented on Jul 31, 2026

    @melvin-bot

    @situchan Uh oh! This issue is overdue by 2 days. Don't forget to update your issues!

  11. 104 remaining items

  12. removed
    Help Wanted
    on Oct 27, 2026
  13. mukhrr commented on Oct 28, 2026

    @mukhrr
    Contributor

    103. btw i found another related bug. canned reply still jumps below the typed message tho, so it reads like the answer to it which seems a BE bug to me. cc @AndrewGable

    cc @AndrewGable just for your/BE angineer's information :)

  14. added
    Reviewing
    on Oct 28, 2026
  15. jeffrey-graham commented on Nov 7, 2026

    @jeffrey-graham
  16. added
    Daily
    and removed
    Weekly
    on Nov 7, 2026
  17. melvin-bot commented on Nov 7, 2026

    @melvin-bot
  18. expensify-chore-bot commented on Nov 18, 2026

    @expensify-chore-bot

    @mukhrr 6 days overdue. This is scarier than being forced to listen to Vogon poetry!

  19. expensify-chore-bot commented on Nov 20, 2026

    @expensify-chore-bot

    @mukhrr 8 days overdue is a lot. Should this be a Weekly issue? If so, feel free to change it!

  20. mukhrr commented on Nov 21, 2026

    @mukhrr
    Contributor

    PR is on hold

  21. mallenexpensify commented on Nov 23, 2026

    @mallenexpensify
    Contributor

    Claude posting on behalf of Matt:

    @eh2077 you're now the C+ on this issue. The previous C+ is no longer in the Contributor program. Next step: review open PR #105255.

  22. expensify-chore-bot commented on Dec 1, 2026

    @expensify-chore-bot

    @eh2077 Whoops! This issue is 2 days overdue. Let's get this updated quick!

  23. mukhrr commented on Dec 2, 2026

    @mukhrr
    Contributor

    @mallenexpensify I think we can put this on Awaiting Payment since issue is fixed by another PR and we had to put our PR on hold and close eventually

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

Metadata

Metadata

Labels

BugDailyExternalReviewing

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions