Skip to content

Commit 9e8cd4d

Browse files
committed
Usage: a thread's token row says so far, apart from its context reading
1 parent 6ac7f59 commit 9e8cd4d

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

‎src/core/usage.bend‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -509,7 +509,7 @@ def TkT.some(t: TkT) -> Bool:
509509
def TkT.row(t: TkT) -> URow:
510510
match t:
511511
case TkT{ti, +v}:
512-
URow{ti, Tk.note(v), ""}
512+
URow{ti ++ " so far", Tk.note(v), ""}
513513

514514
def Tk.threads.all(ts: List<&2, M.Thread>, +st: M.State) -> List<&2, TkT>:
515515
match ts:

‎test/tokens_test.bend‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,6 @@ def main() -> IO(Unit):
9191
"claude · claude-opus-5-5 this month | 3 turns · 9 in, 4k cache read, 3k cache write · 7 out (0 reasoning) · $0.0009\n" ++
9292
"codex · gpt-6.1-sol this month | 3 turns · 17k in, 17k cache read, 0 cache write · 11 out (0 reasoning) · cost not reported\n" ++
9393
"demo this month | 6 turns · 17k in, 21k cache read, 3k cache write · 18 out (0 reasoning) · $0.0009 for 3 of them\n" ++
94-
"Codex work | 3 turns · 17k in, 17k cache read, 0 cache write · 11 out (0 reasoning) · cost not reported\n" ++
95-
"Claude work | 3 turns · 9 in, 4k cache read, 3k cache write · 7 out (0 reasoning) · $0.0009\n" ++
94+
"Codex work so far | 3 turns · 17k in, 17k cache read, 0 cache write · 11 out (0 reasoning) · cost not reported\n" ++
95+
"Claude work so far | 3 turns · 9 in, 4k cache read, 3k cache write · 7 out (0 reasoning) · $0.0009\n" ++
9696
"Counted since | 2026-10-15 (UTC); earlier turns were not recorded. Costs are Claude's own figures at API prices, not a bill; Codex reports none.\n")

0 commit comments

Comments
 (0)