Skip to content

fix(web): show only model and cost in the job panel - #123

Merged
cheetahbyte merged 3 commits into
deps/cleanupfrom
fix/job-usage-counts
Nov 4, 2026
Merged

cheetahbyte merged 3 commits into
deps/cleanupfrom
fix/job-usage-counts

Conversation

@cheetahbyte

@cheetahbyte cheetahbyte commented Nov 4, 2026 •

Copy link
Copy Markdown
Contributor

Summary

The job panel's subtitle now shows only the model and cost, such as claude-sonnet · $0.0123. It drops the token counts and the "Coding job" or "Desktop job" label. A provider that reports no cost, such as Claude Code, shows only the model.

Why

Pi Durable adds each response's cacheRead to a running total, and the panel added that to input. Every response re-reads the cached conversation, so the input number grew far past what was sent. Claude Code's cost is hard-coded to zero, so its line read $0.0000.

Evidence

  • Regression test failed before the first fix with 4,001,000 in · 200 out; jobs.test.ts covers the final costLine.
  • bun run check passes.

Not run: the panel in the running web app.

Risk and rollback

Reversibility: Reversible

Blast radius: The job panel's subtitle in the web UI. The API's usage field still has the token counts.

Input tokens counted the cached conversation again on every response, so the total grew far past what was sent. Providers that report no cost show only the model.
@cheetahbyte
cheetahbyte added this pull request to stack #125 November 4, 2026 12:25
@github-actions

github-actions Bot commented Nov 4, 2026 •

Copy link
Copy Markdown

React Doctor found no new issues. 🎉

Reviewed by React Doctor for commit 8b0800b.

@cheetahbyte
cheetahbyte merged commit 38b41fd into main Nov 4, 2026
9 checks passed
@cheetahbyte
cheetahbyte deleted the fix/job-usage-counts branch November 4, 2026 12:54
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