[BUG]/[FEATURE]: Context window bloated with EditorContext loading all visible files, open tabs ..... from VS Code
Feature hasn't been suggested before.
- [x] I have verified this feature I'm about to request hasn't been suggested before.
Describe the enhancement you want to request
The Kilo VS Code extension automatically sends editor context (visible files, open tabs, active file) to the AI with every user message.
This information is formatted into <environment_details> blocks and injected into prompts. Currently, there is no way for users to disable this behavior (I think there was before option for this).
https://github.com/Kilo-Org/kilocode/blob/e10324aa7f4960002f438882e5080174197110bd/packages/opencode/src/kilocode/editor-context.ts#L1-L6
https://github.com/Kilo-Org/kilocode/blob/e10324aa7f4960002f438882e5080174197110bd/packages/kilo-vscode/src/KiloProvider.ts#L2164
Current workaround None available - this behavior is hardcoded in the extension.
Additional context This was identified by examining the source code where:
PromptInput includes an optional editorContext field with visibleFiles, openTabs, activeFile, and shell The environmentDetails() function in editor-context.ts formats this into XML blocks The loop function in prompt.ts injects these blocks into every user message The VS Code extension's gatherEditorContext() function collects this data from the editor
To stay organized issues are automatically closed after 60 days of no activity. If the issue is still relevant please reopen it or create a fresh new one.