Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

README.md

Copilot CLI Persistence (copilot-persistence)

Persists GitHub Copilot CLI settings and chat history across rebuilds

Example Usage

"features": {
    "ghcr.io/rosstaco/devcontainer-features/copilot-persistence:1": {}
}

How It Works

Inspired by the shell-history pattern, this feature:

  1. Mounts a named volume (scoped per dev container via ${devcontainerId}) to /copilot-data
  2. Creates a symlink from ~/.copilot/copilot-data
  3. Sets ownership to the container user during installation (auto-detects from $_REMOTE_USER)

Note: If ~/.copilot already exists as a directory during installation, it is moved into the volume at /copilot-data/migrated-<timestamp>/ before the symlink is created.

What Persists

  • ✅ Chat history and sessions
  • ✅ CLI configuration (model preferences, settings)
  • ✅ Command history
  • ✅ Trusted folders

Troubleshooting

View the volume data:

ls -la /copilot-data

Check the symlink:

ls -la ~/.copilot

Note: This file was auto-generated from the devcontainer-feature.json. Add additional notes to a NOTES.md.