The /compact command does not work #7510

Open
opened 2026-02-16 18:07:24 -05:00 by yindo · 3 comments
Owner

Originally created by @Genrie9 on GitHub (Jan 25, 2026).

Originally assigned to: @rekram1-node on GitHub.

Description

I executed the /compact command, it ran, but it didn't help: “prompt token count of 425097 exceeds the limit of 128000” while the counter at the top right shows: “37,704 19% ($0.00) v1.1.35”

@rekram1-node @thdxr Please help, I can't continue working because of this error.

Plugins

No response

OpenCode version

1.1.35

Steps to reproduce

No response

Screenshot and/or share link

Image Image

Operating System

Windows 10

Terminal

Powershell

Originally created by @Genrie9 on GitHub (Jan 25, 2026). Originally assigned to: @rekram1-node on GitHub. ### Description I executed the /compact command, it ran, but it didn't help: “prompt token count of 425097 exceeds the limit of 128000” while the counter at the top right shows: “37,704 19% ($0.00) v1.1.35” @rekram1-node @thdxr Please help, I can't continue working because of this error. ### Plugins _No response_ ### OpenCode version 1.1.35 ### Steps to reproduce _No response_ ### Screenshot and/or share link <img width="895" height="239" alt="Image" src="https://github.com/user-attachments/assets/590e6715-c4ad-4f95-96ec-ac13f323372e" /> <img width="394" height="89" alt="Image" src="https://github.com/user-attachments/assets/d7ef36c7-4172-4e04-9755-419153540815" /> ### Operating System Windows 10 ### Terminal Powershell
yindo added the windowsbug labels 2026-02-16 18:07:24 -05:00
Author
Owner

@github-actions[bot] commented on GitHub (Jan 25, 2026):

This issue might be a duplicate of existing issues. Please check:

  • #10385: Compaction bug - prompt token limit (similar error with /compact command)
  • #6068: Auto compaction not triggering reliably with Anthropic models
  • #8726: Stuck at 'prompt is too long' (context overflow causing session lockup)
  • #8394: Compactation Fails Agent forgets everything (manual and auto compaction failures)
  • #6286: Compaction Failing to Run on Time (compaction not preventing context overflow)

These issues all relate to compaction failures when token count exceeds model limits. Feel free to ignore if your specific case differs from these reports.

@github-actions[bot] commented on GitHub (Jan 25, 2026): This issue might be a duplicate of existing issues. Please check: - #10385: Compaction bug - prompt token limit (similar error with /compact command) - #6068: Auto compaction not triggering reliably with Anthropic models - #8726: Stuck at 'prompt is too long' (context overflow causing session lockup) - #8394: Compactation Fails Agent forgets everything (manual and auto compaction failures) - #6286: Compaction Failing to Run on Time (compaction not preventing context overflow) These issues all relate to compaction failures when token count exceeds model limits. Feel free to ignore if your specific case differs from these reports.
Author
Owner

@Relequestual commented on GitHub (Jan 26, 2026):

I can confirm this for MacOS and other providers.

@Relequestual commented on GitHub (Jan 26, 2026): I can confirm this for MacOS and other providers.
Author
Owner

@wongmjane commented on GitHub (Jan 31, 2026):

Seems like the case whenever I use Claude Opus 4.5 hosted through GitHub Copilot

@wongmjane commented on GitHub (Jan 31, 2026): Seems like the case whenever I use Claude Opus 4.5 hosted through GitHub Copilot
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#7510