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}"`);