Commit 310e369
fix(frontend): interleave thinking messages correctly in snapshots (#891)
## Summary
- Implement stable sort in handleMessagesSnapshot that preserves
original order for equal timestamps
- Fixes thinking blocks stacking instead of interleaving with agent
messages
## Test plan
- [x] Frontend unit tests pass (471 passed)
- [x] ESLint passes
- [x] Build succeeds
- [ ] Manual test: session with thinking, verify interleaved display on
reconnect
Fixes: RHOAIENG-52655
🤖 Generated with [Claude Code](https://claude.com/claude-code)
**Jira:**
[RHOAIENG-52655](https://issues.redhat.com/browse/RHOAIENG-52655)
---------
Co-authored-by: Ambient Code Bot <bot@ambient-code.local>
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>1 parent e0644f2 commit 310e369
1 file changed
Lines changed: 12 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
847 | 847 | | |
848 | 848 | | |
849 | 849 | | |
850 | | - | |
| 850 | + | |
| 851 | + | |
| 852 | + | |
| 853 | + | |
851 | 854 | | |
852 | 855 | | |
853 | 856 | | |
854 | | - | |
855 | | - | |
856 | | - | |
857 | | - | |
| 857 | + | |
| 858 | + | |
| 859 | + | |
| 860 | + | |
| 861 | + | |
| 862 | + | |
| 863 | + | |
| 864 | + | |
858 | 865 | | |
859 | 866 | | |
860 | 867 | | |
| |||
0 commit comments