Commit 7d6c711
fix(ai): keep the per-turn decimal in the response bar (mirrors onetime PR #86)
creditCost() used the same unary-+ pattern the dashboard did, so it carried the
same bug: 7.0 rendered as "7", and anything under 0.05 credits collapsed to "0" —
a run that cost something reading as free.
Fixed identically to AccountPage.tsx's rate(), with an explicit "<0.1" floor, so
the editor and the website format a cost the same way rather than drifting.
Verified: 23 suites, 0 failures; $0.0002 -> "<0.1", $0.70 -> "7.0", $0.46 -> "46".
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>1 parent 9e491f8 commit 7d6c711
1 file changed
Lines changed: 5 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2433 | 2433 | | |
2434 | 2434 | | |
2435 | 2435 | | |
2436 | | - | |
| 2436 | + | |
| 2437 | + | |
| 2438 | + | |
| 2439 | + | |
| 2440 | + | |
2437 | 2441 | | |
2438 | 2442 | | |
2439 | 2443 | | |
| |||
0 commit comments