mirror of
https://github.com/HKUDS/nanobot.git
synced 2026-04-02 17:32:39 +00:00
When a tool call triggers a mid-turn _stream_end(resuming=True), Feishu channel unconditionally popped the buffer and closed the streaming card. The next segment then created a new card, causing duplicate/fragmented replies. Now send_delta checks _resuming: if True, it flushes current text to the existing card but keeps the buffer alive so subsequent segments append to the same card. Only the final _stream_end (resuming=False) pops the buffer and closes streaming mode. Made-with: Cursor