github / github/copilot-cli

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

未关闭
#4,571 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

area:context-memory area:models
主要语言
Shell
星标
11.2k
派生
1.9k
平均合并
14 小时 16 分钟
30 天内合并 PR
6

描述

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

贡献指南

打开贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

调研方向

首先,使用 GPT-5.6 Luna Max 在 Copilot CLI 1.0.80 中重现该行为,并阅读链接的上下文管理文档。跟踪压缩在哪个位置被触发,并确定它为何在 50% 而不是大约 80% 时发生。完成的标准是同一任务在压缩前达到大约 80%,并根据报告的复现结果检查该行为。

由索引模型根据 Issue 内容生成。

评估

技术栈
shell
领域
cli
Issue 类型
缺陷
难度
3/5
预计耗时
1-2 天
活跃度
活跃
描述清晰度
基本清楚
新手友好度
58/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。