Commit f986d9c
fix: use SDK-recommended sort pattern for message ordering
Sort messages by serial using comparison operators as shown in the Chat
SDK documentation, rather than findIndex/splice insertion.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent 559c5d6 commit f986d9c
1 file changed
Lines changed: 1 addition & 10 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
20 | | - | |
21 | | - | |
22 | | - | |
23 | | - | |
24 | | - | |
25 | | - | |
26 | | - | |
27 | | - | |
28 | | - | |
29 | | - | |
| 20 | + | |
30 | 21 | | |
31 | 22 | | |
32 | 23 | | |
| |||
0 commit comments