fix: preserve Google Gemini 3 cron thinking

This commit is contained in:
clawsweeper
2026-05-22 08:37:24 +00:00
parent b02966b3bf
commit 804e2bc4c4
2 changed files with 24 additions and 3 deletions

View File

@@ -6,7 +6,7 @@ export const MOCK_ONLY_PROOF_LABEL = "triage: mock-only-proof";
export const MAINTAINER_TEAM_SLUG = "maintainer";
export const CLAWSWEEPER_PROOF_VERDICT_STATUS = "clawsweeper_exact_head_pass";
const CLAWSWEEPER_BOT_LOGIN = "clawsweeper[bot]";
const CLAWSWEEPER_BOT_LOGINS = new Set(["clawsweeper[bot]", "openclaw-clawsweeper[bot]"]);
const privilegedAuthorAssociations = new Set(["OWNER", "MEMBER", "COLLABORATOR"]);
@@ -251,10 +251,10 @@ function isTrustedClawSweeperComment(comment) {
return true;
}
// GitHub can omit performed_via_github_app on issue comments while still
// returning the reserved App bot identity.
// returning a reserved ClawSweeper App bot identity.
const login = String(comment?.user?.login ?? "").toLowerCase();
const userType = String(comment?.user?.type ?? "");
return login === CLAWSWEEPER_BOT_LOGIN && userType === "Bot";
return CLAWSWEEPER_BOT_LOGINS.has(login) && userType === "Bot";
}
export function hasClawSweeperExactHeadProof({ pullRequest, comments = [] } = {}) {