From c5108492c9adc496de14152daa504a4c50046ff3 Mon Sep 17 00:00:00 2001 From: Caleb Brose <5447118+cmbrose@users.noreply.github.com> Date: Thu, 16 Apr 2026 14:44:18 -0500 Subject: [PATCH 1/5] Add postStartCommand to devcontainer feature --- src/copilot-cli/devcontainer-feature.json | 1 + 1 file changed, 1 insertion(+) diff --git a/src/copilot-cli/devcontainer-feature.json b/src/copilot-cli/devcontainer-feature.json index ab433e2ae..ae46966c7 100644 --- a/src/copilot-cli/devcontainer-feature.json +++ b/src/copilot-cli/devcontainer-feature.json @@ -15,6 +15,7 @@ "description": "Select version of the GitHub Copilot CLI, if not latest." } }, + "postStartCommand": "copilot update", "customizations": { "vscode": { "settings": { From 71ecdcb7afb352916a8f669bb028b3e32d634d21 Mon Sep 17 00:00:00 2001 From: Caleb Brose <5447118+cmbrose@users.noreply.github.com> Date: Thu, 16 Apr 2026 14:45:57 -0500 Subject: [PATCH 2/5] Bump version of copilot-cli to 1.1.0 --- src/copilot-cli/devcontainer-feature.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/copilot-cli/devcontainer-feature.json b/src/copilot-cli/devcontainer-feature.json index ae46966c7..b06e93f49 100644 --- a/src/copilot-cli/devcontainer-feature.json +++ b/src/copilot-cli/devcontainer-feature.json @@ -1,6 +1,6 @@ { "id": "copilot-cli", - "version": "1.0.0", + "version": "1.1.0", "name": "GitHub Copilot CLI", "documentationURL": "https://github.com/devcontainers/features/tree/main/src/copilot-cli", "description": "Installs the GitHub Copilot CLI.", From bcaf3cee55af82093745d7bd7331f7a91b63fa68 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Mon, 20 Apr 2026 19:06:51 +0000 Subject: [PATCH 3/5] feat: conditionally run copilot update based on use-latest flag file Agent-Logs-Url: https://github.com/cmbrose/devcontainer-features/sessions/3627c9ec-26ad-486e-a1ae-a4159d1ec2c5 Co-authored-by: cmbrose <5447118+cmbrose@users.noreply.github.com> --- src/copilot-cli/devcontainer-feature.json | 2 +- src/copilot-cli/install.sh | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/src/copilot-cli/devcontainer-feature.json b/src/copilot-cli/devcontainer-feature.json index b06e93f49..08a92753c 100644 --- a/src/copilot-cli/devcontainer-feature.json +++ b/src/copilot-cli/devcontainer-feature.json @@ -15,7 +15,7 @@ "description": "Select version of the GitHub Copilot CLI, if not latest." } }, - "postStartCommand": "copilot update", + "postStartCommand": "[ -f /etc/devcontainer-copilot-cli/use-latest ] && copilot update || true", "customizations": { "vscode": { "settings": { diff --git a/src/copilot-cli/install.sh b/src/copilot-cli/install.sh index 7250fa642..b50f52ed2 100755 --- a/src/copilot-cli/install.sh +++ b/src/copilot-cli/install.sh @@ -80,3 +80,9 @@ echo "Downloading GitHub Copilot CLI..." install_using_github +# Create a flag file if using "latest" so the postStartCommand knows to auto-update +if [ "${CLI_VERSION}" = "latest" ]; then + mkdir -p /etc/devcontainer-copilot-cli + touch /etc/devcontainer-copilot-cli/use-latest +fi + From b7eaaa666321a74f0608d16d805234b509863e7c Mon Sep 17 00:00:00 2001 From: Caleb Brose <5447118+cmbrose@users.noreply.github.com> Date: Mon, 20 Apr 2026 14:22:17 -0500 Subject: [PATCH 4/5] Bump version of copilot-cli to 1.1.1 --- src/copilot-cli/devcontainer-feature.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/copilot-cli/devcontainer-feature.json b/src/copilot-cli/devcontainer-feature.json index 08a92753c..17feac667 100644 --- a/src/copilot-cli/devcontainer-feature.json +++ b/src/copilot-cli/devcontainer-feature.json @@ -1,6 +1,6 @@ { "id": "copilot-cli", - "version": "1.1.0", + "version": "1.1.1", "name": "GitHub Copilot CLI", "documentationURL": "https://github.com/devcontainers/features/tree/main/src/copilot-cli", "description": "Installs the GitHub Copilot CLI.", From df52a44e051275328e5bde0490367b4ee5e01e44 Mon Sep 17 00:00:00 2001 From: Caleb Brose <5447118+cmbrose@users.noreply.github.com> Date: Mon, 20 Apr 2026 14:27:13 -0500 Subject: [PATCH 5/5] Update devcontainer-feature.json --- src/copilot-cli/devcontainer-feature.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/copilot-cli/devcontainer-feature.json b/src/copilot-cli/devcontainer-feature.json index 17feac667..08a92753c 100644 --- a/src/copilot-cli/devcontainer-feature.json +++ b/src/copilot-cli/devcontainer-feature.json @@ -1,6 +1,6 @@ { "id": "copilot-cli", - "version": "1.1.1", + "version": "1.1.0", "name": "GitHub Copilot CLI", "documentationURL": "https://github.com/devcontainers/features/tree/main/src/copilot-cli", "description": "Installs the GitHub Copilot CLI.",