Cost of session doesn't include cost of subagents #7866

Open
opened 2026-02-16 18:08:31 -05:00 by yindo · 2 comments
Owner

Originally created by @knotbin on GitHub (Jan 28, 2026).

Originally assigned to: @fwang on GitHub.

One of my sessions showed up as costing 1 cent but clicking into a subagent showed that subagent costing 4 cents. The session should show the total of the main session and subagents.

Originally created by @knotbin on GitHub (Jan 28, 2026). Originally assigned to: @fwang on GitHub. One of my sessions showed up as costing 1 cent but clicking into a subagent showed that subagent costing 4 cents. The session should show the total of the main session and subagents.
yindo added the bugzen labels 2026-02-16 18:08:31 -05:00
Author
Owner

@github-actions[bot] commented on GitHub (Jan 28, 2026):

This issue might be a duplicate of existing issues. Please check:

  • #8945: Mismatch between token spent and billing against my account
  • #7387: Multi Model Cost Calculations are Bugged
  • #6989: [TUI] $ spent in context decreases after request
  • #2891: Cost in storage/session is always 0
  • #10354: [FEATURE]: Near-Real-Time Token and Cost Visibility

These issues are all related to session cost calculation and display problems. Feel free to ignore if none of these address your specific case.

@github-actions[bot] commented on GitHub (Jan 28, 2026): This issue might be a duplicate of existing issues. Please check: - #8945: Mismatch between token spent and billing against my account - #7387: Multi Model Cost Calculations are Bugged - #6989: [TUI] $ spent in context decreases after request - #2891: Cost in storage/session is always 0 - #10354: [FEATURE]: Near-Real-Time Token and Cost Visibility These issues are all related to session cost calculation and display problems. Feel free to ignore if none of these address your specific case.
Author
Owner

@bluet commented on GitHub (Feb 5, 2026):

I'm looking at this issue too. It seems that https://github.com/anomalyco/opencode/pull/7763 needs to be merged first before we can work on anything else.

@bluet commented on GitHub (Feb 5, 2026): I'm looking at this issue too. It seems that https://github.com/anomalyco/opencode/pull/7763 needs to be merged first before we can work on anything else.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#7866