Commit 32e7ab5
committed
fix: allow merging regular user messages into summary in API shaping
The mergeConsecutiveApiMessages function now allows merging a regular
user message that follows a summary message. Since this is API-only
shaping (storage is unaffected), rewind semantics remain intact.
- Remove !prev.isSummary guard to allow merge INTO summary
- Keep !msg.isSummary guard to prevent merging a summary INTO something
- Update tests to reflect new expected behavior1 parent 16296c8 commit 32e7ab5
2 files changed
Lines changed: 19 additions & 3 deletions
Lines changed: 17 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
22 | | - | |
| 22 | + | |
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
28 | 42 | | |
| 43 | + | |
| 44 | + | |
29 | 45 | | |
30 | 46 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
37 | | - | |
38 | | - | |
| 37 | + | |
| 38 | + | |
39 | 39 | | |
40 | 40 | | |
41 | 41 | | |
| |||
0 commit comments