Skip to content

OpenCode TUI infinite automatic context compression #19687

Closed as not planned
Closed as not planned

Description

@kaotusi

Question

When I send a single sentence via opencode tui, the context suddenly explodes, causing an infinite loop of automatic context compression.

Activity

  1. added
    coreAnything pertaining to core functionality of the application (opencode server stuff)
    on Mar 29, 2026
  2. supengxu commented on Mar 29, 2026

    @supengxu

    看看是不是 skill 太多了,导致每次请求携带的上下文太多了

  3. kaotusi commented on Mar 29, 2026

    @kaotusi
    Author

    opencode有限制只能加载哪个skills文件夹吗,我看日志好像不在它文件夹下的skills都全加载进去了,我并没有找到限制skills加载路径的配置

  4. Mr-ZeLong commented on Mar 29, 2026

    @Mr-ZeLong

    我的 claduecode 也是,3句话就 120 K, 然后才转战 opencode, 然后今天更新过后, opencode 也一样的情况,是不是 claude sdk 出问题了,有没有懂的大佬出来分析一下。(我用的 kimi coding plan)

  5. modik56 commented on Mar 30, 2026

    @modik56

    今次更新好似有啲問, 本來做緊我嘅project, 即然之間轉去做廣告網頁

  6. supengxu commented on Mar 30, 2026

    @supengxu

    有限制只能加载哪个skills文件夹吗,我看日志好像不在它文件夹下的skills都全加载进去了,我并没有找到限制skills加载路径的配置

    const EXTERNAL_DIRS = [".claude", ".agents"]
    const EXTERNAL_SKILL_PATTERN = "skills//SKILL.md"
    const OPENCODE_SKILL_PATTERN = "{skill,skills}/
    /SKILL.md"

    扫码的路径和文件

  7. Helios12345 commented on Mar 30, 2026

    @Helios12345

    Updated from 1.3.0 (was working fine before!) to 1.3.5 today (later on same problem with 1.3.7):
    on a new session (reproduceable!) after i enter the prompt it's possible, that nothing happens, or it works a little bit, then it's stuck - as if it would simply stop, that's it. you can tell Opencode, that it should continue, then it will continue, but only for a few more seconds, then it's stuck again.

    i have that problem with the Kimi K2.5 Coding Plan, but not with Minimax M2.7 Coding Plan.
    Also reverted lot of stuff from Opencode.json (MCP, permissions,...) - but still the same problem with Kimi K2.5 Coding Plan, i also completely deleted .local\share\opencode as a test.
    Weird...

    I have 2 skills in project folder (bit bigger ones) and 1 MCP server (deactivated lot of stuff for tests), but still the same issue with Kimi K2.5 Coding Plan.

  8. removed
    coreAnything pertaining to core functionality of the application (opencode server stuff)
    on May 3, 2026
  9. rekram1-node commented on Jun 23, 2026

    @rekram1-node
    Collaborator

    Automated: closing question issues.

    GitHub Issues are for bug reports and feature requests only — questions / support are no longer tracked here.

    If this is a bug or feature request, please open a new issue with the appropriate template.

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