From 9bae7f93def77648c4b93f93f034277b9b001784 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Mon, 9 Mar 2026 01:17:02 +0000 Subject: [PATCH 1/2] Initial plan From d48c73e783150c0c8e7fc2b0e61b11051da6f056 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Mon, 9 Mar 2026 01:22:27 +0000 Subject: [PATCH 2/2] fix: Remove (pre-agent) denomination from agent failure issue title (#20142) Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com> --- .changeset/patch-conditional-agent-output.md | 2 +- actions/setup/js/handle_agent_failure.cjs | 7 +------ 2 files changed, 2 insertions(+), 7 deletions(-) diff --git a/.changeset/patch-conditional-agent-output.md b/.changeset/patch-conditional-agent-output.md index c80fe9d391..6802a8ff66 100644 --- a/.changeset/patch-conditional-agent-output.md +++ b/.changeset/patch-conditional-agent-output.md @@ -2,4 +2,4 @@ "gh-aw": patch --- -Make the agent-output download step conditional so `GH_AW_AGENT_OUTPUT` is only set when the artifact succeeds and label pre-agent failures in the issue title. +Make the agent-output download step conditional so `GH_AW_AGENT_OUTPUT` is only set when the artifact succeeds. diff --git a/actions/setup/js/handle_agent_failure.cjs b/actions/setup/js/handle_agent_failure.cjs index 25730be485..6eaf84262e 100644 --- a/actions/setup/js/handle_agent_failure.cjs +++ b/actions/setup/js/handle_agent_failure.cjs @@ -647,12 +647,7 @@ async function main() { // Sanitize workflow name for title const sanitizedWorkflowName = sanitizeContent(workflowName, { maxLength: 100 }); - // Detect pre-agent failure: agent never produced output (artifact was not downloaded). - // When the artifact download succeeds, GH_AW_AGENT_OUTPUT is set; when it fails the - // env var is absent, indicating the agent did not reach output-production. - const isPreAgentFailure = agentConclusion === "failure" && !process.env.GH_AW_AGENT_OUTPUT; - const failureStage = isPreAgentFailure ? " (pre-agent)" : ""; - const issueTitle = `[aw] ${sanitizedWorkflowName} failed${failureStage}`; + const issueTitle = `[aw] ${sanitizedWorkflowName} failed`; core.info(`Checking for existing issue with title: "${issueTitle}"`);