feat(display): add final agent summary to completion output#1
Merged
feat(display): add final agent summary to completion output#1
Conversation
Render the completing run's plain-text response as a Summary block between the Budget gauge and the Audit logs line on successful workflow completion. Word-wrapped at 76 columns, truncated to 10 lines with a trailing ellipsis, and omitted silently if the log cannot be read. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
When the final agent summary exceeds the 10-line cap, the trailing ellipsis line now appends a dim "(full response in runs/NNN.log)" hint, making the complete response one directory lookup away without bloating the footer. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
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
Summaryblock inrings runcompletion output, between the Budget gauge and the Audit logs line.…line appends a dim(full response in runs/NNN.log)pointer so the complete text is one directory lookup away.summaryevent.Example:
Test plan
cargo test --features testing --lib— 343 passed (7 new tests covering empty input, label/indent, truncation, wrap width, hint rendering, and hint suppression when not truncated)cargo fmt --checkcleanformat_completionoutput (short + long summary)🤖 Generated with Claude Code