Skip to content

Compaction bug - prompt token limit #10385

Closed as duplicate
Closed as duplicate

Description

@Genrie9

Description

Image

Plugins

No response

OpenCode version

latest

Steps to reproduce

1.use opus 4.5
2.fill in the context
3.run the command /compact

Screenshot and/or share link

Image

Operating System

Windows 10

Terminal

Powershell 7.5.4

Activity

  1. github-actions commented on Jan 24, 2026

    @github-actions
    Contributor

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

    These issues all involve compaction-related problems with prompt token limits and context management. Your issue specifically mentions using Opus 4.5 with a context fill followed by running /compact. Issues #6286 and #6068 describe similar symptoms where compaction fails with Opus models when context is nearly full, and issue #9349 reports auto-compaction failing to work properly even when configured.

    Feel free to ignore if your specific case is distinct from these.

  2. chelebyy commented on Feb 15, 2026

    @chelebyy

    I am experiencing this exact issue on Windows 11.

    Crucial Update: I've discovered that this happens even in a completely empty directory. When I send a simple "hello", the system still tries to send ~377k tokens, specifically with a massive amount of tool input (~217k tokens).

    This confirms that the bug isn't necessarily about the project size, but rather OpenCode incorrectly scanning global/system paths or failing to clear session context on Windows.

    I've tested this with Kimi, GLM, and MiniMax (Free/Paid) and the behavior is identical across all providers.

    Image
  3. rekram1-node commented on Feb 15, 2026

    @rekram1-node
    Contributor

    @chelebyy You are using a plugin for Omo, try using without that plugin, also feel free to share opencode debug config, I imagine you have a bunch of things being sent that are bloating context.

  4. chelebyy commented on Feb 15, 2026

    @chelebyy

    @rekram1-node yes the problem is Omo
    debug_config.txt

    `

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

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingwindows

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions