From 4a92f4686fdee47cfbc9c526f5ca1f70cb850eb1 Mon Sep 17 00:00:00 2001 From: Felix Faerber Date: Mon, 6 Jul 2026 11:35:24 +0300 Subject: [PATCH] report: one uniform dropdown for every agent comment MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Comments looked different depending on the run: tool-using agents got a collapsed
report while text-only replies got a bare one-line footer. Every comment now gets the SAME dropdown — summary '🔧 N tool calls · in X · out Y · ', body = the tool list (or '(no tool calls)') plus the full token/cost breakdown. Co-Authored-By: Claude Opus 4.8 (1M context) --- .gitea/workflows/scripts/build-activity-log.sh | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/.gitea/workflows/scripts/build-activity-log.sh b/.gitea/workflows/scripts/build-activity-log.sh index 13906cf..2d0c402 100755 --- a/.gitea/workflows/scripts/build-activity-log.sh +++ b/.gitea/workflows/scripts/build-activity-log.sh @@ -45,13 +45,12 @@ case "${MODEL:-}" in esac echo "usage: in=$IN_TOTAL out=$OUT cost=$COSTF (fresh=$INP cache_r=$CR cache_w=$CW reasoning=$RE); tools=$n" +# ONE uniform format for every agent comment (with or without tool calls): a collapsed dropdown +# whose summary carries the headline numbers, and whose body lists the tool calls (or notes none) +# plus the full token/cost breakdown. { - if [ "$n" -gt 0 ]; then - printf '\n\n
\n🔧 %s tool calls · in %s · out %s · %s\n\n' "$n" "$IN_TOTAL" "$OUT" "$COSTF" - cat /tmp/tools.md - printf '\n\ntokens — input %s (fresh %s · cache %sw / %sr) · output %s · reasoning %s · **%s**\n
' \ - "$IN_TOTAL" "$INP" "$CW" "$CR" "$OUT" "$RE" "$COSTF" - else - printf '\n\n💰 **%s** · in %s · out %s tokens (cache %sw / %sr)' "$COSTF" "$IN_TOTAL" "$OUT" "$CW" "$CR" - fi + printf '\n\n
\n🔧 %s tool calls · in %s · out %s · %s\n\n' "$n" "$IN_TOTAL" "$OUT" "$COSTF" + if [ "$n" -gt 0 ]; then cat /tmp/tools.md; else printf '_(no tool calls — text-only reply)_\n'; fi + printf '\n\ntokens — input %s (fresh %s · cache %sw / %sr) · output %s · reasoning %s · **%s**\n
' \ + "$IN_TOTAL" "$INP" "$CW" "$CR" "$OUT" "$RE" "$COSTF" } > /tmp/activity_log.md