From c86c822bc7fb3b5a16dcdd5abe7c725b8ce913c7 Mon Sep 17 00:00:00 2001 From: shamoon <4887959+shamoon@users.noreply.github.com> Date: Tue, 13 Oct 2026 12:15:28 -0700 Subject: [PATCH] Fix ai auto-close message --- .github/workflows/issue-bot.yml | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/.github/workflows/issue-bot.yml b/.github/workflows/issue-bot.yml index 363ee6892..939726564 100644 --- a/.github/workflows/issue-bot.yml +++ b/.github/workflows/issue-bot.yml @@ -76,11 +76,12 @@ jobs: return; } - // Reaching here with the honeypot means AI usage was not disclosed in the form, so that - // message can name the cause. // A missing template label only tells us the issue did not come from the form, which - // is reason enough to close it, but not proof of how it was written. - const body = honeypot + // is reason enough to close it, but not proof of how it was written. It takes priority: + // a hand-built body can carry the honeypot *and* a disclosure, and the form message is + // the only one that is accurate for both. Reaching the honeypot message means the issue + // came from the form without disclosing AI usage, so that message can name the cause. + const body = honeypot && !bypassedTemplate ? 'This issue was automatically closed because it contains a marker that is only visible to ' + 'automated tools, which indicates it was generated by an AI agent, but the "AI usage" field does not ' + 'disclose this.\n\n' +