Sending a message while a turn is still running queues it server side, but the web timeline renders it as an ordinary bubble. Nothing shows it has not started yet, so it reads as dropped until the next turn suddenly picks it up. Mobile already derives and shows this state in its thread list; the web timeline had nothing.
The obvious key, turnId === null, does not work: the decider persists every user message with a null turnId by design, and the actual linkage (pending_message_id on the turn) never reaches the wire. So the row derivation in MessagesTimeline.logic.ts mirrors what mobile's hasQueuedTurnStart does instead: a user message strictly newer than every timestamp of the still unsettled latest turn is queued. The message that started the turn shares its createdAt with the turn's requestedAt, so it compares equal and stays unmarked. When a turn adopts the queued message, that turn becomes the latest turn with a matching requestedAt, and the flag clears on its own with no client bookkeeping.
Rendering is one line in MessagesTimeline.tsx: a muted "Queued" label under the bubble, reusing the timeline's existing micro label style (text-secondary-label text-[11px], same as the "Worked for" rows). It deliberately sits outside the hover-only footer, since anything in there is invisible at rest. The queued flag is included in isRowUnchanged so the memoized row actually re-renders when adoption clears it.
Verification#
In apps/web:
vp test run src/components/chat/MessagesTimeline.logic.test.ts src/components/chat/MessagesTimeline.test.tsx: 2 files, 51 passed, including the two new cases (mid-turn message is flagged, the turn starter is not)
tsgo --noEmit: clean
vp lint and vp fmt --check on the touched files: clean
Screenshots#
Same seeded thread, identical crop. "Refactor the settings panel" started the running turn; "Also add tests for the edge cases" was sent mid-turn.
Before:

After:

Change made by Claude Opus via Claude Code.
Note
Low Risk
UI-only timeline derivation and labeling with no auth or persistence changes; behavior is covered by new unit tests.
Overview
Adds a visible “Queued” state for user messages that land in the timeline while another turn is still unsettled, matching mobile’s hasQueuedTurnStart heuristic instead of relying on turnId === null.
Row derivation in MessagesTimeline.logic.ts now pulls requestedAt on latestTurn, compares each user message’s createdAt against the unsettled latest turn’s timestamps, and sets a queued flag on message rows (cleared automatically when a new turn adopts the message via matching requestedAt). Stable row memoization includes queued so adoption updates re-render.
MessagesTimeline.tsx renders a muted “Queued” label under the user bubble (outside hover-only chrome). Tests add requestedAt fixtures and cover mid-turn queuing vs turn-starter and settled-turn cases.
Reviewed by [Cursor Bugbot](https://cursor.com/bugbot) for commit 278660e12b2248475320b87856edec0b8299ba30. Bugbot is set up for automated code reviews on this repo. Configure [here](https://www.cursor.com/dashboard/bugbot).
Note
Show queued state on user messages sent while a turn is running#
- Adds a
queued boolean field to MessagesTimelineRow message variants, computed in MessagesTimeline.logic.ts via a new isQueuedUserMessage function that checks whether the message was created after all timestamps on the current unsettled turn.
- The queued flag clears automatically once a new turn adopts the message (matched via
requestedAt).
- Renders a "Queued" label beneath the user message bubble in
MessagesTimeline.tsx when the flag is set.
- Extends
TimelineLatestTurn to require requestedAt, and updates isRowUnchanged to diff the new queued field so the virtualized list re-renders on state changes.
📊 Macroscope summarized 278660e. 2 files reviewed, 0 issues evaluated, 0 issues filtered, 0 comments posted
🗂️ Filtered Issues#
No issues evaluated.
Important
Review skipped#
Auto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the
.coderabbit.yamlfile in this repository. To trigger a single review, invoke the@coderabbitai reviewcommand.⚙️ Run configuration
Configuration used: Repository UI
Review profile: CHILL
Plan: Pro Plus
Run ID:
de28aa73-cc6f-4147-9f6e-0676fa26bc6cYou can disable this status message by setting the
reviews.review_statustofalsein the CodeRabbit configuration file.Use the checkbox below for a quick retry:
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.
❤️ Share