GitHub Copilot and VS Code session import

GitHub Copilot and VS Code session import

Prompt-first procedure: Describe the outcome you want in your agent conversation. The agent should select and load the appropriate AIWG assets, explain material changes, request any needed approval, and report verification evidence. Exact commands and flags appear only in the CLI reference.

AIWG supports explicitly exported VS Code chat JSON. In VS Code, open the session, run Chat: Export Chat..., select a destination, and import that file:

Use AIWG to complete this documented outcome: AIWG supports explicitly exported VS Code chat JSON. In VS Code, open the session, run Chat: Export Chat..., select a destination, and import that file
Have it inspect the current state, explain the plan, ask before material
changes, and report the result with verification evidence.

The supported adapter reads only the selected regular file. It does not scan VS Code `workspaceStorage`, `state.vscdb`, JSON, or JSONL operation logs. Those formats are version-dependent implementation details and the proposed `chatSessionsProvider` API is not treated as a stable dependency.

Preserved data and losses

The adapter preserves session/request IDs, prompts, response text, timestamps, model identity, workspace/repository metadata, participants, sync state, archive state, and unknown export fields. Structured non-Markdown response parts are flattened into normalized text and reported in each event's `metadataLoss` list; their unknown fields remain opaque extension data. Active exports are complete snapshots of the export operation, but their session lifecycle remains active.

Sync, archive, and deletion

Sync, archive, and deletion are separate states. Session sync can be enabled, disabled, excluded by repository, blocked by policy, in progress, or failed. Archiving hides a session but does not delete it. Provider deletion may target local and cloud data or cloud data only. AIWG import and purge never claim to perform either provider-side deletion.

To forget the AIWG-owned copy, use the agent-owned sessions operation for a reversible tombstone or the agent-owned sessions operation for previewed terminal local cleanup.

Evidence and tested contract

Unknown export major versions fail before normalized persistence. Malformed exports and workspace-store locator classes also fail closed.