The usage report carries the latest message's cost, calls and carrying cost for the strip (ATC-257) #394

Merged
merge-queue merged 1 commit from strip-spend into main 2026-12-02 19:33:36 -08:00
Owner

Work package: https://openproject.home.romaine.life/wp/ATC-257

Nelson wants the message's cost on the strip, in the same place every time, rather than having to find it on an answer's footer as the page scrolls. This is at-claude's half: the usage report it sends tmux-strip usage at each turn's end now carries the latest message's spend. The strip library draws it in a separate PR.

Added

  • message in the usage report: usd, calls, perCallUSD, carryingUSD. It's left out when a call went to a model at-claude has no price for. Older tmux-strip builds ignore it.
  • cost.Meter: counts a message's calls from claude's stream events and resets at each message the person sends, which Claude Code prints back. The host and the window's transcript now share it, so the strip and the footer give the same numbers. On resume the host takes the session's baseline from the saved conversation's first call.

Unchanged: the footer, and what the report already carried.

🤖 Generated with Claude Code

Work package: https://openproject.home.romaine.life/wp/ATC-257 Nelson wants the message's cost on the strip, in the same place every time, rather than having to find it on an answer's footer as the page scrolls. This is at-claude's half: the usage report it sends `tmux-strip usage` at each turn's end now carries the latest message's spend. The strip library draws it in a separate PR. **Added** - `message` in the usage report: `usd`, `calls`, `perCallUSD`, `carryingUSD`. It's left out when a call went to a model at-claude has no price for. Older tmux-strip builds ignore it. - `cost.Meter`: counts a message's calls from claude's stream events and resets at each message the person sends, which Claude Code prints back. The host and the window's transcript now share it, so the strip and the footer give the same numbers. On resume the host takes the session's baseline from the saved conversation's first call. **Unchanged**: the footer, and what the report already carried. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
The usage report carries the latest message's cost, calls and carrying cost for the strip (ATC-257)
All checks were successful
Suite default / scope (pull_request) Successful in 5s
Suite default / check-fetches (pull_request) Has been skipped
Suite default / check-rules (pull_request) Has been skipped
Suite go / scope (pull_request) Successful in 5s
Suite go / check-test-windows (pull_request) Has been skipped
Suite go / check-services (pull_request) Has been skipped
Suite release / scope (pull_request) Successful in 6s
Suite release / module (pull_request) Has been skipped
Suite release / reserve (pull_request) Has been skipped
Suite release / check-manifest (pull_request) Has been skipped
Suite release / build (go, ubuntu-latest) (, go, false, ubuntu-latest, , go) (pull_request) Has been skipped
Suite release / finalize (pull_request) Has been skipped
Suite release / publish (pull_request) Has been skipped
Suite release / deliver (pull_request) Has been skipped
Suite release / deploy-image (pull_request) Has been skipped
Suite default / check-logs (pull_request) Successful in 5s
Suite go / check-format (pull_request) Successful in 6s
Suite release / deliver-prune (pull_request) Has been skipped
Suite release / check-build (go, ubuntu-latest) (, go, false, ubuntu-latest, , go) (pull_request) Successful in 9s
Suite default / reused-checks (pull_request) Successful in 4s
Suite release / check-package (pull_request) Successful in 6s
Suite release / reused-checks (pull_request) Successful in 4s
Suite go / check-test-linux (pull_request) Successful in 27s
Suite go / reused-checks (pull_request) Successful in 4s
merge-queue landed on main
f988f89ce3
merge-queue deleted branch strip-spend 2026-12-02 19:33:37 -08:00
Sign in to join this conversation.
No reviewers
No labels
queue
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
romaine-life/at-claude!394
No description provided.