Skip to content

feat: include turns and model in --print usage footer - #295

Merged
Patel230 merged 1 commit into
mainfrom
feat/print-footer-turns-model
Sep 7, 2026
Merged

feat: include turns and model in --print usage footer#295
Patel230 merged 1 commit into
mainfrom
feat/print-footer-turns-model

Conversation

@Patel230

@Patel230 Patel230 commented Sep 7, 2026

Copy link
Copy Markdown
Contributor

Summary

--print's usage footer showed tokens and elapsed but omitted turn count and the model, unlike exec's footer which surfaces both.

Thread the turn counter (incremented per usage event) and the resolved model into printTextUsageFooter so one-shot text runs report which model ran and how many turns, matching exec and giving scripts/users the same useful context. Model is omitted when empty. Footer still writes to stderr and honors --quiet.

Verification

  • go build ./..., go vet ./cmd/, gofumpt -l clean.
  • go test ./... exit 0 (ran with -p 1 due to shared-machine process pressure).
  • TestPrintTextUsageFooter updated for the new signature; asserts tokens, turns, model, cache, elapsed, and quiet/nil suppression.

--print's usage footer showed tokens and elapsed but omitted turn count and
the model, unlike exec's footer which surfaces both. Thread the turn counter
(incremented per usage event) and the resolved model into printTextUsageFooter
so one-shot text runs report which model ran and how many turns, matching exec
and giving scripts/users the same useful context. Model is omitted when empty.
Footer still writes to stderr and honors --quiet.
@Patel230
Patel230 merged commit 58169c7 into main Sep 7, 2026
25 of 26 checks passed
@Patel230
Patel230 deleted the feat/print-footer-turns-model branch September 7, 2026 09:20
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