diff --git a/.gitea/workflows/scripts/build-activity-log.sh b/.gitea/workflows/scripts/build-activity-log.sh index 2d0c402..216c894 100755 --- a/.gitea/workflows/scripts/build-activity-log.sh +++ b/.gitea/workflows/scripts/build-activity-log.sh @@ -46,10 +46,11 @@ 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. +# with a STATIC "details" label — identical everywhere — holding the tool calls (or a none-note) +# and the full token/cost breakdown. { - printf '\n\n
\n🔧 %s tool calls · in %s · out %s · %s\n\n' "$n" "$IN_TOTAL" "$OUT" "$COSTF" + printf '\n\n
\ndetails\n\n' + printf '🔧 %s tool calls · in %s · out %s tokens · %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"