Skip to content

TUI sidebar shows misleading $0.00 spent for models without pricing #39869

Closed as not planned

Description

@zbcoding

Description

The opencode TUI sidebar Context section displays $0.00 spent for a session whose model has no pricing information, even though the true cost cannot be derived. This is misleading because $0.00 reads as free, when in reality the model simply has no cost entry (e.g. a custom model added to opencode.json without a cost field).

Current behavior

Context
12,345 tokens
42% used
$0.00 spent

Expected behavior

When the session model has no pricing, show N/A spent instead of a misleading $0.00 spent:

Context
12,345 tokens
42% used
N/A spent

Related

The runtime cost tracking problem for custom providers is tracked separately in #17223. This issue is about the display only.

Activity

  1. github-actions commented on Jul 31, 2026

    @github-actions
    Contributor

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

    The distinction in this issue (display-only fix: show N/A instead of $0.00) is a reasonable clarification, but the underlying problem and proposed remediation overlap significantly with the above.

  2. github-actions commented on Oct 1, 2026

    @github-actions
    Contributor

    To stay organized issues are automatically closed after 60 days of no activity. If the issue is still relevant please open a new one.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions