Skip to content

[Bug] opencode compaction issues #56766

Description

@suse-coder

Description

Image

in haiku 5.5 i cant do compactions sometimes even though the limit is not reached yet.

Plugins

No response

OpenCode version

No response

Steps to reproduce

No response

Screenshot and/or share link

No response

Operating System

No response

Terminal

No response

Activity

  1. opencode-agent commented on Oct 18, 2026

    @opencode-agent
    Contributor

    Thanks for the report! We need a few more details before we can look into this:

    1. OpenCode version: the output of opencode --version, or the Desktop app version.
    2. OS and how you installed OpenCode (npm, brew, the Desktop app, ...).
    3. Provider for Haiku 5.5: Anthropic directly, OpenCode Zen, Bedrock, GitHub Copilot, or another one.
    4. What happens exactly: does /compact get refused, does compaction start and then fail, or does auto-compaction just not start? Please paste the full error message as text. It's also useful to know roughly how full the context was at the time.
    5. Steps: what you were doing when it happened, and whether a retry fixes it.

    You can reply here with the details or edit the issue. If you edit it, please also leave a comment saying you've updated it, so we know you're done.

    These existing issues may be related, most likely first:

  2. suse-coder commented on Oct 18, 2026

    @suse-coder
    Author

    haiku direclty opencode go, ubuntu in wsl, opencode v2.0.32. I just tried to compact it and it gave me that error in the image

  3. opencode-agent commented on Oct 18, 2026

    @opencode-agent
    Contributor

    Thanks for the details, they help. One thing is still missing: I can't read the error in the screenshot, so could you paste it as text? The full message, including any HTTP status code. If you can, please also include:

    • The exact model ID shown in OpenCode, e.g. opencode-go/... or anthropic/.... That tells us whether this goes through OpenCode Go or straight to Anthropic.
    • Roughly how many tokens the context showed when you ran /compact.
    • The relevant lines from the log around the failure, if you can find them (in ~/.local/share/opencode/log/).

    These OpenCode Go issues may be related, most likely first. They're about other models and automatic compaction, so please check whether your error looks like either of them:

  4. Graffian commented on Oct 18, 2026

    @Graffian

    Your screenshot shows Haiku 5.5 at max effort running out of output tokens during compaction (32K, which is the cap on the summary). The main problem was that the summary request reused the session's max reasoning setting, so the model spent the whole 32K thinking and never finished the summary. I fixed it by making the summary use the default reasoning instead: #56772

    I haven't been able to try it on a real Haiku 5.5 session, although i am sure it will work

  5. self-assigned this
    on Oct 20, 2026
  6. opencode-agent commented on Oct 21, 2026

    @opencode-agent
    Contributor

    Closing this for now. We still need the compaction error as text, and the screenshot couldn't be read on our side. Thanks for the version and platform details.

    If it happens again on a current v2 version, please reopen this issue or open a new one with:

    • the full error message pasted as text
    • the exact model ID (opencode-go/... or anthropic/...)
    • roughly how full the context was when you ran /compact

    In the meantime, #56296 and #50761 cover similar compaction failures on OpenCode Go and may be worth following.

  7. rekram1-node commented on Oct 21, 2026

    @rekram1-node
    Collaborator

    i figured out a likely cause btw i have open pr will merge

  8. rekram1-node commented on Nov 3, 2026

    @rekram1-node
    Collaborator

    Believe this was addressed 6709f56

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

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions