Refs: #330539, #330772
Complexity: 4
Author: Paul (@pwang347)
Create Issue
Context: VS Code stores some personal agents, instructions, and prompt files in the profile's User Data directory. These files roam between devices through Settings Sync, but agent-host harnesses such as Copilot CLI do not read this location.
What Changed: The Agent Customizations editor now offers two independent migration experiences for agent-host harnesses:
- Migrate Prompt Files converts workspace and user prompt files into skills.
- Migrate User Data Customizations moves User Data agents and instructions into harness-specific folders without changing their contents.
Use a disposable profile or back up your User Data customizations before testing cases that delete the originals.
Setup
- Enable:
chat.customizations.promptMigration.enabled
chat.customizations.userDataMigration.enabled
- Ensure Copilot CLI sessions are available.
- Create the following customizations:
- A workspace
.prompt.md file.
- A user
.prompt.md file.
- A user
.agent.md file in VS Code User Data.
- A user
.instructions.md file in VS Code User Data.
- Run Open Customizations and select the Copilot CLI harness.
Test Cases
1. Migration experiences are independent
- Disable both migration settings.
- Verify neither migration card nor sidebar shortcut appears.
- Enable only
chat.customizations.promptMigration.enabled.
- Verify only Migrate Prompt Files appears.
- Disable it and enable only
chat.customizations.userDataMigration.enabled.
- Verify only Migrate User Data Customizations appears.
- Enable both settings and verify both migrations appear with correct counts.
2. Prompt files migrate to skills
- Open Migrate Prompt Files.
- Verify prompt files are grouped into Workspace and User.
- Verify search, individual selection, group selection, and collapsing groups work.
- Open a candidate and verify its source file is shown.
- Migrate selected files.
- If multiple destination roots are available, select one and verify it is reused for the remaining files.
- Verify:
- A valid
SKILL.md is created in the selected harness skill folder.
- The migrated skill contains
disable-model-invocation: true.
- Supported prompt metadata and body content are retained.
- Original prompt files are deleted when the delete checkbox is selected.
- Repeat with the delete checkbox cleared and verify both original and migrated files remain.
3. User Data agents and instructions migrate without conversion
- Open Migrate User Data Customizations.
- Verify:
- The Settings Sync warning is visible.
- The learn-more link appears below the warning.
- Files are grouped into Agents and Instructions.
- Migrate an agent and instruction with deletion enabled.
- Verify:
- Each file moves to the appropriate harness-specific user folder.
- Filename and file contents are unchanged.
- The originals are removed from User Data.
- The migrated files appear in the corresponding Customizations sections.
- Repeat with deletion disabled and verify the originals remain in User Data.
4. Keyboard and accessibility behavior
- Navigate the migration page using only the keyboard.
- Verify the checkbox, file Open action, and Delete action are separate focus targets.
- Activate Open with both
Enter and Space.
- Verify the opened file matches the selected row.
- With a screen reader, verify the Open action announces both the customization name and its path, allowing same-named files to be distinguished.
- On the overview, verify each migration card exposes only its Migrate... action as an interactive target and does not announce nested buttons.
Refs: #330539, #330772
Complexity: 4
Author: Paul (@pwang347)
Create Issue
Context: VS Code stores some personal agents, instructions, and prompt files in the profile's User Data directory. These files roam between devices through Settings Sync, but agent-host harnesses such as Copilot CLI do not read this location.
What Changed: The Agent Customizations editor now offers two independent migration experiences for agent-host harnesses:
Setup
chat.customizations.promptMigration.enabledchat.customizations.userDataMigration.enabled.prompt.mdfile..prompt.mdfile..agent.mdfile in VS Code User Data..instructions.mdfile in VS Code User Data.Test Cases
1. Migration experiences are independent
chat.customizations.promptMigration.enabled.chat.customizations.userDataMigration.enabled.2. Prompt files migrate to skills
SKILL.mdis created in the selected harness skill folder.disable-model-invocation: true.3. User Data agents and instructions migrate without conversion
4. Keyboard and accessibility behavior
EnterandSpace.