From 5f5f07221294044e2783c32a5a42aa2781a61571 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Wed, 4 Feb 2026 04:27:18 +0000 Subject: [PATCH 1/2] Initial plan From 79f8daf8824a3863da8d5448f9803e1fd74d4ec3 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Wed, 4 Feb 2026 04:34:14 +0000 Subject: [PATCH 2/2] test: fix TestUpgradeCommand_UpdatesAgentFiles after template removal Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com> --- pkg/cli/upgrade_command_test.go | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/pkg/cli/upgrade_command_test.go b/pkg/cli/upgrade_command_test.go index c75799c3b0..626ed5208d 100644 --- a/pkg/cli/upgrade_command_test.go +++ b/pkg/cli/upgrade_command_test.go @@ -60,15 +60,12 @@ This is a test workflow. err = RunUpgrade(config) require.NoError(t, err, "Upgrade command should succeed") - // Verify that agent files were created - instructionsFile := filepath.Join(tmpDir, ".github", "aw", "github-agentic-workflows.md") - assert.FileExists(t, instructionsFile, "Copilot instructions file should be created") - + // Verify that dispatcher agent file was created + // Note: After PR #13612, only the dispatcher agent file is downloaded/created. + // Other files (github-agentic-workflows.md, upgrade-agentic-workflows.md, etc.) + // are expected to exist only in the gh-aw repository itself. dispatcherFile := filepath.Join(tmpDir, ".github", "agents", "agentic-workflows.agent.md") assert.FileExists(t, dispatcherFile, "Dispatcher agent file should be created") - - upgradePromptFile := filepath.Join(tmpDir, ".github", "aw", "upgrade-agentic-workflows.md") - assert.FileExists(t, upgradePromptFile, "Upgrade prompt file should be created") } func TestUpgradeCommand_AppliesCodemods(t *testing.T) {