v0.9.4 is live! — Read the latest technical documentation and migration guides.

docmd-assistant v0.1.12 delivers critical fixes for multi-turn tool execution during SSE streaming, ensuring seamless tool calls without leaking raw syntax into the chat UI.

Key Features & Enhancements

SSE Streaming Tool Loop Fixes

Fixed an issue in runRelayStreamLoop where Server-Sent Events (SSE) streaming responses containing tool calls exited early without executing local tools:

  • Full Tool Execution in SSE: The SSE streaming reader now parses both structured dataObj.tool_calls and text-based tool calls ([Tool Call: ...]), executes registered tools locally, and proceeds to Turn 2 synthesis.
  • Turn 1 Chunk Buffering: Tokens generated during Turn 1 tool evaluation are buffered until tool parsing completes, preventing raw tool call syntax from flashing inside user chat bubbles.
  • Live Turn 2 Synthesis Streaming: Real-time token streaming (callbacks.onChunk) is active during Turn 2 synthesis, delivering instant token-by-token rendering of final synthesized answers.
  • Status Badge Emission: Seamlessly emits tool status updates ("Searching documentation for...") during SSE tool evaluation turns.

Upgrade

npm
pnpm
npm install docmd-assistant@0.1.12
pnpm add docmd-assistant@0.1.12