Commit 5fe2b70
committed
fix(client): _handle_chat coerces None handler result to empty text
A chat_handler that forgets `return` returns None. The single-shot else
branch called `str(result)`, shipping the literal three-character string
"None" over the wire as the assistant reply. Special-case None → empty
text so the common publisher-side mistake fails quiet, not embarrassingly.
Matches the JS port's `String(awaited ?? '')`.1 parent f31e34d commit 5fe2b70
1 file changed
Lines changed: 6 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
425 | 425 | | |
426 | 426 | | |
427 | 427 | | |
| 428 | + | |
| 429 | + | |
| 430 | + | |
| 431 | + | |
| 432 | + | |
| 433 | + | |
428 | 434 | | |
429 | 435 | | |
430 | 436 | | |
| |||
0 commit comments