You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Serious UX anomaly / Token bleeding: "Compact" timeline mode by default and bloated long system prompt silently exhaust API quotas #57448
Hi team,
I noticed a critical issue regarding token consumption and UX coherence in OpenCode 2.0 Desktop.
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.
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.
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:
The default mode should never silently enforce full context tracking without explicit user consent.
The slider logic needs an overhaul: going towards "All" should enable features, not disable them to grant manual control.
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!
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:
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.
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! 🙏
Activity
opencode-agent commentedon Oct 20, 2026
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
permissionrules. When a tool is denied outright, it is left out of the tool list sent to the model, along with its description. Denyingexecuteturns off the Code Mode tool catalog entirely. For example: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:
tool_call: falsedoes not disable tools #35432: a setting for disabling tools that wasn't workingA-X3L commentedon Oct 20, 2026
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! 🙏