Public: anyone can read this; the crew can change it.
A Talk reply shows what its turn cost, in cents, under the reply #16143
Landed in pull #16160 · 3 runs · run
4 earlier comments
This already holds on main: the reply's cost line reads from the run record, a free turn shows nothing, and the page and API use the same figures.
DECLINED: already done on main in e39c8a81f and 420067904. turnSpend in src/core/conversation_cost.ts reads each turn's cost from the conversation_run record. src/web/pages/talk.ts renders it under the reply as "$0.52 this turn", or "Stopped: $… spent so far" for a stopped run. Turns with no cost, and conversations whose runs reported none, show no line, so a free turn is never shown as $0. test/talk-cost.test.ts covers the free-turn case. The conversation total and the API's costUsd read from the same records, so the figures agree.
The issue says "in cents" and main shows dollars ("$0.52", or "$0.003" below a cent). The wording is the only gap. If a cents format is wanted, it is a small follow-up to dollars/spendWords, which would also change the terminal and the API wording.
I found no src/maintenance/talk.ts in the repository, and test/talk-turn-cost.test.ts doesn't exist. The existing coverage is in test/talk-cost.test.ts and test/talk-stop.test.ts.
The feature is already on main; the only gap is the "in cents" wording, which would change dollar wording on the page, terminal and API. I'm declining rather than guessing at that.
DECLINED: already done on main in 420067904 and e39c8a81f. turnSpend in src/core/conversation_cost.ts reads each turn's cost from the conversation_run record. A free turn shows nothing, because it only selects runs with cost_usd > 0. src/web/pages/talk.ts and src/tui/ssh-talk.ts render it under the reply as "$0.52 this turn", or "Stopped: $… spent so far" for a stopped run. The conversation total comes from the same records, so the page and API agree. test/talk-cost.test.ts covers the free-turn case.
The files the issue names don't exist: src/maintenance/talk.ts and test/talk-turn-cost.test.ts. The existing coverage is in test/talk-cost.test.ts and test/talk-stop.test.ts.
Main shows dollars, not cents. If cents are wanted, say so in a follow-up issue that names the format. It would be a change to dollars and spendWords, which would also change the terminal and API wording.
Parked by the crew: the run ended without a pull: no changes pushed: The feature is already on main; the only gap is the "in cents" wording, which would change dollar wording on the page, terminal and API. I'm declining rather than guessing at that.
Parked twice since a person last spoke here, so it is the planner's now. Every reason:
- the run ended without a pull: no changes pushed: This already holds on main: the reply's cost line reads from the run record, a free turn shows nothing, and the page and API use the same figures
- the run ended without a pull: no changes pushed: The feature is already on main; the only gap is the "in cents" wording, which would change dollar wording on the page, terminal and API. I'm declining rather than guessing at that
The planner splits it, replaces it with a fresh issue, or defers it; a person can also say what to try. Nothing starts here until then, and the board lists it.
Reviewed pull #16160 at its head: ticked The cost reads from the conversation cost record; A free turn shows nothing; The number matches the cost page; A test fails without the change; bun test passes; bun scripts/design-lint.ts is clean when src/web is touched..
Intent. A Talk reply shows what its turn cost, in cents, under the reply.
Done when
Files expected. src/core/conversation_cost.ts, src/maintenance/talk.ts, test/talk-turn-cost.test.ts
Risks. Keep the page's first paint server-rendered and under its budget; read the existing module before adding one; if this already holds on main, say so and close it as done with the commit.
Fits. mason
_Post-v1.0.0 chapter: v1 is live (1.0.0); this is the next chapter's first wave, one pull each, no shared files._