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-08-03] [$250] Add a branded "thinking" animation while Concierge is generating a response #95634
When Concierge is generating a response, streaming can pause temporarily. During these pauses it incorrectly looks like the answer is already complete, even when there is more to come. Users have no clear signal that Concierge is still "thinking."
Solution
Add a branded "thinking" animation that displays while Concierge is actively working/streaming a response, so users understand the AI is still processing. This reinforces where AI is at work across the product.
Places it should appear:
Concierge DM responses
#admins room threads
Concierge already has an avatar so we're going to use the avatar to animate it when it is thinking using Lottie files. Once Concierge has given it's full response, the Avatar should return to the normal Concierge avatar.
Show the thinking animation when a Concierge/agent response is in progress (including during temporary streaming pauses).
Hide it once the response is complete.
This issue covers the front-end work of wiring the animation into the Concierge response states and displaying/hiding it based on the streaming/response state.
Notes
A triggered/finite animation (e.g. animated GIF or a non-looping Lottie) is preferred over an infinite-loop Lottie for performance reasons.
Concierge answers are delivered as ordinary report actions and rendered by the report action list inside the report folder (the same folder that holds ReportActionContextMenu.ts):
Today the only "still working" cue is the transient typing indicator that reads the report typing/streaming Onyx signal. When the stream pauses between chunks, that signal briefly drops, the indicator disappears, and the last partial action renders like a finished message. There is no persistent, branded "thinking" element that stays visible across those short streaming gaps, so the user cannot tell that more content is still coming. The gap is that nothing bridges the momentary pauses in the streaming state, and nothing renders a dedicated animation while a Concierge or agent response is in progress in Concierge DMs and #admins threads.
What changes do you think we should make in order to solve the problem?
Add a small presentational component, ConciergeThinkingIndicator.tsx, in the report folder alongside the existing report action UI, that renders the design-provided finite asset. Per the issue notes, use a triggered animated GIF or a non-looping Lottie through the existing Lottie/index.tsx wrapper rather than an infinite loop, for performance.
Render ConciergeThinkingIndicator from ReportActionsList (report folder location confirmed by the permalink above), gated so it only shows when the report is a Concierge DM or an #admins room thread and the latest Concierge/agent action is still in progress. Mount it in the same position the typing indicator uses so it appears at the bottom of the conversation.
Keep it visible through temporary streaming pauses by debouncing the hide transition with useDebounce, so a brief drop in the streaming signal does not flicker the animation off between chunks:
Show the animation immediately when a response starts and only hide it after the streaming state has stayed idle past the debounce window, which covers the temporary pauses described in the issue and hides once the response is truly complete.
What alternative solutions did you explore? (Optional)
Reminder: Please use plain English, be brief and avoid jargon. Feel free to use images, charts or pseudo-code if necessary. Do not post large multi-line diffs or write walls of text. Do not create PRs unless you have been hired for this job.
Please re-state the problem that we are trying to solve in this issue.
While Concierge is generating a response, streaming can pause briefly. During those pauses there is no clear, branded signal that Concierge is still working, so the in-progress answer can look already complete. We want a branded "thinking" animation that shows while a Concierge/agent response is in progress (including during temporary streaming pauses) and hides once the response is complete, in both Concierge DMs and #admins room threads.
What is the root cause of that problem?
The app already tracks "is the agent still working" correctly. The AgentZero thinking indicator is driven by isProcessing, which combines the server-side processing NVP with a client optimistic counter and only clears when the agent's real reply lands (intermediate/streamed actions and pauses keep it active):
So the "keep showing through pauses, hide on completion" logic is not the gap. The gap is purely visual: while that state is active, the thinking bubble conveys progress only through a low-emphasis, fading text label — there is no branded animation. The status is rendered as a single Animated.Text (a short opacity fade on the statusLabel string), with no animated visual next to it:
Because the only motion is a brief text fade that settles to a static label, a paused stream reads as a finished message. There is no branded, continuously-visible "AI is at work" cue, which is exactly what the issue asks for.
What changes do you think we should make in order to solve the problem?
Add the branded animation to the existing thinking bubble, driven by the state machine that already exists — no new streaming/response-state logic is needed.
Render a branded, non-looping ("triggered/finite") animation inside ConciergeThinkingMessageContent, in the status row next to the statusLabel text, so it appears only while the bubble is mounted. The bubble is already gated on isProcessing, so the animation automatically shows through streaming pauses and hides the moment the agent's reply completes:
Wire the animation through the existing Lottie wrapper component (which already handles reduced-motion, backgrounded-tab pausing, and load-failure fallbacks), and register the design-provided asset in the LottieAnimations registry so it is referenced the same way as every other in-app animation:
Render it with loop={false} to honor the issue's performance note preferring a finite/triggered animation over an infinite-loop Lottie.
No extra work is needed to cover the two required surfaces. The AgentZeroStatusContext provider already qualifies both Concierge DMs and #admins (POLICY_ADMINS) rooms as agent-zero chats, so the same bubble — and therefore the new animation — surfaces in both automatically:
Because the design asset is still to be provided, the wiring can land first with a lightweight, self-contained animated indicator (a small pulsing "typing dots" built from the react-native-reanimated primitives already imported in this file) occupying the same slot, so users get a continuous "still thinking" cue through pauses immediately. Swapping in the branded design .lottie afterward is then a single-line source change (register the asset and point the Lottiesource at it), with the gating, placement, and both-surface coverage already done.
What alternative solutions did you explore? (Optional)
Use an infinite-loop Lottie for the thinking state. Rejected per the issue's explicit performance note preferring a finite/triggered animation.
Animate the agent avatar in the bubble instead of adding a separate indicator. This changes a shared avatar component (ReportActionAvatars) used across the app and risks unintended visual regressions, whereas confining the animation to the thinking row keeps the change local to the Concierge indicator.
Add the animation at the report-list footer / ReportActionsListHeader level rather than inside the bubble. This would duplicate the per-agent gating already handled by ConciergeThinkingBubble (one bubble per candidate agent) and lose correct multi-agent attribution, so rendering inside the existing bubble is cleaner.
changed the title [-]Add a branded "thinking" animation while Concierge is generating a response[/-][+][$250] Add a branded "thinking" animation while Concierge is generating a response[/+]on Jul 10, 2026
Note: This proposal is not a duplicate. It changes a different location in the code to address the issue.
Please re-state the problem that we are trying to solve in this issue.
When Concierge is generating a response, streaming can pause temporarily, making it look like the answer is complete even when more is coming. Users have no clear visual signal that Concierge is still working. We need a branded "thinking" animation on Concierge's avatar that plays while a response is in progress — including during temporary streaming pauses on an already-landed reply — and reverts to the standard avatar once the response is fully complete. The animation must appear in Concierge DMs and #admins room threads.
What is the root cause of that problem?
This is a feature request, not a regression. The "thinking" state spans two distinct phases that each need an animated avatar:
Phase 1 — pre-reply bubble. While Concierge is generating but has not yet posted its reply, ConciergeThinkingMessage in src/pages/home/report/ConciergeThinkingMessage.tsx renders a separate thinking-bubble row. Inside it, ConciergeThinkingBubble (lines 65-79) guards on isProcessing from useAgentZeroStatusIndicator (src/hooks/useAgentZeroStatusIndicator.ts:58). The avatar in that bubble at lines 161-172 is a plain ReportActionAvatars component — a static image with no animation.
Phase 2 — streaming reply. Once the agent's ADDCOMMENT action lands, useAgentZeroStatusIndicator clears the optimistic store and NVP (src/hooks/useAgentZeroStatusIndicator.ts:343-361), which makes isProcessing false and unmounts the thinking bubble. However the reply can still be streaming — content is still arriving chunk by chunk. During any streaming pause in this phase the chat looks complete when it is not. There is currently no animated indicator on the in-progress ADDCOMMENT row's avatar.
The isProcessing boolean is the correct gate for Phase 1 only; covering Phase 2 requires a separate signal derived from the action's streaming state, which lives in ReportActionItem (src/pages/inbox/report/ReportActionItem.tsx).
What changes do you think we should make in order to solve the problem?
Step 1 — Add the Lottie asset.
Add the branded Concierge thinking Lottie file(s) from the linked Dropbox to assets/animations/ and export a named constant (e.g. ConciergeThinking) from src/components/LottieAnimations/index.tsx, matching the existing pattern used by other Lottie consumers in that file.
Step 2 — Animate the Phase 1 bubble avatar (pre-reply).
In src/pages/home/report/ConciergeThinkingMessage.tsx, replace (or overlay) the <ReportActionAvatars> block at lines 161-172 with a <Lottie> component (@components/Lottie) rendered at the same size as the actor avatar, but only when the agent is Concierge (accountID === CONST.ACCOUNT_ID.CONCIERGE). Fall back to the existing ReportActionAvatars for custom agents where no branded animation exists.
Use a non-looping / triggered Lottie per the issue's performance note — set loop={false} and re-key on each new statusLabel/reasoning-history entry so the animation retriggers as Concierge continues processing:
Because ConciergeThinkingBubble already early-returns null when !isProcessing (lines 68-70), the Phase 1 animation is automatically unmounted once the NVP clears — no extra teardown wiring is needed. Preload the Lottie asset via the useMemoizedLazyExpensifyIcons/lazy-asset pattern already in the file so the first render does not flash the static avatar before the animation loads.
Step 3 — Animate the Phase 2 reply avatar (streaming reply).
The thinking bubble is suppressed as soon as the agent's ADDCOMMENT becomes the newest report action (Phase 2 starts), so the animation must move to the in-progress reply row itself. In src/pages/inbox/report/ReportActionItem.tsx, identify whether the action is a still-streaming Concierge ADDCOMMENT. The streaming state is typically exposed via the action's pendingAction or a dedicated streaming flag on the onyx action object; check the action's isStreaming field (or equivalent — inspect ReportAction type in src/types/onyx/ReportAction.ts for the exact field name before implementing).
When the Concierge ADDCOMMENT is confirmed to be still streaming (action.actorAccountID === CONST.ACCOUNT_ID.CONCIERGE && isStreaming), replace the avatar slot rendered in ReportActionItem with the same <Lottie source={LottieAnimations.ConciergeThinking} loop={false} autoPlay /> used in Step 2. Revert to the standard avatar once isStreaming is false (i.e. the reply is complete). This covers the exact scenario the issue calls out: "Show the thinking animation when a Concierge/agent response is in progress (including during temporary streaming pauses)."
Step 4 — Verify both entry points.
Confirm the Phase 1 animation covers both the Concierge DM path and the #admins room thread path — both mount ConciergeThinkingMessage via ReportActionsListHeader at src/pages/inbox/report/ReportActionsListHeader.tsx:18. Confirm the Phase 2 animation covers the same two paths by verifying that ReportActionItem is rendered for Concierge ADDCOMMENT actions in both report types.
What alternative solutions did you explore?
An animated GIF in place of Lottie was considered but ruled out by the issue's own guidance — a non-looping Lottie is the preferred format for performance reasons, and the Dropbox assets are already supplied as Lottie files. Infinite-loop Lottie was also explicitly excluded by the issue for the same reason.
⚠️@aswin-s Your proposal is a duplicate of an already existing proposal and has been automatically withdrawn to prevent spam. Please review the existing proposals before submitting a new one.
A Concierge response has two visually distinct phases, and the reported bug lives in the second one — which none of the current proposals touch.
Phase 1 — pre-stream thinking bubble. Before any content arrives, isProcessing is true and no draft exists yet, so ConciergeThinkingMessage renders as the list header with a static avatar. This is the only surface the existing proposals modify:
Phase 2 — streaming the draft (the reported case). The moment the first chunk arrives, a draft report action exists, so hasActiveDraft becomes true and ReportActionsListHeaderreturns null — the thinking bubble is unmounted:
From here the partial answer is streamed into the list as an ordinary report action, rendered through ReportActionItemSingle with a plain staticReportActionAvatars:
So during a streaming pause in Phase 2, the user sees a partial message with a static Concierge avatar and no motion anywhere — it reads exactly like a finished reply. That is precisely the issue's complaint: "streaming can pause temporarily. During these pauses it incorrectly looks like the answer is already complete."
The state to drive the animation already exists on the draft itself.ConciergeDraftContext exposes draftReportAction and isDraftPendingCompletion, which is true while the draft is streaming and flips false only when draft.status === CONCIERGE_DRAFT_STATUS.COMPLETED (and no pending completion event) — i.e. it already models "Concierge is still working on this specific message", and holds through the temporary pauses:
Nothing wires that state to an animated avatar, so the draft message's avatar stays static for the whole stream. This is a display-layer gap on the draft report action, not on the thinking bubble.
Both required surfaces are already covered by this same context.ConciergeDraftProvider qualifies Concierge DMs, #admins (POLICY_ADMINS) rooms, and custom-agent chats identically, so a fix keyed on the draft applies to both surfaces the issue lists with no per-surface work:
Negative case — why the existing-proposal surface can't fix this, and why the bug fires only during streaming pauses. The ConciergeThinkingMessage bubble is unmounted for the entire duration of hasActiveDraft (the null return above), so animating its avatar does nothing during the streaming pauses the issue is about — it only affects the brief pre-draft window. And the bug is silent outside streaming because isDraftPendingCompletion is false before the draft exists and again once the status is COMPLETED, so the avatar is only ever "wrongly static" during the pending-completion window.
What changes do you think we should make in order to solve the problem?
1. src/components/LottieAnimations/index.tsx — register the design-provided asset (ConciergeThinking) alongside the existing entries so it is referenced the same way as every other in-app animation:
2. src/pages/inbox/report/ReportActionItemSingle.tsx — read the draft state and, when this action is the streaming draft still pending completion, render the branded finite Lottie in the avatar slot instead of the static ReportActionAvatars:
Route it through the existing Lottie wrapper (reduced-motion, backgrounded-tab pausing and load-failure fallback are already handled there) and render with loop={false} per the issue's performance note:
3. No extra work is needed for the two required surfaces or for bridging pauses — ConciergeDraftProvider already covers Concierge DMs and #admins, and isDraftPendingCompletion already holds through streaming pauses.
This is safe because:
The swap is gated on action.reportActionID === draftReportAction?.reportActionID, so only the single streaming Concierge/agent message animates; every other row — including the user's own messages — renders ReportActionAvatars exactly as today.
isDraftPendingCompletion stays true through streaming pauses and flips false the moment the draft status is COMPLETED, so the avatar automatically returns to the normal Concierge avatar on completion with no teardown wiring — matching the issue's stated behavior.
ConciergeDraftProvider qualifies Concierge DMs, #admins, and custom-agent chats with the same isAgentZeroChat gate, so one change covers both required surfaces.
The Lottie wrapper already falls back to an empty view on onAnimationFailure; keep ReportActionAvatars as the else branch so a failed asset load still shows the normal avatar.
loop={false} honors the issue's explicit preference for a finite/triggered animation over an infinite-loop Lottie.
Note: the short Phase-1 pre-stream window (the ConciergeThinkingMessage bubble) can optionally get the same branded avatar for visual continuity, but it is not where the reported "looks complete during pauses" symptom occurs — the streaming draft in Phase 2 is, so that is the required fix.
Result: while Concierge is streaming — including across the temporary pauses the issue describes — the draft message's avatar animates with the branded asset in both Concierge DMs and #admins threads, and snaps back to the normal avatar the instant the draft completes.
What alternative solutions did you explore? (Optional)
Animate the avatar (or an element next to it) inside ConciergeThinkingMessage (the approach every current proposal takes) — rejected as incomplete: ReportActionsListHeader unmounts that bubble for the entire hasActiveDraft window, so it never renders during the streaming pauses the issue is about. It only covers the brief pre-draft moment, not the reported case.
Add a debounced footer/ReportActionsList indicator that re-derives a streaming flag — rejected: it duplicates state at the wrong layer when the draft already exposes isDraftPendingCompletion, and it still doesn't put the branded cue on the avatar the issue asks for.
Give the shared ReportActionAvatars a global "processing" prop — rejected: it is rendered in ~26 places and a shared change risks regressions; gating at the single draft action inside ReportActionItemSingle keeps the change local and precise.
Infinite-loop Lottie — rejected per the issue's explicit performance note preferring a finite/triggered animation.
The application already has the state required to determine whether Concierge is still processing, but that state is not connected to a persistent visual thinking cue.
A Concierge response passes through two rendering phases.
Phase 1: Before response content appears
AgentZeroStatusProvider includes Concierge DMs and #admins rooms in the Agent Zero status flow.
During this phase, useAgentZeroStatusIndicator exposes isProcessing. This remains active through temporary status-label gaps and becomes false only when the relevant processing state finishes.
While isProcessing is true, ConciergeThinkingMessage renders a separate thinking row. Its avatar currently uses the normal static ReportActionAvatars.
Phase 2: While the response is progressively revealed
Once a Concierge draft response exists, hasActiveDraft becomes true and ReportActionsListHeader removes the separate thinking row.
The partial response is then rendered as a regular report action through ReportActionItemSingle.
The state required for this phase already exists in ConciergeDraftContext:
draftReportAction identifies the currently revealed draft action.
isDraftPendingCompletion remains true while that draft is awaiting completion, including temporary periods where no new content is revealed.
During a streaming pause, the partial response can otherwise look complete even though Concierge is still processing.
Finite animation lifecycle
The approved Lottie asset is finite. Its final frame returns to an ordinary-looking avatar state, so playing it only once does not provide a sufficiently clear thinking signal when processing lasts longer than one animation cycle.
Holding the animation at a controlled progress value was explored, but lottie-react-native does not support progress on web and the behavior is not reliable across all supported platforms.
No new processing or streaming state is needed. The existing isProcessing and isDraftPendingCompletion states define the lifecycle. A short presentation-only replay timer is needed to retrigger the finite animation while that lifecycle remains active.
What changes should we make to solve the problem?
Use the same approved branded animation in the avatar position during both response phases.
1. Add and register the approved animation
Add the approved .lottie file under assets/animations/.
Register it as ConciergeThinking in src/components/LottieAnimations/index.tsx and render it through the existing shared Lottie wrapper.
The animated avatar should use an explicit 40×40 container matching the normal report-action avatar.
2. Add a shared ConciergeThinkingAvatar
Create a shared component that renders the existing normal avatar as its child and places the branded Lottie animation in an absolute overlay.
Keep the normal ReportActionAvatars mounted underneath the animation. This preserves:
The normal avatar fallback.
Tooltip behavior.
Profile navigation where already supported.
Hover and press handling.
Accessibility role and label.
Pending-avatar feedback.
Existing layout and spacing.
The animation overlay should:
Use pointerEvents="none" so it cannot intercept hover or press events.
Use aria-hidden on web.
Use accessibilityElementsHidden on iOS.
Use importantForAccessibility="no-hide-descendants" on Android.
Apply circular clipping only to the animation layer, not the outer tooltip or interaction container.
Use autoPlay.
Use loop={false}.
The original avatar remains the only interactive and accessible element.
3. Replay the finite animation at controlled intervals
The existing Expensify Lottie wrapper already exposes its underlying LottieView instance through a ref. The installed lottie-react-native implementation supports play() and onAnimationFinish(isCancelled) on web, iOS, and Android, so no wrapper API change is required.
Keep a ref to the mounted Lottie instance.
When a non-cancelled animation cycle finishes, schedule another play() call after a short 750 ms delay.
Before scheduling a replay, clear any existing timeout so only one replay timeout can exist.
Before executing the replay, verify that:
The component is still mounted.
Reduced motion remains disabled.
The Lottie ref still exists.
This is not an unconditional infinite Lottie loop:
Each animation run remains finite.
loop remains false.
The existing Lottie instance is reused.
No React state update is required for each cycle.
The animation is not remounted between cycles.
Only one timeout exists between animation cycles.
Replay exists only while the relevant processing component remains mounted.
Clear pending replay work when:
Animation completion is cancelled.
Reduced motion becomes enabled.
The component unmounts.
Pre-response processing finishes.
Phase 1 transitions to the active-draft phase.
The active draft completes.
This maintains a recurring thinking signal during long processing times and temporary streaming pauses without introducing a React render loop or permanently running global animation.
4. Provide reliable fallbacks
Keep the normal avatar mounted underneath the animation.
When reduced motion is enabled, do not render the animated overlay. The normal Concierge avatar remains visible and all pending replay work is cancelled.
If the shared Lottie wrapper returns its empty fallback because the animation cannot load, the underlying normal avatar remains visible. No replay is scheduled because no successful animation-completion callback occurs.
When processing finishes, the animated wrapper is removed and the already-mounted normal avatar becomes visible immediately.
5. Preserve the Concierge identity
When Concierge personal details are missing or incomplete, the existing display-name resolution can incorrectly fall back to Hidden.
For Concierge specifically, use CONST.CONCIERGE_DISPLAY_NAME as the explicit:
Display name.
Tooltip fallback.
Active-draft accessibility label.
Apply this fallback only when the actor is Concierge. Custom agents must continue using their own identity and branding.
6. Animate the pre-response thinking avatar
In ConciergeThinkingMessage, wrap the existing ReportActionAvatars in ConciergeThinkingAvatar only when:
accountID===CONST.ACCOUNT_ID.CONCIERGE
Reduced-motion behavior remains inside the shared component.
ConciergeThinkingMessage is already mounted only while isProcessing is true. Therefore:
The animation begins when Concierge starts processing.
Controlled replay continues while processing remains active.
Transitioning to an active draft unmounts this animation instance and cancels its replay timeout.
When processing ends without a draft, the thinking row unmounts.
Custom-agent thinking rows continue rendering their normal avatars without Concierge branding.
7. Animate only the active Concierge draft
In ReportActionItemSingle, read the existing draft state:
When isActiveConciergeDraft is true, wrap the existing ReportActionAvatars in ConciergeThinkingAvatar.
The action-ID comparison ensures that only the response currently being revealed is animated.
The Concierge account check prevents custom-agent drafts from displaying Concierge branding.
Keep the existing avatar pressable in place so the active draft preserves:
Concierge profile navigation.
Selection handling.
Button role.
Concierge accessibility label.
Tooltip and hover behavior.
Pending-avatar feedback.
Existing spacing and layout.
When isDraftPendingCompletion becomes false, the animated wrapper unmounts, its pending replay timeout is cancelled, and the normal avatar is displayed.
⚠️@yusufdeveloper2903 Your proposal is a duplicate of an already existing proposal and has been automatically withdrawn to prevent spam. Please review the existing proposals before submitting a new one.
The solution for this issue has been 🚀 deployed to production 🚀 in version 9.4.44-6 and is now subject to a 7-day regression period 📆. Here is the list of pull requests that resolve this issue:
If no regressions arise, payment will be issued on 2026-08-03. 🎊
The following checklist (instructions) will need to be completed before the issue can be closed. Please copy/paste the BugZero 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]
[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.
Link to the comment on the PR:
Link to the comment on the Issue:
[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:
[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.
[BugZero Assignee] Create a GH issue for creating/updating the regression test once above steps have been agreed upon.
Activity
samranahm commentedon Jul 10, 2026
Proposal
What is the root cause of that problem?
Concierge answers are delivered as ordinary report actions and rendered by the report action list inside the report folder (the same folder that holds
ReportActionContextMenu.ts):App/src/pages/inbox/report/ContextMenu/ReportActionContextMenu.ts
Lines 144 to 145 in f08814b
Today the only "still working" cue is the transient typing indicator that reads the report typing/streaming Onyx signal. When the stream pauses between chunks, that signal briefly drops, the indicator disappears, and the last partial action renders like a finished message. There is no persistent, branded "thinking" element that stays visible across those short streaming gaps, so the user cannot tell that more content is still coming. The gap is that nothing bridges the momentary pauses in the streaming state, and nothing renders a dedicated animation while a Concierge or agent response is in progress in Concierge DMs and
#adminsthreads.What changes do you think we should make in order to solve the problem?
Add a small presentational component,
ConciergeThinkingIndicator.tsx, in the report folder alongside the existing report action UI, that renders the design-provided finite asset. Per the issue notes, use a triggered animated GIF or a non-looping Lottie through the existingLottie/index.tsxwrapper rather than an infinite loop, for performance.Render
ConciergeThinkingIndicatorfromReportActionsList(report folder location confirmed by the permalink above), gated so it only shows when the report is a Concierge DM or an#adminsroom thread and the latest Concierge/agent action is still in progress. Mount it in the same position the typing indicator uses so it appears at the bottom of the conversation.Keep it visible through temporary streaming pauses by debouncing the hide transition with
useDebounce, so a brief drop in the streaming signal does not flicker the animation off between chunks:App/src/hooks/useDebounce.ts
Lines 24 to 47 in f08814b
Show the animation immediately when a response starts and only hide it after the streaming state has stayed idle past the debounce window, which covers the temporary pauses described in the issue and hides once the response is truly complete.
What alternative solutions did you explore? (Optional)
Reminder: Please use plain English, be brief and avoid jargon. Feel free to use images, charts or pseudo-code if necessary. Do not post large multi-line diffs or write walls of text. Do not create PRs unless you have been hired for this job.
wildan-m commentedon Jul 10, 2026
Proposal
Please re-state the problem that we are trying to solve in this issue.
While Concierge is generating a response, streaming can pause briefly. During those pauses there is no clear, branded signal that Concierge is still working, so the in-progress answer can look already complete. We want a branded "thinking" animation that shows while a Concierge/agent response is in progress (including during temporary streaming pauses) and hides once the response is complete, in both Concierge DMs and
#adminsroom threads.What is the root cause of that problem?
The app already tracks "is the agent still working" correctly. The
AgentZerothinking indicator is driven byisProcessing, which combines the server-side processing NVP with a client optimistic counter and only clears when the agent's real reply lands (intermediate/streamed actions and pauses keep it active):App/src/hooks/useAgentZeroStatusIndicator.ts
Lines 343 to 366 in 29bb19f
So the "keep showing through pauses, hide on completion" logic is not the gap. The gap is purely visual: while that state is active, the thinking bubble conveys progress only through a low-emphasis, fading text label — there is no branded animation. The status is rendered as a single
Animated.Text(a short opacity fade on thestatusLabelstring), with no animated visual next to it:App/src/pages/home/report/ConciergeThinkingMessage.tsx
Lines 192 to 215 in 29bb19f
Because the only motion is a brief text fade that settles to a static label, a paused stream reads as a finished message. There is no branded, continuously-visible "AI is at work" cue, which is exactly what the issue asks for.
What changes do you think we should make in order to solve the problem?
Add the branded animation to the existing thinking bubble, driven by the state machine that already exists — no new streaming/response-state logic is needed.
ConciergeThinkingMessageContent, in the status row next to thestatusLabeltext, so it appears only while the bubble is mounted. The bubble is already gated onisProcessing, so the animation automatically shows through streaming pauses and hides the moment the agent's reply completes:App/src/pages/home/report/ConciergeThinkingMessage.tsx
Lines 65 to 79 in 29bb19f
Lottiewrapper component (which already handles reduced-motion, backgrounded-tab pausing, and load-failure fallbacks), and register the design-provided asset in theLottieAnimationsregistry so it is referenced the same way as every other in-app animation:App/src/components/LottieAnimations/index.tsx
Lines 8 to 99 in 29bb19f
Render it with
loop={false}to honor the issue's performance note preferring a finite/triggered animation over an infinite-loop Lottie.AgentZeroStatusContextprovider already qualifies both Concierge DMs and#admins(POLICY_ADMINS) rooms as agent-zero chats, so the same bubble — and therefore the new animation — surfaces in both automatically:App/src/pages/inbox/AgentZeroStatusContext.tsx
Lines 76 to 91 in 29bb19f
Because the design asset is still to be provided, the wiring can land first with a lightweight, self-contained animated indicator (a small pulsing "typing dots" built from the
react-native-reanimatedprimitives already imported in this file) occupying the same slot, so users get a continuous "still thinking" cue through pauses immediately. Swapping in the branded design.lottieafterward is then a single-line source change (register the asset and point theLottiesourceat it), with the gating, placement, and both-surface coverage already done.Compare branch: https://github.com/Expensify/App/compare/main...wildan-m:App:wildan/95634-concierge-thinking-animation?expand=1
What alternative solutions did you explore? (Optional)
ReportActionAvatars) used across the app and risks unintended visual regressions, whereas confining the animation to the thinking row keeps the change local to the Concierge indicator.ReportActionsListHeaderlevel rather than inside the bubble. This would duplicate the per-agent gating already handled byConciergeThinkingBubble(one bubble per candidate agent) and lose correct multi-agent attribution, so rendering inside the existing bubble is cleaner.melvin-bot commentedon Jul 10, 2026
Triggered auto assignment to Contributor-plus team member for initial proposal review - @truph01 (
External)[-]Add a branded "thinking" animation while Concierge is generating a response[/-][+][$250] Add a branded "thinking" animation while Concierge is generating a response[/+]melvin-bot commentedon Jul 10, 2026
Job added to Upwork: https://www.upwork.com/jobs/~022075641629465539112
aswin-s commentedon Jul 10, 2026
Please re-state the problem that we are trying to solve in this issue.
When Concierge is generating a response, streaming can pause temporarily, making it look like the answer is complete even when more is coming. Users have no clear visual signal that Concierge is still working. We need a branded "thinking" animation on Concierge's avatar that plays while a response is in progress — including during temporary streaming pauses on an already-landed reply — and reverts to the standard avatar once the response is fully complete. The animation must appear in Concierge DMs and
#adminsroom threads.What is the root cause of that problem?
This is a feature request, not a regression. The "thinking" state spans two distinct phases that each need an animated avatar:
Phase 1 — pre-reply bubble. While Concierge is generating but has not yet posted its reply,
ConciergeThinkingMessageinsrc/pages/home/report/ConciergeThinkingMessage.tsxrenders a separate thinking-bubble row. Inside it,ConciergeThinkingBubble(lines 65-79) guards onisProcessingfromuseAgentZeroStatusIndicator(src/hooks/useAgentZeroStatusIndicator.ts:58). The avatar in that bubble at lines 161-172 is a plainReportActionAvatarscomponent — a static image with no animation.Phase 2 — streaming reply. Once the agent's
ADDCOMMENTaction lands,useAgentZeroStatusIndicatorclears the optimistic store and NVP (src/hooks/useAgentZeroStatusIndicator.ts:343-361), which makesisProcessingfalse and unmounts the thinking bubble. However the reply can still be streaming — content is still arriving chunk by chunk. During any streaming pause in this phase the chat looks complete when it is not. There is currently no animated indicator on the in-progressADDCOMMENTrow's avatar.The
isProcessingboolean is the correct gate for Phase 1 only; covering Phase 2 requires a separate signal derived from the action's streaming state, which lives inReportActionItem(src/pages/inbox/report/ReportActionItem.tsx).What changes do you think we should make in order to solve the problem?
Step 1 — Add the Lottie asset.
Add the branded Concierge thinking Lottie file(s) from the linked Dropbox to
assets/animations/and export a named constant (e.g.ConciergeThinking) fromsrc/components/LottieAnimations/index.tsx, matching the existing pattern used by otherLottieconsumers in that file.Step 2 — Animate the Phase 1 bubble avatar (pre-reply).
In
src/pages/home/report/ConciergeThinkingMessage.tsx, replace (or overlay) the<ReportActionAvatars>block at lines 161-172 with a<Lottie>component (@components/Lottie) rendered at the same size as the actor avatar, but only when the agent is Concierge (accountID === CONST.ACCOUNT_ID.CONCIERGE). Fall back to the existingReportActionAvatarsfor custom agents where no branded animation exists.Use a non-looping / triggered Lottie per the issue's performance note — set
loop={false}and re-key on each newstatusLabel/reasoning-history entry so the animation retriggers as Concierge continues processing:Because
ConciergeThinkingBubblealready early-returnsnullwhen!isProcessing(lines 68-70), the Phase 1 animation is automatically unmounted once the NVP clears — no extra teardown wiring is needed. Preload the Lottie asset via theuseMemoizedLazyExpensifyIcons/lazy-asset pattern already in the file so the first render does not flash the static avatar before the animation loads.Step 3 — Animate the Phase 2 reply avatar (streaming reply).
The thinking bubble is suppressed as soon as the agent's ADDCOMMENT becomes the newest report action (Phase 2 starts), so the animation must move to the in-progress reply row itself. In
src/pages/inbox/report/ReportActionItem.tsx, identify whether the action is a still-streaming Concierge ADDCOMMENT. The streaming state is typically exposed via the action'spendingActionor a dedicated streaming flag on the onyx action object; check the action'sisStreamingfield (or equivalent — inspectReportActiontype insrc/types/onyx/ReportAction.tsfor the exact field name before implementing).When the Concierge ADDCOMMENT is confirmed to be still streaming (
action.actorAccountID === CONST.ACCOUNT_ID.CONCIERGE && isStreaming), replace the avatar slot rendered inReportActionItemwith the same<Lottie source={LottieAnimations.ConciergeThinking} loop={false} autoPlay />used in Step 2. Revert to the standard avatar onceisStreamingis false (i.e. the reply is complete). This covers the exact scenario the issue calls out: "Show the thinking animation when a Concierge/agent response is in progress (including during temporary streaming pauses)."Step 4 — Verify both entry points.
Confirm the Phase 1 animation covers both the Concierge DM path and the
#adminsroom thread path — both mountConciergeThinkingMessageviaReportActionsListHeaderat src/pages/inbox/report/ReportActionsListHeader.tsx:18. Confirm the Phase 2 animation covers the same two paths by verifying thatReportActionItemis rendered for Concierge ADDCOMMENT actions in both report types.What alternative solutions did you explore?
An animated GIF in place of Lottie was considered but ruled out by the issue's own guidance — a non-looping Lottie is the preferred format for performance reasons, and the Dropbox assets are already supplied as Lottie files. Infinite-loop Lottie was also explicitly excluded by the issue for the same reason.
github-actions commentedon Jul 10, 2026
yusufdeveloper2903 commentedon Jul 10, 2026
Proposal
What is the root cause of that problem?
A Concierge response has two visually distinct phases, and the reported bug lives in the second one — which none of the current proposals touch.
Phase 1 — pre-stream thinking bubble. Before any content arrives,
isProcessingis true and no draft exists yet, soConciergeThinkingMessagerenders as the list header with a static avatar. This is the only surface the existing proposals modify:App/src/pages/home/report/ConciergeThinkingMessage.tsx
Lines 65 to 79 in 1d5d806
Phase 2 — streaming the draft (the reported case). The moment the first chunk arrives, a draft report action exists, so
hasActiveDraftbecomes true andReportActionsListHeaderreturnsnull— the thinking bubble is unmounted:App/src/pages/inbox/report/ReportActionsListHeader.tsx
Lines 13 to 18 in 1d5d806
From here the partial answer is streamed into the list as an ordinary report action, rendered through
ReportActionItemSinglewith a plain staticReportActionAvatars:App/src/pages/inbox/report/ReportActionItemSingle.tsx
Lines 154 to 180 in 1d5d806
So during a streaming pause in Phase 2, the user sees a partial message with a static Concierge avatar and no motion anywhere — it reads exactly like a finished reply. That is precisely the issue's complaint: "streaming can pause temporarily. During these pauses it incorrectly looks like the answer is already complete."
The state to drive the animation already exists on the draft itself.
ConciergeDraftContextexposesdraftReportActionandisDraftPendingCompletion, which is true while the draft is streaming and flips false only whendraft.status === CONCIERGE_DRAFT_STATUS.COMPLETED(and no pending completion event) — i.e. it already models "Concierge is still working on this specific message", and holds through the temporary pauses:App/src/pages/inbox/ConciergeDraftContext.tsx
Lines 84 to 88 in 1d5d806
Nothing wires that state to an animated avatar, so the draft message's avatar stays static for the whole stream. This is a display-layer gap on the draft report action, not on the thinking bubble.
Both required surfaces are already covered by this same context.
ConciergeDraftProviderqualifies Concierge DMs,#admins(POLICY_ADMINS) rooms, and custom-agent chats identically, so a fix keyed on the draft applies to both surfaces the issue lists with no per-surface work:App/src/pages/inbox/ConciergeDraftContext.tsx
Lines 56 to 61 in 1d5d806
Negative case — why the existing-proposal surface can't fix this, and why the bug fires only during streaming pauses. The
ConciergeThinkingMessagebubble is unmounted for the entire duration ofhasActiveDraft(thenullreturn above), so animating its avatar does nothing during the streaming pauses the issue is about — it only affects the brief pre-draft window. And the bug is silent outside streaming becauseisDraftPendingCompletionis false before the draft exists and again once the status isCOMPLETED, so the avatar is only ever "wrongly static" during the pending-completion window.What changes do you think we should make in order to solve the problem?
1.
src/components/LottieAnimations/index.tsx— register the design-provided asset (ConciergeThinking) alongside the existing entries so it is referenced the same way as every other in-app animation:App/src/components/LottieAnimations/index.tsx
Lines 8 to 99 in 1d5d806
2.
src/pages/inbox/report/ReportActionItemSingle.tsx— read the draft state and, when this action is the streaming draft still pending completion, render the branded finite Lottie in the avatar slot instead of the staticReportActionAvatars:Route it through the existing
Lottiewrapper (reduced-motion, backgrounded-tab pausing and load-failure fallback are already handled there) and render withloop={false}per the issue's performance note:App/src/components/Lottie/index.tsx
Lines 23 to 27 in 1d5d806
3. No extra work is needed for the two required surfaces or for bridging pauses —
ConciergeDraftProvideralready covers Concierge DMs and#admins, andisDraftPendingCompletionalready holds through streaming pauses.This is safe because:
action.reportActionID === draftReportAction?.reportActionID, so only the single streaming Concierge/agent message animates; every other row — including the user's own messages — rendersReportActionAvatarsexactly as today.isDraftPendingCompletionstays true through streaming pauses and flips false the moment the draft status isCOMPLETED, so the avatar automatically returns to the normal Concierge avatar on completion with no teardown wiring — matching the issue's stated behavior.ConciergeDraftProviderqualifies Concierge DMs,#admins, and custom-agent chats with the sameisAgentZeroChatgate, so one change covers both required surfaces.Lottiewrapper already falls back to an empty view ononAnimationFailure; keepReportActionAvatarsas the else branch so a failed asset load still shows the normal avatar.loop={false}honors the issue's explicit preference for a finite/triggered animation over an infinite-loop Lottie.Note: the short Phase-1 pre-stream window (the
ConciergeThinkingMessagebubble) can optionally get the same branded avatar for visual continuity, but it is not where the reported "looks complete during pauses" symptom occurs — the streaming draft in Phase 2 is, so that is the required fix.Result: while Concierge is streaming — including across the temporary pauses the issue describes — the draft message's avatar animates with the branded asset in both Concierge DMs and
#adminsthreads, and snaps back to the normal avatar the instant the draft completes.What alternative solutions did you explore? (Optional)
ConciergeThinkingMessage(the approach every current proposal takes) — rejected as incomplete:ReportActionsListHeaderunmounts that bubble for the entirehasActiveDraftwindow, so it never renders during the streaming pauses the issue is about. It only covers the brief pre-draft moment, not the reported case.ReportActionsListindicator that re-derives a streaming flag — rejected: it duplicates state at the wrong layer when the draft already exposesisDraftPendingCompletion, and it still doesn't put the branded cue on the avatar the issue asks for.ReportActionAvatarsa global "processing" prop — rejected: it is rendered in ~26 places and a shared change risks regressions; gating at the single draft action insideReportActionItemSinglekeeps the change local and precise.x-dev90 commentedon Jul 10, 2026
Proposal
What is the root cause of the problem?
The application already has the state required to determine whether Concierge is still processing, but that state is not connected to a persistent visual thinking cue.
A Concierge response passes through two rendering phases.
Phase 1: Before response content appears
AgentZeroStatusProviderincludes Concierge DMs and#adminsrooms in the Agent Zero status flow.During this phase,
useAgentZeroStatusIndicatorexposesisProcessing. This remains active through temporary status-label gaps and becomes false only when the relevant processing state finishes.While
isProcessingis true,ConciergeThinkingMessagerenders a separate thinking row. Its avatar currently uses the normal staticReportActionAvatars.Phase 2: While the response is progressively revealed
Once a Concierge draft response exists,
hasActiveDraftbecomes true andReportActionsListHeaderremoves the separate thinking row.The partial response is then rendered as a regular report action through
ReportActionItemSingle.The state required for this phase already exists in
ConciergeDraftContext:draftReportActionidentifies the currently revealed draft action.isDraftPendingCompletionremains true while that draft is awaiting completion, including temporary periods where no new content is revealed.During a streaming pause, the partial response can otherwise look complete even though Concierge is still processing.
Finite animation lifecycle
The approved Lottie asset is finite. Its final frame returns to an ordinary-looking avatar state, so playing it only once does not provide a sufficiently clear thinking signal when processing lasts longer than one animation cycle.
Holding the animation at a controlled
progressvalue was explored, butlottie-react-nativedoes not supportprogresson web and the behavior is not reliable across all supported platforms.No new processing or streaming state is needed. The existing
isProcessingandisDraftPendingCompletionstates define the lifecycle. A short presentation-only replay timer is needed to retrigger the finite animation while that lifecycle remains active.What changes should we make to solve the problem?
Use the same approved branded animation in the avatar position during both response phases.
1. Add and register the approved animation
Add the approved
.lottiefile underassets/animations/.Register it as
ConciergeThinkinginsrc/components/LottieAnimations/index.tsxand render it through the existing sharedLottiewrapper.The animated avatar should use an explicit 40×40 container matching the normal report-action avatar.
2. Add a shared
ConciergeThinkingAvatarCreate a shared component that renders the existing normal avatar as its child and places the branded Lottie animation in an absolute overlay.
Keep the normal
ReportActionAvatarsmounted underneath the animation. This preserves:The animation overlay should:
pointerEvents="none"so it cannot intercept hover or press events.aria-hiddenon web.accessibilityElementsHiddenon iOS.importantForAccessibility="no-hide-descendants"on Android.autoPlay.loop={false}.The original avatar remains the only interactive and accessible element.
3. Replay the finite animation at controlled intervals
The existing Expensify
Lottiewrapper already exposes its underlyingLottieViewinstance through a ref. The installedlottie-react-nativeimplementation supportsplay()andonAnimationFinish(isCancelled)on web, iOS, and Android, so no wrapper API change is required.Keep a ref to the mounted Lottie instance.
When a non-cancelled animation cycle finishes, schedule another
play()call after a short 750 ms delay.Before scheduling a replay, clear any existing timeout so only one replay timeout can exist.
Before executing the replay, verify that:
This is not an unconditional infinite Lottie loop:
loopremains false.Clear pending replay work when:
This maintains a recurring thinking signal during long processing times and temporary streaming pauses without introducing a React render loop or permanently running global animation.
4. Provide reliable fallbacks
Keep the normal avatar mounted underneath the animation.
When reduced motion is enabled, do not render the animated overlay. The normal Concierge avatar remains visible and all pending replay work is cancelled.
If the shared Lottie wrapper returns its empty fallback because the animation cannot load, the underlying normal avatar remains visible. No replay is scheduled because no successful animation-completion callback occurs.
When processing finishes, the animated wrapper is removed and the already-mounted normal avatar becomes visible immediately.
5. Preserve the Concierge identity
When Concierge personal details are missing or incomplete, the existing display-name resolution can incorrectly fall back to
Hidden.For Concierge specifically, use
CONST.CONCIERGE_DISPLAY_NAMEas the explicit:Apply this fallback only when the actor is Concierge. Custom agents must continue using their own identity and branding.
6. Animate the pre-response thinking avatar
In
ConciergeThinkingMessage, wrap the existingReportActionAvatarsinConciergeThinkingAvataronly when:Reduced-motion behavior remains inside the shared component.
ConciergeThinkingMessageis already mounted only whileisProcessingis true. Therefore:Custom-agent thinking rows continue rendering their normal avatars without Concierge branding.
7. Animate only the active Concierge draft
In
ReportActionItemSingle, read the existing draft state:When
isActiveConciergeDraftis true, wrap the existingReportActionAvatarsinConciergeThinkingAvatar.The action-ID comparison ensures that only the response currently being revealed is animated.
The Concierge account check prevents custom-agent drafts from displaying Concierge branding.
Keep the existing avatar pressable in place so the active draft preserves:
Conciergeaccessibility label.When
isDraftPendingCompletionbecomes false, the animated wrapper unmounts, its pending replay timeout is cancelled, and the normal avatar is displayed.Previous Concierge responses, completed drafts, custom-agent drafts, user-authored messages, and unrelated report actions remain unchanged.
8. Cover both required surfaces
No separate report-type-specific rendering implementation is required.
The existing providers already support:
#adminsroom threads.Both surfaces pass through the same pre-response and active-draft components.
Tests to add
Add focused coverage for:
#adminsrooms use the animated avatar.Conciergeidentity instead ofHidden.Conciergeas its fallback display name.loop={false}.draftReportAction.reportActionIDis animated.Conciergeaccessibility label.What alternative solutions did you explore?(Optional)
Fixed Demo
updated-worked-95634.webm
github-actions commentedon Jul 10, 2026
31 remaining items
melvin-bot commentedon Jul 27, 2026
@truph01
The solution for this issue has been 🚀 deployed to production 🚀 in version 9.4.44-6 and is now subject to a 7-day regression period 📆. Here is the list of pull requests that resolve this issue:
If no regressions arise, payment will be issued on 2026-08-03. 🎊
The following checklist (instructions) will need to be completed before the issue can be closed. Please copy/paste the BugZero 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]
danielrvidal commentedon Jul 29, 2026
Woo, we'll wait for this to be cleared for regression testing but awesome work!
melvin-bot commentedon Jul 30, 2026
@truph01 Uh oh! This issue is overdue by 2 days. Don't forget to update your issues!
melvin-bot commentedon Aug 2, 2026
Triggered auto assignment to @mallenexpensify (
Awaiting Payment)melvin-bot commentedon Aug 2, 2026
Payment Summary
Upwork Job
BugZero Checklist (@mallenexpensify)
mallenexpensify commentedon Aug 5, 2026
Payment Summary
Contributor+: @truph01 due $250 via NewDot
@truph01 plz complete the BZ checklist and tag me in a post once you have. Thx
truph01 commentedon Aug 6, 2026
BugZero 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.
Link to the comment on the PR:
Link to the comment on the Issue:
[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:
[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.
[BugZero Assignee] Create a GH issue for creating/updating the regression test once above steps have been agreed upon.
Link to issue: https://github.com/Expensify/Expensify/issues/669339
Regression Test Proposal
Precondition:
Test:
Do we agree 👍 or 👎
Zapier Logs
Run ID: 00040eee-48bd-ae1c-1fca-931c22d40ec4garrettmknight commentedon Sep 3, 2026
$250 approved for @truph01