Conversation
annotate_log_rows() only cut prompt and response under -t. The reasoning column (added upstream by the "Persist visible reasoning" commit) and the system column passed through at full length, so 'llm logs --json -t' still dumped multi-KB reasoning blobs, contrary to the "Truncate long strings in output" help text. Same path feeds the markdown renderer. - truncate system and reasoning to the same 100-char limit - a null value stays null (no system prompt, no reasoning emitted) rather than becoming "" like prompt/response do; matches the truthiness check the markdown renderer already uses for reasoning
rdslw
force-pushed
the
fix-logs-truncate-reasoning
branch
from
September 2, 2026 21:44
fa79ec5 to
cc79285
Compare
anandfresh
approved these changes
Sep 4, 2026
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.
llm logs -tonly truncatespromptandresponse. Thereasoningcolumn (added in the visible-reasoning commit) andsystempass through at full length, sollm logs --json -t -n1still dumps multi-KB reasoning blobs. The same rows feed the markdown renderer.annotate_log_rows()now truncatessystemandreasoningto the same 100-char limit. A null value stays null rather than becoming"", matching the truthiness check the renderer already uses for reasoning.Created with help of Fable-5.1.