Commit 80aba94
SIN CI
fix(tui): rendering quality — truncate tool output, wrap code blocks, handle empty responses
4 real bugs in existing rendering code:
1. renderToolOutput: no line limit → truncate to 50 lines + indicator
2. renderCodeBlock: no line wrapping → MaxWidth wrap + 200-line limit
3. renderAssistantBubble: empty response → Thinking… or header-only
4. renderToolCard: input truncation by byte len → display width
Build ✅ | Tests ✅1 parent bc5a9c0 commit 80aba94
2 files changed
Lines changed: 43 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
313 | 313 | | |
314 | 314 | | |
315 | 315 | | |
| 316 | + | |
| 317 | + | |
| 318 | + | |
| 319 | + | |
| 320 | + | |
| 321 | + | |
| 322 | + | |
| 323 | + | |
| 324 | + | |
| 325 | + | |
| 326 | + | |
| 327 | + | |
316 | 328 | | |
317 | 329 | | |
318 | 330 | | |
| |||
324 | 336 | | |
325 | 337 | | |
326 | 338 | | |
| 339 | + | |
327 | 340 | | |
328 | 341 | | |
329 | 342 | | |
| |||
333 | 346 | | |
334 | 347 | | |
335 | 348 | | |
| 349 | + | |
| 350 | + | |
| 351 | + | |
| 352 | + | |
336 | 353 | | |
337 | 354 | | |
338 | 355 | | |
| |||
354 | 371 | | |
355 | 372 | | |
356 | 373 | | |
| 374 | + | |
| 375 | + | |
| 376 | + | |
| 377 | + | |
| 378 | + | |
| 379 | + | |
| 380 | + | |
| 381 | + | |
| 382 | + | |
| 383 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2326 | 2326 | | |
2327 | 2327 | | |
2328 | 2328 | | |
| 2329 | + | |
| 2330 | + | |
| 2331 | + | |
| 2332 | + | |
| 2333 | + | |
| 2334 | + | |
| 2335 | + | |
2329 | 2336 | | |
2330 | 2337 | | |
2331 | 2338 | | |
| |||
2638 | 2645 | | |
2639 | 2646 | | |
2640 | 2647 | | |
| 2648 | + | |
| 2649 | + | |
| 2650 | + | |
| 2651 | + | |
| 2652 | + | |
| 2653 | + | |
| 2654 | + | |
| 2655 | + | |
2641 | 2656 | | |
2642 | 2657 | | |
2643 | 2658 | | |
| |||
2725 | 2740 | | |
2726 | 2741 | | |
2727 | 2742 | | |
2728 | | - | |
| 2743 | + | |
2729 | 2744 | | |
2730 | 2745 | | |
2731 | 2746 | | |
| |||
0 commit comments