github / github/copilot-cli

Compaction is triggered at 50% with GPT-5.6 Luna Max

Open
#4,571 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

area:context-memory area:models
Dominant language
Shell
Stars
11.2k
Forks
1.9k
Avg merge
14h 16m
Merged PRs (30d)
6

Description

Describe the bug

When using Copilot CLI with GPT-5.6 Luna Max (maybe other effort levels also), compaction is triggered at 50%. Implementing even smaller tasks almost always trigger compaction because of that.

Affected version

GitHub Copilot CLI 1.0.80

Steps to reproduce the behavior

Use Copilot CLI with GPT-5.6 Luna Max let it work on a task. At 50% context window, compaction triggers.

Expected behavior

Should happen at approximately 80% of the context window's capacity.

https://docs.github.com/en/copilot/concepts/agents/copilot-cli/context-management#when-compaction-happens

Additional context
  • MacBook Pro - M2 Pro

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the behavior in Copilot CLI 1.0.80 with GPT-5.6 Luna Max and read the linked context-management documentation. Trace where compaction is triggered and identify why it occurs at 50% rather than approximately 80%. Done means the same task reaches roughly 80% before compaction, with the behavior checked against the reported reproduction.

Written by the indexing model from the issue text.

Assessment

Tech stack
shell
Domain
cli
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Active
Clarity
Mostly clear
Newbie friendliness
58/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.