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] Chat UI showing out of sequence messages #23851
Love the chat UI function as I can easily move conversations around without all the code nonsense. However, on occasion the prompts I paste to run the agent will show AFTER the response to that prompt, so outside of the expected chronological order which can make things very confusing.
Rank 2: Pending user prompts (pending:* and launch-pending:*)
compareMessages sorts by rank before timestamp:
rank 0 (assistant response) --> appears first
rank 2 (pasted user prompt) --> appears after response
Even though the prompt timestamp was 7:26 AM and the assistant reply was 8:42 AM, Rank 0 sorts before Rank 2. If prompt pruning lags or fails to match against transcript text, the
prompt stays pinned at the bottom.
Just came in here to mention that I'm seeing the exact same issue and it makes it hard to use the chat UI. At some point, a previous prompt gets duplicated and stays stuck at the bottom of the thread and persists there with all of the subsequent messages appearing before it. Once that duplication happens, other prompts start stacking below that original stuck one.
Activity
orca-discord-issues commentedon Sep 30, 2026
via DiscordI've seen the very same issue.
orca-discord-issues commentedon Sep 30, 2026
via DiscordCause
In native-chat-session-assembler.ts, messageSortRank forces pending user prompts into a tier below assistant responses:
compareMessages sorts by rank before timestamp:
Even though the prompt timestamp was 7:26 AM and the assistant reply was 8:42 AM, Rank 0 sorts before Rank 2. If prompt pruning lags or fails to match against transcript text, the
prompt stays pinned at the bottom.
orca-discord-issues commentedon Sep 30, 2026
via DiscordProposed Fix
orca-discord-issues commentedon Oct 4, 2026
via DiscordJust came in here to mention that I'm seeing the exact same issue and it makes it hard to use the chat UI. At some point, a previous prompt gets duplicated and stays stuck at the bottom of the thread and persists there with all of the subsequent messages appearing before it. Once that duplication happens, other prompts start stacking below that original stuck one.
orca-discord-issues commentedon Oct 4, 2026
via DiscordAnd, then, at some point, the messages/prompts just start not making it to the underlying terminal session.
orca-discord-issues commentedon Oct 4, 2026
via DiscordSame issues with me too
orca-discord-issues commentedon Oct 5, 2026
via Discord#24207 is the fix waiting for review.