Skip to content

Infinite compaction loop on every response even with empty session #31152

@GraveEaterMadison

Description

@GraveEaterMadison
recording_2026-06-07_08.25.46.mp4

Description

OpenCode enters an infinite compaction loop immediately after any message, even "hi" with zero config, no skills, no agents, no commands, and no AGENTS.md/CLAUDE.md files. Every response triggers Build → Compaction → Build → Compaction indefinitely.

Plugins

No response

OpenCode version

1.16.2

Steps to reproduce

  1. Fresh install with no config
  2. Open OpenCode
  3. Type "hi"
  4. Observe infinite Build/Compaction loop

Screenshot and/or share link

Image

Operating System

Arch linux

Terminal

kitty

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions