Skip to content

Serious UX anomaly / Token bleeding: "Compact" timeline mode by default and bloated long system prompt silently exhaust API quotas #57448

Closed

Description

@A-X3L

Description

Hi team,
I noticed a critical issue regarding token consumption and UX coherence in OpenCode 2.0 Desktop.

  1. The Default Preference Problem (Hidden Drain)
    By default, the application timeline preference is set to "Compact". Visually, it hides background tasks from the user interface. However, under the hood, it silently forces all advanced tracking options to ON (Shell, Modifications, Reasoning, Sub-agents, etc.).
    Because this logic is hidden behind a "clean" UI facade, it leads to massive token bleeding. A single workflow completely exhausts reasonable API limits (e.g., Google Gemini free tiers like 250K TPM) in just a few interactions due to exponential context accumulation.
  2. The Erratic Slider Behavior
    The behavior of the slider itself is counter-intuitive and buggy:
    • Left ("Text only"): Fully disabled and grayed out.
    • Center ("Compact"): Hidden UI but silently forces everything ON.
    • Right ("All"): Supposed to show everything, but instead it turns everything OFF and finally lets the user manually toggle checkboxes.
  3. Feature Request: Ability to trim / customize the bloated System Prompt
    Linked to this token consumption issue, the default system prompt (Code Mode infrastructure) injects a massive 10km catalog of tools (browser, shell execution, file finders, etc.) into the context window.
    For users who only need a fraction of these capabilities (e.g., documentation processing, specific markdown agents, or isolated text tasks), there is currently no configuration option in opencode.jsonc or service.json to disable built-in tools (webfetch, bash, etc.). Forcing the model to process 300+ lines of unused tool descriptions on every single turn is an absolute token hog.
    Expected Behavior:
  4. The default mode should never silently enforce full context tracking without explicit user consent.
  5. The slider logic needs an overhaul: going towards "All" should enable features, not disable them to grant manual control.
  6. Provide a clear configuration setting (either in the GUI or a documented override in opencode.jsonc) to select which tools are active, allowing users to trim the system prompt and save their quotas.
    Users shouldn't have to discover these hidden drains by looking at raw transaction logs. Thanks for looking into this!

Plugins

No response

OpenCode version

2.1.1 desktop and 2.0.32 CLI

Steps to reproduce

No response

Screenshot

Image Image Image Image Image

Operating System

Windows 11 26H2

Terminal

Windows Terminal

Activity

  1. opencode-agent commented on Oct 20, 2026

    @opencode-agent
    Contributor

    Thanks for the detailed write-up! It covers a few separate points, so here they are one at a time.

    Timeline preset and tokens. The Timeline detail setting only changes what the desktop app shows. It does not change what is sent to the model. Compact shows all activity grouped under one item with the details collapsed. Everything shows each kind of activity separately and expanded. The checkboxes you saw are the Group and Collapse options for each category, so they are all checked in Compact and unchecked in Everything. Shell commands, edits, reasoning and subagents end up in the session context whichever preset you pick, so changing it won't affect your token usage. We agree the labels could make this clearer, and we've recorded that as UX feedback.

    Turning off built-in tools. You can already do this with permission rules. When a tool is denied outright, it is left out of the tool list sent to the model, along with its description. Denying execute turns off the Code Mode tool catalog entirely. For example:

    // opencode.jsonc
    {
      "permission": {
        "shell": "deny",
        "webfetch": "deny",
        "websearch": "deny",
        "execute": "deny"
      }
    }

    You can also put these rules on a single agent (e.g. a documentation agent) rather than setting them globally. See the permissions docs and agents docs.

    We've recorded the rest as a feature request: clearer timeline wording and an easier, better-documented way (including in the GUI) to choose which tools are active. Maintainers will consider it.

    Related issues:

  2. A-X3L commented on Oct 20, 2026

    @A-X3L
    Author

    Wow, thank you for the incredibly fast and detailed response!
    The permission system bypass (permission: deny) is exactly the technical workaround I needed to trim the tool list and prevent token bleeding. It works perfectly on a per-agent basis in the markdown files.
    Also, thank you for recording the feedback regarding the timeline slider UX and the feature request for a GUI-driven tool selection toggler.
    Closing this since the workaround fully solves my immediate credit consumption issue. Keep up the amazing work on OpenCode 2.0! 🙏

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

Metadata

Metadata

Assignees

No one assigned

    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