Skip to content

Remove truncation from LLM event log output#75

Merged
vm-mishchenko merged 1 commit into
mainfrom
260514-spec-untruncated-llm-event-log
May 14, 2026
Merged

Remove truncation from LLM event log output#75
vm-mishchenko merged 1 commit into
mainfrom
260514-spec-untruncated-llm-event-log

Conversation

@vm-mishchenko
Copy link
Copy Markdown
Owner

Summary

Drops all truncation from the LLM per-attempt log: removes _first_line, eliminates [:100]/[:120] slicing from _summarize_tool_input and _format_event, and prepends \n to [text], [think], and [ok] parts so each block renders with a blank line above it. Bash commands and default-branch tool inputs are now written verbatim.

Test plan

  • Added unit tests covering multiline [text], [think], and [ok] blocks, block separator ordering, whitespace-only skip behavior, long Bash commands (250 chars), large default-branch JSON payloads (5000+ chars), heredoc commands, unchanged branches (Read/Write/Edit/Grep/Glob/TodoWrite), and removal of _first_line from the module.
  • Ran make lint and make test — all green.

Replace first-line extraction and 100/120-char hard cuts with full,
untruncated content for all LLM event fields: Bash commands, tool
inputs, assistant text/thinking blocks, and tool results. Add tests
confirming multiline and long payloads are preserved verbatim.
@vm-mishchenko vm-mishchenko marked this pull request as ready for review May 14, 2026 18:59
@vm-mishchenko vm-mishchenko merged commit cf5d68a into main May 14, 2026
1 check passed
@vm-mishchenko vm-mishchenko deleted the 260514-spec-untruncated-llm-event-log branch May 14, 2026 23:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant