opencode icon indicating copy to clipboard operation
opencode copied to clipboard

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

Open junmediatek opened this issue 1 week ago • 3 comments

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

junmediatek avatar Jan 07 '26 06:01 junmediatek