-
Notifications
You must be signed in to change notification settings - Fork 38.8k
Description
Issue Summary
When I enable GitHub › Copilot › Chat › Anthropic › Context Editing: Mode for Claude models, the Claude agent frequently throws an execution error.
This setting is supposed to automatically manage conversation context as it grows. However, in practice, Claude becomes unstable when it is enabled.
I also noticed that with certain prompts, Claude appears to perform a kind of conversation compaction during the response (similar to /compact behavior), but the process is unreliable and often ends with an execution error.
When the setting is turned off, the issue does not appear to happen in the same way.
Steps to Reproduce
- Open VS Code with GitHub Copilot Chat installed.
- Go to GitHub › Copilot › Chat › Anthropic › Context Editing: Mode.
- Set the mode to any enabled option such as:
clear-thinkingclear-tooluseclear-both
- Start a Claude agent session.
- Use a prompt or workflow that grows the conversation context.
- Observe that the agent eventually throws an execution error.
Expected Behavior
Claude agent should continue working normally when context editing is enabled, without throwing execution errors.
Actual Behavior
Claude agent becomes unstable and raises execution errors after context editing is triggered or while the conversation is being compacted/rewritten.
Additional Notes
- This seems related specifically to the experimental Context Editing feature for Anthropic models.
- The issue appears intermittent, but it happens often enough to affect usability.
- Claude sometimes seems to partially handle context compaction correctly before failing, which suggests the feature may be triggering but not completing reliably.