Skip to content

Technical Issue: Significant Billing Sync Lag and TUI Session Loss #14848

Closed as not planned

Description

@artbotterell

Description

Description of Issue:

I am reporting a critical failure in the account synchronization and TUI session management workflow. After exhausting my free tier, I added $42.48 in credits and increased my monthly limit to $250. Despite these updates being visible on the Zen dashboard, the TUI continued to return "Usage Exceeded" errors for over 30 minutes.

Key Points of Failure:

Gateway Sync Lag: The API gateway failed to recognize a positive credit balance and updated monthly limit in a reasonable timeframe (5-15 mins).

TUI Session Persistence: The TUI remained in a "Blocked" state despite account changes. No mechanism exists to refresh the billing status or rotate API keys without interrupting the session.

Loss of Context: Attempting to force a refresh using /new (as a last resort) resulted in a total wipe of the terminal scrollback and session history, with no local log recovery.

Requested Improvements:

Implement a /refresh-billing or /auth-sync command in the TUI to force a gateway handshake without clearing session history.

Improve the propagation speed of "Monthly Limit" changes to the API gateway.

Ensure the /new command does not clear the terminal's native scrollback buffer.

Provide a warning alert before reaching a billing limit, so users don't get into a deadlock like I experienced.

Environment:

Model: Big Pickle

Timestamp: Feb 23, 2026, approx. 4:30 PM - 5:05 PM PST

Workspace ID: wrk_01KGXRHYG436QRJSA68TAN63J9

Plugins

none

OpenCode version

1.21.10

Steps to reproduce

Use OpenCode? ;). Seriously, I can't say much beyond what's in the report above.

Activity

  1. added
    coreAnything pertaining to core functionality of the application (opencode server stuff)
    zenRelates to Zen
    needs:complianceThis means the issue will auto-close after 2 hours.
    and removed
    needs:complianceThis means the issue will auto-close after 2 hours.
    on Feb 24, 2026
  2. github-actions commented on Feb 24, 2026

    @github-actions
    Contributor

    Thanks for updating the issue! It now has the necessary details and looks good. The compliance flag has been removed.

  3. borjasanlei commented on Mar 16, 2026

    @borjasanlei

    THis is making opencode unusable. whenever I consume the tokens in Anthropic API I cannot use opencode for around 1h.

  4. removed
    bugSomething isn't working
    zenRelates to Zen
    coreAnything pertaining to core functionality of the application (opencode server stuff)
    on May 3, 2026
  5. absolutegravitas commented on May 19, 2026

    @absolutegravitas

    anyone else getting this on their subagents even though you are not using any opencode zen / go etc. integration? im using ALL local models and i still get this whenever a sub agent is fired off.

  6. g1rboham commented on Jun 1, 2026

    @g1rboham

    Yes i'm haveing the same problem, paid but money not seen by my account,

    Image Image Image Image
  7. github-actions commented on Aug 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