-
Notifications
You must be signed in to change notification settings - Fork 195
Open
Labels
enhancementNew feature or requestNew feature or requestgood first issueGood for newcomersGood for newcomersin-progress
Description
The bridge already sends step_finish SSE events containing cost and tokens data from opencode, but the frontend currently ignores them. We should display cumulative token usage and cost in the session detail view.
Current State
bridge.pyemitsstep_finishevents withcost(dollar amount) andtokens(input/output counts)- The frontend (
session/[id]/page.tsx) has no rendering forstep_finishevents - No usage summary anywhere in the session UI
Proposed
- Track cumulative tokens (input + output) and cost from
step_finishevents - Display a usage summary bar in the session detail view (e.g. below the header or in the right sidebar)
- Show per-message token counts inline (subtle, like a tooltip or small badge)
- Update in real-time as new
step_finishevents arrive via SSE
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or requestgood first issueGood for newcomersGood for newcomersin-progress