VS Code GitHub Copilot Chat 对话压缩
·
核心问题
当上下文窗口接近上限时,出现 “Quality may decline as limit nears” 警告 → 模型开始“健忘”、回答质量下降、重复或遗漏关键信息
解决方案
首选:预防 + 手动触发压缩 输入:
/compact
或者
Compact the full conversation history right now.
Create a dense summary including:
- All key architecture decisions
- Important file paths & roles
- Current implementation status
- Open todos / unresolved issues
- Critical variable/function names
- Tech choices & constraints
Be concise and factual.
如图:

→ 等待几秒~十几秒,它会输出总结内容 → 确认总结OK后,复制总结内容,新开一个对话。第一句直接粘贴总结 + 马上接任务:“基于以上总结,继续帮我实现 XXX”
更多推荐


所有评论(0)