Repository navigation
Commit 191b721
fix(web): keep reasoning previews that only have leading whitespace
A long trace whose only whitespace is leading (for example CJK text after
blank lines) was cut at that whitespace, leaving an empty preview that fell
back to "Thought". Fall back to the bounded head when the word cut is blank.
Co-Authored-By: Claude Opus 5.5 <[email protected]>1 parent ab30fde commit 191b721
2 files changed
Lines changed: 9 additions & 2 deletions
File tree
- apps/web/src/components/chat
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
16 | 21 | | |
17 | 22 | | |
18 | 23 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
196 | 196 | | |
197 | 197 | | |
198 | 198 | | |
199 | | - | |
200 | | - | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
201 | 203 | | |
202 | 204 | | |
203 | 205 | | |
| |||
0 commit comments