Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

For a portable record of a VS Code conversation, use Chat: Export Chat… to save its prompts and responses as JSON; use Copy All for a readable Markdown copy. For supported Copilot agent sessions, account-based session sync can make history available on another device. These are different routes: VS Code does not document the conversation JSON export as a way to restore a live chat. If local session files are restored but entries are missing, rebuild the index with /chronicle:reindex.

Choose the right kind of backup

VS Code offers several ways to preserve or find agent-session information, but they do not all do the same thing. An exported chat is a portable transcript; session sync makes supported sessions available through an account; and reindexing helps VS Code find local session files. Agent Debug Logs are a separate diagnostic feature.

Method What it does Important limitation
Chat: Export Chat… Saves a JSON file containing the conversation’s prompts and responses. VS Code’s documentation does not describe importing this export as an active chat.
Copy All Copies the conversation as readable Markdown. A transcript is not a restorable session.
Copilot session sync Makes supported sessions available across devices and supported surfaces through a GitHub account. Availability depends on feature support, account settings, repository exclusions, and organization policy. Turning sync off does not itself remove existing cloud copies.
Restore local files and reindex Rebuilds the local session index after a restore or other missing-history situation. Reindexing is not documented as a tool for importing an exported conversation JSON file.
Agent Debug Logs export/import Exports or opens OpenTelemetry JSON for diagnostic inspection. This is a different format and purpose from conversation-history export.

Export a conversation to keep a portable copy

  1. Open the conversation in VS Code’s Chat view.
  2. Open the Command Palette and run Chat: Export Chat….
  3. Choose where to save the JSON file.

Microsoft’s Manage agent sessions in VS Code documentation says the export contains all prompts and responses from the session. It does not promise that the file includes worktree state or that it can recreate the active chat. Keep the JSON in a location covered by your normal backup routine.

For a human-readable companion, open the chat context menu and select Copy All, then save the copied Markdown in a document or text file. This preserves a readable transcript, not a live session.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
#1 Best Overall
Sale
Seagate 2TB Portable Hard Drive | USB 3.0 (STGX2000400)
  • Easily store and access 2TB to content on the go with the Seagate Portable Drive, a USB external hard drive
  • Designed to work with Windows or Mac computers, this external hard drive makes backup a snap just drag and drop
  • To get set up, connect the portable hard drive to a computer for automatic recognition no software required
  • This USB drive provides plug and play simplicity with the included 18 inch USB 3.0 cable
  • The available storage capacity may vary.

Use Copilot session sync when you want supported sessions on another device

VS Code’s Sync and query session history guide says local Copilot sessions sync to a GitHub account by default, so they can be accessed across devices and supported GitHub and Copilot surfaces. This is account-based access, not the same as keeping a JSON export under your own backup control. Do not assume sync applies to every agent harness.

Control sync and exclusions

  • To keep sessions on the machine, set chat.sessionSync.enabled to false.
  • To exclude repositories, use chat.sessionSync.excludeRepositories.
  • For Copilot Business and Enterprise accounts, an organization’s GitHub policy or the VS Code CopilotSessionSync group policy may govern availability or settings. Check your organization’s policy if the setting is unavailable or behaves differently.

The guide says synced sessions are private unless you explicitly share them. It also says tokens, API keys, credentials, and other secrets are filtered before sync. If you opt out, existing cloud copies remain until deleted. The Delete Session Sync Data command offers separate local-and-cloud and cloud-only choices; deleting both local and cloud data cannot be undone.

Rank #2
Sale
Samsung T7 Portable SSD 1TB Titan Gray, USB 3.2 Gen 2, Up to 1,050MB/s
  • MADE FOR THE MAKERS: Create; Explore; Store; The T7 Portable SSD delivers fast speeds and durable features to back up any endeavor; Build your video editing empire, file your photographs or back up your blogs all in an instant
  • SHARE IDEAS IN A FLASH: Don’t waste a second waiting and spend more time doing; The T7 is embedded with PCIe NVMe technology that brings fast read and write speeds up to 1,050/1,000 MB/s¹, making it almost twice as fast as the T5
  • ALWAYS MAKE THE SAVE: Compact design with massive capacity; With capacities up to 4TB, save exactly what you need to your drive – from large working files to game data and everything in between
  • ADAPTS TO EVERY NEED: Whether using a PC or mobile phone, count on the T7 for extensive compatibility²; It’s a true team player when it comes to heavy-duty application usage or file-saving
  • HI RESOLUTION VIDEO RECORDING: Record Ultra High Resolution (4K 60fs) videos directly onto the T7 Portable SSD with your favorite camera or mobile devices; Supports iPhone 15 Pro Res 4K at 60fps video and more³

Restore local session files and rebuild the index

If you have restored local session files from a backup but sessions do not appear in history, VS Code’s session-history guide recommends reindexing. It also lists unexpected crashes, manually deleted session directories, and opting back into session sync as situations where reindexing may help.

  1. Open a chat and enter /chronicle:reindex, or run the Reindex Sessions command.
  2. Allow VS Code to rebuild the local session index and sync session data as described in the guide.
  3. Check the session history again. Reindexing addresses the local index; it is not documented as importing a Chat: Export Chat JSON file into an active conversation.
Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

Keep Agent Debug Logs separate from chat backups

The Agent Debug Logs panel has its own export and import workflow. It exports a session as OpenTelemetry JSON and can import an Agent Debug Log JSON file for inspection in the Summary and Logs views. That diagnostic record is distinct from the prompts-and-responses JSON created by Chat: Export Chat…; importing a debug log does not restore a conversation as a live chat.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Quick Recap

SaleBestseller No. 1
Seagate 2TB Portable Hard Drive | USB 3.0 (STGX2000400)
Seagate 2TB Portable Hard Drive | USB 3.0 (STGX2000400)
This USB drive provides plug and play simplicity with the included 18 inch USB 3.0 cable; The available storage capacity may vary.
$119.99
Bestseller No. 4
Lexar ES3 1TB Portable SSD Silver, USB 3.2 Gen 2 up to 1050MB/s
Lexar ES3 1TB Portable SSD Silver, USB 3.2 Gen 2 up to 1050MB/s
Note: Magsafe is not available in this version
$179.99
Best Value
Sandisk 2TB Extreme Portable SSD, Up to 1050MB/s, USB-C, USB 3.2 Gen 2, IP65 Water and Dust Resistance, Updated Firmware, External Solid State Drive, SDSSDE61-2T00-G25
  • Get NVMe solid state performance with up to 1050MB/s read and 1000MB/s write speeds in a portable, high-capacity drive(1) (Based on internal testing; performance may be lower depending on host device & other factors. 1MB=1,000,000 bytes.)
  • Up to 3-meter drop protection and IP65 water and dust resistance mean this tough drive can take a beating(3) (Previously rated for 2-meter drop protection and IP55 rating. Now qualified for the higher, stated specs.)
  • Use the handy carabiner loop to secure it to your belt loop or backpack for extra peace of mind.
  • Help keep private content private with the included password protection featuring 256‐bit AES hardware encryption.(3)
  • Easily manage files and automatically free up space with the SanDisk Memory Zone app.(5). Non-Operating Temperature -20°C to 85°C
Rank #4
Lexar ES3 1TB Portable SSD Silver, USB 3.2 Gen 2 up to 1050MB/s
  • Note: Magsafe is not available in this version
  • High-speed Data Transfer: Lexar external SSD ES3 supports USB 3.2 Gen 2 up to 1050MB/s read and 1000MB/s write to transfer files fast for more efficient work. (Performance may be lower if not supporting USB 3.2 Gen 2 on Mac and other systems)
  • Wide Compatibility: Lexar Portable SSD ES3 compatibility with iPhone 17 series (Not supported on iPhone 14 and older models), Android mobile devices, laptops, cameras, Xbox X|S, PS4, PS5, gaming console, and more
  • On The Go: Lexar external solid state drive ES3's thin, stylish, and durable design, weighs 42g and is only 10.5mm thick, making it smaller than a card and easily fits in your pocket. It comes with a Type-C cable for plug-and-play convenience
  • Data Safety First: Lexar SSD ES3 includes Lexar DataShieldTM 256-bit AES encryption software to protect files
Rank #3
Sale
Samsung T7 Portable SSD 2TB Titan Gray, USB 3.2 Gen 2, Up to 1,050MB/s
  • MADE FOR THE MAKERS: Create; Explore; Store; The T7 Portable SSD delivers fast speeds and durable features to back up any endeavor; Build your video editing empire, file your photographs or back up your blogs all in an instant
  • SHARE IDEAS IN A FLASH: Don’t waste a second waiting and spend more time doing; The T7 is embedded with PCIe NVMe technology that brings fast read and write speeds up to 1,050/1,000 MB/s¹, making it almost twice as fast as the T5
  • ALWAYS MAKE THE SAVE: Compact design with massive capacity; With capacities up to 4TB, save exactly what you need to your drive – from large working files to game data and everything in between
  • ADAPTS TO EVERY NEED: Whether using a PC or mobile phone, count on the T7 for extensive compatibility²; It’s a true team player when it comes to heavy-duty application usage or file-saving
  • HI RESOLUTION VIDEO RECORDING: Record Ultra High Resolution (4K 60fs) videos directly onto the T7 Portable SSD with your favorite camera or mobile devices; Supports iPhone 15 Pro Res 4K at 60fps video and more³

Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.