mirror of
https://github.com/patriceckhart/zot.git
synced 2026-06-27 05:46:34 +02:00
renderToolCall used to prepend a blank line at the top of each of its three branches (streaming-with-body, finished-no-result, finished-with-result) so the live box wouldn't sit flush against the prose / previous tool block above it. That made sense before each tool result owned its own complete box \u2014 back then the assistant message also injected a blank before its embedded top edge, and the two paths matched. After the box-ownership refactor the transcript path no longer emits a leading blank (Build()'s natural inter-message separator provides one), but renderToolCall still did, so a streaming tool sat two blank rows below the previous content while the same call, once finalised, sat only one. The visible "snap tighter" when streaming ended was the doubled gap collapsing. Drop the three leading blanks. Build()'s inter-message blank is the single source of vertical spacing now, so streaming and finalised forms have identical gaps. |
||
|---|---|---|
| .. | ||
| agent | ||
| assets | ||
| auth | ||
| core | ||
| extproto | ||
| provider | ||
| skills | ||
| tui | ||