Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>Agent Tab RestoreNew to Visual Studio Code? Get it now.
Agent Tab Restore

Agent Tab Restore

Thiago Vieira

| (0) | Free
Reopens only the Cursor agent tabs that were open before a reload. Chat history and the window layout stay untouched.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Agent Tab Restore

Keeps Cursor from reopening every past agent chat after a reload. The next time the window loads, only the agent tabs that were open before the reload come back.

Chat history stays in the agent list. The sidebar, panels, and the rest of the layout stay where they are.

How it works

Cursor can restore agent chats you already closed, and it does not expose those tabs to other extensions as normal editor tabs. This extension reads the chats Cursor still marks as open and closes the extras a moment after startup.

  1. Reload the window once so the extension can start.
  2. On that first load, close the agent tabs you do not want. The ones you leave open are remembered.
  3. On later reloads, tabs outside that set are closed again. Opening or closing an agent tab updates the set.

Run Agent Tabs: Remember Open Tabs from the Command Palette to save the current set immediately.

Logs are written to the Agent Tab Restore output channel.

Requirements

Cursor, or a VS Code build that uses the cursor.composer editor for agent chats. The extension does nothing to ordinary file tabs.

What it does not do

  • It does not delete conversations.
  • It does not move the sidebar, the Terminal, or other views.
  • It does not stop Cursor from restoring the extra tabs for a moment. It closes them after startup.
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
  • Your Privacy Choices
  • Consumer Health Privacy
© 2026 Microsoft