Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .changeset/patch-conditional-agent-output.md

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 1 addition & 6 deletions actions/setup/js/handle_agent_failure.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -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}"`);

Expand Down