Commit 3b39d14
committed
fix: terminal sendChatMessage — handle streaming/started status, extend timeout to 2min
The terminal only handled status='ok' responses. When gateway returns
'started'/'streaming'/'in_flight' (async responses), the function fell
through without acknowledging, causing responses to appear lost.
Now properly waits for streaming events on async status codes.1 parent 94f3791 commit 3b39d14
1 file changed
Lines changed: 28 additions & 16 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
544 | 544 | | |
545 | 545 | | |
546 | 546 | | |
| 547 | + | |
| 548 | + | |
547 | 549 | | |
548 | 550 | | |
549 | 551 | | |
550 | 552 | | |
551 | 553 | | |
552 | 554 | | |
553 | 555 | | |
554 | | - | |
555 | | - | |
| 556 | + | |
| 557 | + | |
| 558 | + | |
| 559 | + | |
| 560 | + | |
| 561 | + | |
| 562 | + | |
| 563 | + | |
| 564 | + | |
| 565 | + | |
| 566 | + | |
| 567 | + | |
| 568 | + | |
| 569 | + | |
| 570 | + | |
| 571 | + | |
| 572 | + | |
| 573 | + | |
| 574 | + | |
| 575 | + | |
| 576 | + | |
556 | 577 | | |
557 | 578 | | |
558 | 579 | | |
559 | | - | |
560 | | - | |
561 | | - | |
562 | 580 | | |
| 581 | + | |
| 582 | + | |
563 | 583 | | |
564 | | - | |
565 | | - | |
566 | | - | |
567 | | - | |
568 | | - | |
569 | | - | |
570 | | - | |
571 | | - | |
572 | | - | |
573 | | - | |
574 | | - | |
| 584 | + | |
| 585 | + | |
| 586 | + | |
575 | 587 | | |
576 | 588 | | |
577 | 589 | | |
| |||
0 commit comments