[Feature Request] Context Window Reset Without Session Restart
Feature Request: Context Window Reset Without Session Restart
Description
During long development sessions, the conversational context window sometimes accumulates noise (tangents, confusion, debugging iterations) that degrades performance and focus.
Currently, the only way to clear this accumulated context is to restart the session entirely:
- Save current project state (e.g. by slash-command or explicit file writing)
- Exit session
- Start new chat session
- Reload project state
This effectively clears the context window but breaks UX continuity.
Proposed Solution
Add a command that purges/resets the context window while preserving:
- Chat history visibility in the UI
- File system state and working directory
UX Consideration
To avoid confusion where visible chat history exists that is no longer explicitly in context, pre-purge messages could be visually distinguished (grayed out, different color, or marked with an indicator like "out-of-context").
Use Case
This would allow context window management during long sessions where accumulated conversational history becomes counterproductive, without losing the UX benefits of session continuity. Helpful for complex, interactive, debugging and multi-phase development where maintaining session state is valuable but conversational context pollution reduces effectiveness.
This issue has 1 comment on GitHub. Read the full discussion on GitHub ↗