Skip to content

Total cost changes based on loaded messages in a session in the Desktop App #28836

@AHScripting

Description

@AHScripting

Description

IMPORTANT: issue only on desktop app and not on TUI
when there is a long session of messages, the total cost only shows the loaded messages costs. to see the actual total cost of the session one needs to scroll all they way up to the first message in the session to see the actual total cost.

Plugins

no plugins

OpenCode version

1.15.7

Steps to reproduce

1- have a long session of messages so that they are not all loaded in the session
2- close the session and reopen after creating the long session
3- take a look at the cost
4- load the rest of the messages by scrolling up
5- you will see that total cost has been increased

Screenshot and/or share link

before scrolling up in the same session:

Image

after scrolling up in the same session:

Image

Operating System

Windows 11

Terminal

Windows Terminal (for TUI), and Desktop App

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions