Commit 555e505
committed
fix(js/client): forward chat-response into chatStream() to match Python
A publisher that ignores the stream:true flag (chat_handler returns a
plain string or {text}) replies with a single chat-response envelope
instead of chat-chunks. zhub/client.py:549-552 unpacks that into
{delta:text, done:false} + {done:true} so chat_stream() yields the
text and exits cleanly; the JS port routed chat-response only through
the pending Map, so a chatStream() caller hung for the full
timeoutPerChunkMs (default 60s) on what is the most common publisher
shape.1 parent b73e7c0 commit 555e505
1 file changed
Lines changed: 11 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
683 | 683 | | |
684 | 684 | | |
685 | 685 | | |
| 686 | + | |
| 687 | + | |
| 688 | + | |
| 689 | + | |
| 690 | + | |
| 691 | + | |
| 692 | + | |
| 693 | + | |
| 694 | + | |
| 695 | + | |
| 696 | + | |
686 | 697 | | |
687 | 698 | | |
688 | 699 | | |
| |||
0 commit comments