report: static 'details' summary label on every comment dropdown
ci / lint (push) Skipped
ci / lint (pull_request) Successful in 11s
ci / lint (push) Skipped
ci / lint (pull_request) Successful in 11s
The dropdown summary carried dynamic numbers, so every comment's collapsed line looked different. Now the label is literally 'details' everywhere; the headline numbers moved to the first body line. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 4.8
parent
f1b0896f7e
commit
cbb938a28f
@@ -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"
|
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
|
# 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)
|
# with a STATIC "details" label — identical everywhere — holding the tool calls (or a none-note)
|
||||||
# plus the full token/cost breakdown.
|
# and the full token/cost breakdown.
|
||||||
{
|
{
|
||||||
printf '\n\n<details>\n<summary>🔧 %s tool calls · in %s · out %s · %s</summary>\n\n' "$n" "$IN_TOTAL" "$OUT" "$COSTF"
|
printf '\n\n<details>\n<summary>details</summary>\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
|
if [ "$n" -gt 0 ]; then cat /tmp/tools.md; else printf '_(no tool calls — text-only reply)_\n'; fi
|
||||||
printf '\n\n<sub>tokens — input %s (fresh %s · cache %sw / %sr) · output %s · reasoning %s · **%s**</sub>\n</details>' \
|
printf '\n\n<sub>tokens — input %s (fresh %s · cache %sw / %sr) · output %s · reasoning %s · **%s**</sub>\n</details>' \
|
||||||
"$IN_TOTAL" "$INP" "$CW" "$CR" "$OUT" "$RE" "$COSTF"
|
"$IN_TOTAL" "$INP" "$CW" "$CR" "$OUT" "$RE" "$COSTF"
|
||||||
|
|||||||
Reference in New Issue
Block a user