Skip to content

Double compaction for Copilot Opus 4.7 #26230

@Hexoplon

Description

@Hexoplon

Description

When using Opus 4.7 through Copilot (have not tested through other vendors), opencode after a recent update will consistently trigger compaction twice. If i use e.g. GPT 5.5, then swap, it the token usage might suddenly jump from 100K to above 200K, then it does a double compaction. This behaviour was not present just a few days ago. Seems like a bug with how tokens get counted

Plugins

None

OpenCode version

1.14.40

Steps to reproduce

  1. Use Opus 4.7 and go until compaction triggers
  2. See it compact twice right after each other before continueing

Screenshot and/or share link

No response

Operating System

No response

Terminal

No response

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