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/9] 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/9] 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/9] 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/9] 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/9] 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.", From 913be3f7484593461ccacab4a7979b76e933f852 Mon Sep 17 00:00:00 2001 From: Caleb Brose <5447118+cmbrose@users.noreply.github.com> Date: Wed, 22 Apr 2026 13:46:29 -0500 Subject: [PATCH 6/9] Modify flag file creation for CLI version checks Updated the condition to create a flag file for both 'latest' and 'prerelease' versions. --- src/copilot-cli/install.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/copilot-cli/install.sh b/src/copilot-cli/install.sh index b50f52ed2..1d174ce24 100755 --- a/src/copilot-cli/install.sh +++ b/src/copilot-cli/install.sh @@ -80,9 +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 +# Create a flag file if using "latest" or "prerelease" so the postStartCommand knows to auto-update +if [ "${CLI_VERSION}" = "latest" || "${CLI_VERSION}" = "prerelease" ]; then mkdir -p /etc/devcontainer-copilot-cli - touch /etc/devcontainer-copilot-cli/use-latest + touch /etc/devcontainer-copilot-cli/auto-update fi From 860495b3875d75dc12e5ed067bcbe187b93ec7cf Mon Sep 17 00:00:00 2001 From: Caleb Brose <5447118+cmbrose@users.noreply.github.com> Date: Wed, 22 Apr 2026 13:46:44 -0500 Subject: [PATCH 7/9] Update postStartCommand for Copilot CLI --- 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..616175ed0 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": "[ -f /etc/devcontainer-copilot-cli/use-latest ] && copilot update || true", + "postStartCommand": "[ -f /etc/devcontainer-copilot-cli/auto-update ] && copilot update || true", "customizations": { "vscode": { "settings": { From 285d39ea8fa1f77d65cfdc96158516988561cc19 Mon Sep 17 00:00:00 2001 From: Caleb Brose <5447118+cmbrose@users.noreply.github.com> Date: Wed, 22 Apr 2026 13:49:35 -0500 Subject: [PATCH 8/9] Fix conditional check for CLI version --- src/copilot-cli/install.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/copilot-cli/install.sh b/src/copilot-cli/install.sh index 1d174ce24..47c2e3aca 100755 --- a/src/copilot-cli/install.sh +++ b/src/copilot-cli/install.sh @@ -81,7 +81,7 @@ echo "Downloading GitHub Copilot CLI..." install_using_github # Create a flag file if using "latest" or "prerelease" so the postStartCommand knows to auto-update -if [ "${CLI_VERSION}" = "latest" || "${CLI_VERSION}" = "prerelease" ]; then +if [ "${CLI_VERSION}" = "latest" ] || [ "${CLI_VERSION}" = "prerelease" ]; then mkdir -p /etc/devcontainer-copilot-cli touch /etc/devcontainer-copilot-cli/auto-update fi From 95192dcd76f4f27b5e8a3fadc9e3ff7d2951944c Mon Sep 17 00:00:00 2001 From: Caleb Brose <5447118+cmbrose@users.noreply.github.com> Date: Wed, 22 Apr 2026 13:50:11 -0500 Subject: [PATCH 9/9] Bump version of copilot-cli to 1.1.2 --- 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 616175ed0..bfd97286c 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.2", "name": "GitHub Copilot CLI", "documentationURL": "https://github.com/devcontainers/features/tree/main/src/copilot-cli", "description": "Installs the GitHub Copilot CLI.",