Remove truncation from LLM event log output#75
Merged
Conversation
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Drops all truncation from the LLM per-attempt log: removes
_first_line, eliminates[:100]/[:120]slicing from_summarize_tool_inputand_format_event, and prepends\nto[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
[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_linefrom the module.make lintandmake test— all green.