dbx/packages
Abeautifulsnow e7dffeca37
fix(ai): tool call status cards, table overflow, streaming TextDelta
* fix(ai): merge tool call status cards

* fix(ai): constrain markdown table overflow

* fix(ai): restore streaming of answer text via TextDelta events

The on_chunk closure was missing live AgentEvent::TextDelta emission for text content, causing the AI answer text to appear all at once after the turn completed. Reasoning deltas were unaffected.

Root cause: commit c30033628 rewrote the on_chunk closure and accidentally dropped the TextDelta emit line while keeping ReasoningDelta intact.

Fix: restore TextDelta emit in on_chunk for incremental streaming, and remove the post-turn full-TextDelta workaround which would duplicate content.

* test(ai): extract chunk_to_events and add streaming event tests

Extract the event-generation logic from the on_chunk closure into a pure function chunk_to_events() to make it testable, and add 6 unit tests covering all chunk content combinations: text-only, reasoning-only, mixed, empty, and edge cases.

This ensures a regression like the one fixed in the previous commit (where TextDelta emission was dropped while ReasoningDelta was kept) would be caught by tests.
2026-07-02 18:49:50 +08:00
..
app-tests fix(ai): tool call status cards, table overflow, streaming TextDelta 2026-07-02 18:49:50 +08:00
cli chore(packages): release 0.4.19 [skip node-packages-release] 2026-07-01 18:59:34 +00:00
mcp-server chore(packages): release 0.4.19 [skip node-packages-release] 2026-07-01 18:59:34 +00:00
node-core feat(connection): add StarRocks TLS support 2026-07-02 16:37:20 +08:00
test-globals.ts feat(grid): support datetime formatter patterns 2026-06-30 20:37:23 +08:00