Add /restart command to restart session from within chat
Resolved 💬 6 comments Opened Mar 14, 2026 by Tuzoff Closed Jun 11, 2026
Feature request
There's no way to restart a Claude Code session from within the chat. When settings change (e.g., permission mode, effort level) or the extension needs a fresh process, the only options are:
- Close and reopen the panel/tab
- Use VSCode command palette → "Developer: Reload Window" (restarts the entire VSCode window)
/clearonly clears history, doesn't restart the process
Proposed solution
Add a /restart slash command that:
- Cleanly shuts down the current session process
- Starts a new session with fresh settings
- Preserves the tab/panel position in the UI
This would be especially useful when:
- Settings are changed mid-session (bypass permissions, effort level, etc.)
- The session is in a bad state (near context limit, MCP connection issues)
- After updating Claude Code to a new version
Environment
- Claude Code 2.1.76
- VSCode extension
- Running in devcontainer (Linux)
This issue has 6 comments on GitHub. Read the full discussion on GitHub ↗