Copilot Chat Sync Assistant
What It DoesCopilot Chat Sync Assistant is a VS Code extension that:
Why Use This Instead of the Built-in "Export Session"?VS Code has a built-in This extension provides:
What It Does NOT Do
🔒 Privacy WarningYour Copilot Chat sessions may contain sensitive information: API keys, internal URLs, code snippets, passwords pasted by mistake, etc. This extension applies secret redaction by default before writing any file to disk. However:
InstallationInstall from the VS Code Marketplace by searching for Or install manually:
Quick Start1. Export your sessionsOpen Command Palette (
Your sessions will be saved to 2. Browse your archiveClick the Copilot Chat Archive icon in the Activity Bar (left sidebar) to browse all archived sessions grouped by workspace. 3. SearchClick the 🔍 icon in the Archive sidebar or run:
Archive Folder Structure
|
| Command | Description |
|---|---|
Copilot Chat Sync: Push Archive to Git |
Commits and pushes new/updated sessions |
Copilot Chat Sync: Pull Archive from Git |
Pulls latest archive from remote |
Chat Variable: #past_session
Bring the context of an old session directly into a new Copilot Chat conversation.
Usage (in the Copilot Chat input box):
Refactor this module the same way we discussed in #past_session:"Google Play IAP audit"
The extension will find the matching archived session, read its Markdown content, and inject it as context into the current Copilot prompt.
Requires VS Code 1.90 or later.
Commands Reference
| Command | Description |
|---|---|
Copilot Chat Sync: Scan Local Sessions |
Scan and count all local sessions (no file written) |
Copilot Chat Sync: Export Current Workspace Sessions |
Export sessions for all workspaces |
Copilot Chat Sync: Export All Local Sessions |
Same as above (alias) |
Copilot Chat Sync: Open Archive |
Reveal archive folder in OS Explorer |
Copilot Chat Sync: Search Archived Sessions |
Quick Pick search through all archived chats |
Copilot Chat Sync: Detect Orphaned Sessions |
Find sessions that disappeared from the UI |
Copilot Chat Sync: Push Archive to Git |
Commit & push archive to configured remote |
Copilot Chat Sync: Pull Archive from Git |
Pull latest archive from remote |
Refresh (Archive view) |
Reload the Archive sidebar |
Settings Reference
| Setting | Default | Description |
|---|---|---|
copilotChatSync.archivePath |
"" (uses ~/CopilotChatArchive) |
Custom path to archive folder |
copilotChatSync.includeRaw |
true |
Save raw VS Code session data alongside exports |
copilotChatSync.redactSecrets |
true |
Redact API keys and tokens before export |
copilotChatSync.git.enabled |
false |
Enable Git push/pull commands |
copilotChatSync.git.autoSyncOnClose |
false |
Auto-export + push when VS Code closes |
copilotChatSync.automation.backgroundScanInterval |
30 |
Background scan interval in minutes (0 = disabled) |
Troubleshooting
"No sessions found" after scanning
- Ensure you have opened at least one project with GitHub Copilot Chat active.
- Check the
Copilot Chat SyncOutput Channel for scan details.
Exported Markdown is empty or has no messages
- The internal format of VS Code Copilot Chat storage may have changed. Check Output for
Unsupported or unknown formatwarnings. - Please open an issue with a sanitized sample of your session file.
Push fails with "not a git repo"
- Follow the Git Sync Setup instructions above.
- Ensure
copilotChatSync.git.enabledis set totrue.
#past_session not showing in Copilot Chat
- This feature requires VS Code 1.90 or later.
- Ensure you have run Export at least once so the archive
index.jsonexists.
Known Limitations
- The internal storage format of GitHub Copilot Chat (
.jsonlmutation logs) is not an official API. Future VS Code updates may change this format. - Hard restore of sessions back into VS Code internal storage is not supported in this version, by design.
- The
#past_sessionvariable only performs a simple title-based search (substring match). Semantic search is planned for a future version.
Contributing
Pull requests are welcome. Please open an issue first to discuss major changes.
License
MIT — See LICENSE for details.