Skip to content

feat: add copilot-persistence dev container feature#88

Open
jsburckhardt wants to merge 1 commit intomainfrom
feat/copilot-persistence
Open

feat: add copilot-persistence dev container feature#88
jsburckhardt wants to merge 1 commit intomainfrom
feat/copilot-persistence

Conversation

@jsburckhardt
Copy link
Copy Markdown
Owner

Preserve ~/.copilot folder across container instances using a Docker volume and symlink, avoiding the need to reconfigure Copilot CLI after rebuilding the dev container.

Changes

  • src/copilot-persistence/ — Feature metadata, install script, and oncreate lifecycle script
  • test/copilot-persistence/test.sh — Smoke test verifying the symlink
  • test/_global/scenarios.json — Added standalone scenario
  • README.md — Added feature table entry and usage section

How it works

  1. A Docker volume (${devcontainerId}-copilot) is mounted at /dc/copilot
  2. install.sh backs up any existing ~/.copilot and creates a symlink to the volume
  3. oncreate.sh fixes volume permissions on container creation
  4. Marker files prevent double-runs on rebuilds

Note

The .github/workflows/test.yaml update (adding copilot-persistence to the CI matrix) could not be pushed due to OAuth scope limitations. Please add copilot-persistence to the matrix.features array manually.

Preserve ~/.copilot folder across container instances using a Docker
volume and symlink, avoiding the need to reconfigure Copilot CLI
after rebuilding the dev container.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant