mirror of
https://github.com/fabro-sh/fabro.git
synced 2026-08-28 05:27:41 +00:00
Apply cleanups from a reuse/simplification/efficiency review of the bounded-tool-output changes: - Share one MAX_RUN_EVENT_BODY_BYTES constant in fabro-types; the server body limit, the agent's serialized-output reservation, and the event headroom test all derive from it. - Rework truncation.rs around one split_head_tail helper: drop the hand-rolled ceil_char_boundary (std's is stable), the duplicate truncate_plain_output splitter and its dead Tail arm, and the head_bytes field with its sentinel values. - Return Cow from preview_tool_output and take retain_tool_output's input by value, so untruncated output crosses the pipeline without full copies. Measure serialized JSON size with a counting writer instead of materializing the payload. - Reuse fabro-llm's byte-token estimate (now public) instead of a third copy of the 4-bytes-per-token heuristic. - Take retain_tool_result's ToolResult by value and mutate content in place; extract the triplicated error retain-emit-truncate block into finish_error_result. - Share the shell retain-and-record sequence between the native and kimi shell tools as retain_shell_output. - Move OutputCaptureBuffer::into_parts to reuse the head allocation, skip the buffer round-trip in replay_exec_result when output fits, and replace daytona's byte-iterator suffix matching with contiguous slice comparisons behind one retained_slices accessor. - Make SessionBoundEmitter's fields private. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01TK3QTWQHiXhRbFwTr57LzX |
||
|---|---|---|
| .. | ||
| fabro-acp | ||
| fabro-agent | ||
| fabro-automation | ||
| fabro-checkpoint | ||
| fabro-dump | ||
| fabro-environment | ||
| fabro-github | ||
| fabro-graphviz | ||
| fabro-hooks | ||
| fabro-install | ||
| fabro-interview | ||
| fabro-llm | ||
| fabro-manifest | ||
| fabro-mcp | ||
| fabro-mcp-store | ||
| fabro-sandbox | ||
| fabro-slack | ||
| fabro-store | ||
| fabro-tool | ||
| fabro-tracker | ||
| fabro-validate | ||
| fabro-variable | ||
| fabro-workflow | ||
| fabro-workflow-version | ||