VS Code: switching sessions via history discards unsaved input without warning
Resolved 💬 2 comments Opened Apr 4, 2026 by geriwald Closed May 14, 2026
When using the session history button in the VS Code sidebar to switch to a different session, any text typed in the input box is silently discarded. No confirmation dialog or warning is shown.
Steps to reproduce
- Open Claude Code panel in VS Code
- Type text in the input box (do not send)
- Click the session history button and select a different session
- Text in the input box is gone — no warning, no way to recover
Expected behavior
Either:
- A confirmation dialog ("You have unsaved text in the input box. Switch anyway?")
- Or the draft text is preserved/restored when switching back to the original session
Environment
- Claude Code VS Code extension
- Linux (Debian)
- VS Code latest
This issue has 2 comments on GitHub. Read the full discussion on GitHub ↗