Skip to content

Uncapped Problems Output Can Overwhelm Session ContextΒ #4860

@hannesrudolph

Description

@hannesrudolph

App Version

v3.21.0 (accc5fb)

API Provider

Not Applicable / Other

Model Used

N/A

πŸ” Steps to Reproduce

The core of this issue is architectural rather than a specific sequence of user actions. Any scenario that generates a very large number of "problems" in VSCode will trigger it.

For example, a failed pnpm install in a large monorepo can generate 60,000+ problems.

The underlying issue is that the extension feeds the entire content of the "Problems" panel into the session context without any limits.

πŸ’₯ Outcome Summary

Expected: The number of problems sent to the chat session should be capped at a reasonable limit to prevent context overflow, even if thousands of problems are generated by the build process or language servers.

Actual: The problems output is not capped. A large number of generated problems (e.g., from a failed dependency install) can flood the session context, causing it to grow excessively (e.g., 800k+ tokens). This can make the session unresponsive, slow, and expensive.

πŸ“„ Relevant Logs or Errors (Optional)

N/A - The issue is the volume of correct error reporting, not a specific error message.

Metadata

Metadata

Assignees

Labels

Issue - In ProgressSomeone is actively working on this. Should link to a PR soon.bugSomething isn't working

Type

No type

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions