mirror of
https://github.com/patriceckhart/zot.git
synced 2026-06-28 06:13:42 +02:00
Each tool block now renders as a labelled box: \u250c\u2500 bash ls -la \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2510 \u2502 $ ls -la \u2502 \u2502 total ... \u2502 \u2514\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2518 instead of the open top/bottom horizontal rules used previously. The tool name + short args are embedded in the top edge so each call has a self-contained frame; body lines get vertical edges with a 1-cell inner gutter; image escapes are passed through un-bordered so the graphics layer isn't smeared. Each tool_result message owns its complete box (top + body + bottom). When the model batches multiple tool_use blocks in one assistant message, the assistant message emits no box pieces \u2014 each result renders its own adjacent box, looking up the call's label from a new toolCallLabels map. This avoids the prior bug where two tool_use blocks in a row produced two unclosed top edges with no body between them. The streaming live overlay (renderToolCall) draws the same top/body/bottom directly so an in-flight write/edit looks the same as the finalised transcript form. Body lines have their first 2 leading-indent cells stripped so content lands at a consistent column inside the box rather than drifting right. Inter-message blanks come from Build()'s natural separator; no extra blanks are emitted around boxes, so two consecutive boxes are separated by exactly one blank row. |
||
|---|---|---|
| .. | ||
| agent | ||
| assets | ||
| auth | ||
| core | ||
| extproto | ||
| provider | ||
| skills | ||
| tui | ||