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
[Bug]: Mobile feed repeats a running turn's Working row once a queued follow-up is accepted #40073
I searched existing issues and did not find a duplicate.
I included enough detail to reproduce or investigate the problem.
Area
apps/mobile
Steps to reproduce
On Android or iOS, start a turn that keeps working for a while, for example a
foreground shell command that sleeps for three minutes.
While it runs, type a follow-up and tap Queue.
Wait for the server to accept the queued message, then let the screen render
again (the Working timer ticking is enough).
Expected behavior
The running turn has one "Working for" row, and the queued follow-up waits under
it.
Actual behavior
The feed hands its list the running turn's fold row twice under the same key. In
an Android dev build LegendList reports [legend-list] Error: Detected overlapping key (run-fold:run:thread:...) as
soon as the follow-up is accepted, and again on later renders, until a run picks
the follow-up up.
The cached feed presentation causes it. The accepted follow-up sits at the end
of the feed with no run, so the next render reuses every row above it, including
the running turn's fold, and rebuilds only the tail. No entry of the running
turn follows the message, so the tail adds the fold a second time. An uncached
build of the same feed has the row once.
Impact
A duplicate list key on every render while a follow-up is queued behind a
running turn: an error toast in dev builds, and a repeated row in the feed until
the thread catches up.
Version or commit
main at c53ac23. A unit test reproduces it there; the app showed it on a
build of that commit with unrelated local patches.
Environment
T3 Code mobile dev client on Android (Waydroid, Android 13), against a T3 server
on Linux. Seen with a Codex turn; the provider should not matter.
Activity