github / github/copilot-cli

Compaction loses all context on the immediately executing task

Open
#1,571 0 comments 0 reactions 0 assignees View on GitHub
area:context-memory
Dominant language
Shell
Stars
11.2k
Forks
1.9k
Avg merge
14h 16m
Merged PRs (30d)
6

Description

### Describe the bug

This has happened a few times to me over the past days. After compaction happens, context from the previously executing action seems to become completely lost which effectively requires manually stitching things back together. This is not consistently happening and I do not know how to reproduce reliably.

Here's an example which happened right now:

Image
you can see right after compaction that it's trying to figure out what it was doing right before (e.g. about to check screenshots it had just taken)

Image

I'm happy to share any local files which could help debug this.

### Affected version

GitHub Copilot CLI 0.0.413-0.

### Steps to reproduce the behavior

_No response_

### Expected behavior

Expected behavior would be for copilot to continue with ongoing work after compaction without needing to reinfer everything from repo state.

### Additional context

Let me know what would be useful to debug.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.