latest copilot in vscode loses its mind after a while. #196002
Replies: 4 comments
|
💬 Your Product Feedback Has Been Submitted 🎉 Thank you for taking the time to share your insights with us! Your feedback is invaluable as we build a better GitHub experience for all our users. Here's what you can expect moving forward ⏩
Where to look to see what's shipping 👀
What you can do in the meantime 💻
As a member of the GitHub community, your participation is essential. While we can't promise that every suggestion will be implemented, we want to emphasize that your feedback is instrumental in guiding our decisions and priorities. Thank you once again for your contribution to making GitHub even better! We're grateful for your ongoing support and collaboration in shaping the future of our platform. ⭐ |
|
This strongly looks like a regression in how Copilot Chat handles persisted conversation state or session replay after long-running chat sessions. The key detail is the backend validation error: That error is particularly interesting because it does not resemble a normal token-limit, quota, or rate-limit failure. Instead, it suggests the client eventually sends an invalid internal message identifier while reconstructing or replaying accumulated chat history. A few things from your report point toward a serialization/state-management issue rather than normal context exhaustion:
The
Another possibility is that the agent/history persistence layer is accidentally retaining transient internal nodes that should never be included in outbound request payloads. The fact that reloading VS Code no longer resolves it may indicate:
Possible troubleshooting steps
Additional useful diagnosticsIt may help to include:
If developer logs are available, capturing the outgoing payload shape around the failing request could probably confirm whether internal Overall, this looks much more like a client-side conversation-history serialization regression than a standard HTTP 400 caused by user prompts, token limits, or quota exhaustion. The reproduction details and backend error context you provided are actually very useful for debugging 👍 |
|
I can second this, I have been experimenting the exact same issues, though the message linked to the 400 return sometimes varies. Right now, I'm getting: VS Code 1.120.0 |
|
I had the same issue but resolved it by explicitly choosing an LLM model in the chat window (e.g. "Raptor mini"), instead of keeping it as "Auto". It appears to be related to microsoft/vscode#316536, for which a fix is released to VS Code Insiders. |
Uh oh!
There was an error while loading. Please reload this page.
🏷️ Discussion Type
Bug
💬 Feature/Topic Area
VS Code
Body
VS Code Copilot Chat fails with HTTP 400 after session has been active for a while
Summary
After the latest update to the Copilot Chat agent in VS Code, Copilot Chat requests begin failing once a chat session has been active for a while.
The issue does not appear immediately in a fresh session. Instead, it seems to emerge only after the session has accumulated enough history/context over time. Initially, reloading or relaunching VS Code would temporarily work around the issue, but that no longer fixes it.
This does not appear to be tied to rate limits or token usage. The failure mode is a request validation error from the backend, not a limit-exceeded or context-length error.
Error
Expected behavior
Copilot Chat requests should continue to succeed even after a session has been active for a long time and accumulated substantial conversation history.
Actual behavior
After a session has been going for a while, Copilot Chat begins failing consistently with HTTP 400 and becomes unusable in VS Code.
Notes
input[101].idisthinking_0, while it expects an ID beginning withrs.Environment
Reproduction
Additional context
The error appears consistent with a malformed request body generated from persisted or replayed session history, rather than with quota exhaustion, token limits, or normal transient service failure.
All reactions