The token cost generated by session titles, message summary titles, and body summaries has not been accounted for. #4347

Open
opened 2026-02-16 17:43:31 -05:00 by yindo · 3 comments
Owner

Originally created by @junmediatek on GitHub (Jan 7, 2026).

Originally assigned to: @rekram1-node on GitHub.

Description

Session titles update code: https://github.com/anomalyco/opencode/blob/85ed32931873c764ea6a6ec59ba2ce2f73667bfc/packages/opencode/src/session/prompt.ts#L1635

Message summary title code: https://github.com/anomalyco/opencode/blob/85ed32931873c764ea6a6ec59ba2ce2f73667bfc/packages/opencode/src/session/summary.ts#L84

body summary code: https://github.com/anomalyco/opencode/blob/85ed32931873c764ea6a6ec59ba2ce2f73667bfc/packages/opencode/src/session/summary.ts#L127

None of the above LLM requests have had their costs accounted for.

Is this a bug, or is it a deliberate design?

Plugins

NA

OpenCode version

1.1.3

Steps to reproduce

No response

Screenshot and/or share link

No response

Operating System

Ubuntu 24.04

Terminal

VSCode remoteSSH

Originally created by @junmediatek on GitHub (Jan 7, 2026). Originally assigned to: @rekram1-node on GitHub. ### Description Session titles update code: https://github.com/anomalyco/opencode/blob/85ed32931873c764ea6a6ec59ba2ce2f73667bfc/packages/opencode/src/session/prompt.ts#L1635 Message summary title code: https://github.com/anomalyco/opencode/blob/85ed32931873c764ea6a6ec59ba2ce2f73667bfc/packages/opencode/src/session/summary.ts#L84 body summary code: https://github.com/anomalyco/opencode/blob/85ed32931873c764ea6a6ec59ba2ce2f73667bfc/packages/opencode/src/session/summary.ts#L127 None of the above LLM requests have had their costs accounted for. Is this a bug, or is it a deliberate design? ### Plugins NA ### OpenCode version 1.1.3 ### Steps to reproduce _No response_ ### Screenshot and/or share link _No response_ ### Operating System Ubuntu 24.04 ### Terminal VSCode remoteSSH
yindo added the bug label 2026-02-16 17:43:31 -05:00
Author
Owner

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

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

  • #5951: Token count is way off (major discrepancy between shown token count and actual API usage)
  • #6228: Configuration option to disable message summary generation (specifically mentions that summary generation creates additional LLM requests with costs)
  • #2891: Cost in storage/session is always 0 (cost tracking issues)
  • #4925: Display total cost for session (cost visibility concerns)

Feel free to ignore if none of these address your specific case.

@github-actions[bot] commented on GitHub (Jan 7, 2026): This issue might be a duplicate of existing issues. Please check: - #5951: Token count is way off (major discrepancy between shown token count and actual API usage) - #6228: Configuration option to disable message summary generation (specifically mentions that summary generation creates additional LLM requests with costs) - #2891: Cost in storage/session is always 0 (cost tracking issues) - #4925: Display total cost for session (cost visibility concerns) Feel free to ignore if none of these address your specific case.
Author
Owner

@junmediatek commented on GitHub (Jan 7, 2026):

@rekram1-node @thdxr

Could you help to check this issue?

@junmediatek commented on GitHub (Jan 7, 2026): @rekram1-node @thdxr Could you help to check this issue?
Author
Owner

@junmediatek commented on GitHub (Jan 12, 2026):

@rekram1-node Is there anything update for this issue?

@junmediatek commented on GitHub (Jan 12, 2026): @rekram1-node Is there anything update for this issue?
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#4347