mirror of
https://github.com/davidkaya/aryx.git
synced 2026-07-23 13:08:36 +02:00
Replace the single aggregate thinking tile with per-turn thinking groups. Instead of collecting all thinking messages into one flat array and rendering a single ThinkingProcess before the last assistant message, process session.messages in chronological order to produce interleaved display items that naturally group consecutive thinking messages by turn. Each turn now shows its own collapsible thinking tile placed inline before its assistant response, with correct per-turn isActive state and turnStartedAt from the matching run. Also fixes a latent index-mismatch bug in getAssistantMessagePhase where the visible-messages index was compared against the full session.messages index, potentially hiding the Final badge when thinking messages existed. Switched to ID-based comparison. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>