From dcc98cdb52299144318a61ab27d6b29749cfa14c Mon Sep 17 00:00:00 2001 From: stranske Date: Fri, 9 Jan 2026 14:20:52 +0000 Subject: [PATCH] fix: auto-start coding agent for issue-triggered PRs in consumer repos The consumer repo template for agents-issue-intake.yml was always passing post_agent_comment as false for issue-triggered events (when inputs are undefined), preventing the coding agent from auto-starting. Changed to default to 'true' for issue events, allowing workflow_dispatch to override via the post_codex_comment input parameter. This matches the reusable workflow's default behavior. Fixes the issue where PRs created from issues (e.g., via verify:create-issue) would never start the coding agent, leaving them stuck in 'agent-run-skipped' state across all consumer repos. --- .../consumer-repo/.github/workflows/agents-issue-intake.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/consumer-repo/.github/workflows/agents-issue-intake.yml b/templates/consumer-repo/.github/workflows/agents-issue-intake.yml index 0fd0c29f7..23aa7c6ff 100644 --- a/templates/consumer-repo/.github/workflows/agents-issue-intake.yml +++ b/templates/consumer-repo/.github/workflows/agents-issue-intake.yml @@ -178,7 +178,7 @@ jobs: agent: ${{ needs.check_labels.outputs.agent }} issue_number: ${{ needs.check_labels.outputs.issue_number }} mode: "create" - post_agent_comment: ${{ inputs.post_codex_comment && 'true' || 'false' }} + post_agent_comment: ${{ github.event_name == 'workflow_dispatch' && (inputs.post_codex_comment && 'true' || 'false') || 'true' }} agent_pr_draft: ${{ inputs.bridge_draft_pr && 'true' || 'false' }} secrets: service_bot_pat: ${{ secrets.SERVICE_BOT_PAT }}