[Feature Request] Context Window Reset Without Session Restart

Resolved 💬 1 comment Opened Jul 11, 2025 by marcelo-alvarez Closed Jul 15, 2025

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:

  1. Save current project state (e.g. by slash-command or explicit file writing)
  2. Exit session
  3. Start new chat session
  4. 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.

View original on GitHub ↗

This issue has 1 comment on GitHub. Read the full discussion on GitHub ↗