Skip to content

OpenCode immediately enters auto-compaction loop and stops generating responses #30680

Description

@VineshF1

Description

OpenCode is repeatedly auto-compacting and consuming tokens in a loop, even when started in a completely new empty folder.

In addition to the excessive compaction, the model eventually stops generating responses altogether. Instead of answering prompts, OpenCode repeatedly compacts the conversation and becomes unusable.

-Tested in a brand-new empty folder.
-No project files were loaded.
-Reinstalling OpenCode did not fix the issue.
-The problem persists across new sessions.
-The issue appears unrelated to repository size because it occurs before any meaningful context is added.
-Eventually, OpenCode stops responding to prompts and only continues compacting.

This results in unnecessary token consumption and prevents normal usage of OpenCode. I have installed opencode desktop version too and the same issue continues there as well.

Environment using:
OpenCode version: 1.15.13
Operating System: Windows (replace with exact version)
Provider: OpenCode Zen
Fresh install: Yes

Activity

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