Real-Time Cost Ticker During Job Execution #22
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
What & Why
Visitors pay in sats but currently have no visibility into the running cost until the job completes. A live cost ticker — showing tokens consumed and estimated sats cost as Timmy streams his response — gives visitors transparency, builds trust, and makes the Workshop feel like a real economic engine.
Done looks like
executingstate, a small cost ticker appears in the Workshop near the active job indicatorjob_progressWebSocket eventsOut of scope
Tasks
job_progressWebSocket events.job_progressevents, shows final vs estimated onjob_complete.Relevant files
artifacts/api-server/src/lib/agent.tsartifacts/api-server/src/lib/pricing.tsartifacts/api-server/src/routes/jobs.tsartifacts/api-server/src/routes/events.tsthe-matrix/js/ui.jsthe-matrix/js/websocket.js