Commit 73eb998
kostiantyn-kugot
fix: hide empty intermediate assistant messages in TUI
When using the Responses API, intermediate assistant messages with
finish reason "other" were rendering empty footer bars and blank
space. Two changes:
1. Add "other" to the excluded finish reasons in final() to align
with the prompt loop logic that treats "other" as non-terminal.
2. Add a reactive visible() memo that hides the entire
AssistantMessage when no parts would render and no footer/error
is shown.1 parent 168d7a9 commit 73eb998
1 file changed
+24
-4
lines changedLines changed: 24 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1349 | 1349 | | |
1350 | 1350 | | |
1351 | 1351 | | |
1352 | | - | |
| 1352 | + | |
1353 | 1353 | | |
1354 | 1354 | | |
1355 | 1355 | | |
| |||
1362 | 1362 | | |
1363 | 1363 | | |
1364 | 1364 | | |
| 1365 | + | |
| 1366 | + | |
| 1367 | + | |
| 1368 | + | |
| 1369 | + | |
| 1370 | + | |
| 1371 | + | |
| 1372 | + | |
| 1373 | + | |
| 1374 | + | |
| 1375 | + | |
| 1376 | + | |
| 1377 | + | |
| 1378 | + | |
| 1379 | + | |
| 1380 | + | |
| 1381 | + | |
| 1382 | + | |
| 1383 | + | |
| 1384 | + | |
1365 | 1385 | | |
1366 | | - | |
| 1386 | + | |
1367 | 1387 | | |
1368 | 1388 | | |
1369 | 1389 | | |
| |||
1402 | 1422 | | |
1403 | 1423 | | |
1404 | 1424 | | |
1405 | | - | |
| 1425 | + | |
1406 | 1426 | | |
1407 | 1427 | | |
1408 | 1428 | | |
| |||
1427 | 1447 | | |
1428 | 1448 | | |
1429 | 1449 | | |
1430 | | - | |
| 1450 | + | |
1431 | 1451 | | |
1432 | 1452 | | |
1433 | 1453 | | |
| |||
0 commit comments