Skip to content

feat(display): add final agent summary to completion output#1

Merged
ssmith-pc merged 2 commits intomainfrom
feat/final-agent-summary
Apr 24, 2026
Merged

feat(display): add final agent summary to completion output#1
ssmith-pc merged 2 commits intomainfrom
feat/final-agent-summary

Conversation

@ssmith-pc
Copy link
Copy Markdown
Contributor

Summary

  • Renders the completing run's plain-text response as a new Summary block in rings run completion output, between the Budget gauge and the Audit logs line.
  • Word-wrapped at 76 columns, truncated to 10 lines. When truncated, the trailing line appends a dim (full response in runs/NNN.log) pointer so the complete text is one directory lookup away.
  • Best-effort: if the log cannot be read or the response is empty, the block is silently omitted. Human output mode only — JSONL already emits a structured summary event.

Example:

   Budget      █████████░░░░░░░░░░░  $4.54 / $10.00  (45%)

   Summary     **Summary of what's on the branch:**

               The fix replaces the boolean return with a `ContainerStatus` enum
               ...
               …  (full response in runs/004.log)

   Audit logs  /home/user/.local/share/rings/runs/run_xyz/

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 --check clean
  • Manual smoke test of format_completion output (short + long summary)
  • Rebuild and run end-to-end against a real workflow to confirm the block renders from a live audit log

🤖 Generated with Claude Code

ssmith-pc and others added 2 commits April 24, 2026 16:24
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>
@ssmith-pc ssmith-pc requested a review from jhamon April 24, 2026 17:35
@ssmith-pc ssmith-pc merged commit 364aa1d into main Apr 24, 2026
5 checks passed
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