mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-30 16:20:26 +00:00
fix: preserve Google Gemini 3 cron thinking
This commit is contained in:
@@ -234,7 +234,7 @@ describe("real-behavior-proof-policy", () => {
|
||||
expect(evaluateClawSweeperExactHeadProof({ pullRequest, comments }).passed).toBe(false);
|
||||
});
|
||||
|
||||
it("rejects bot-shaped ClawSweeper pass verdict markers without the GitHub App source", () => {
|
||||
it("accepts exact ClawSweeper bot pass verdict markers when GitHub omits the app source", () => {
|
||||
const pullRequest = {
|
||||
number: 83581,
|
||||
head: {
|
||||
@@ -251,6 +251,27 @@ describe("real-behavior-proof-policy", () => {
|
||||
},
|
||||
];
|
||||
|
||||
expect(hasClawSweeperExactHeadProof({ pullRequest, comments })).toBe(true);
|
||||
expect(evaluateClawSweeperExactHeadProof({ pullRequest, comments }).passed).toBe(true);
|
||||
});
|
||||
|
||||
it("rejects bot-shaped pass verdict markers from other bot users", () => {
|
||||
const pullRequest = {
|
||||
number: 83581,
|
||||
head: {
|
||||
sha: "06ee95df6608d29a395c52ba8ab53fdd93a9dc4f",
|
||||
},
|
||||
};
|
||||
const comments = [
|
||||
{
|
||||
user: {
|
||||
login: "not-clawsweeper[bot]",
|
||||
type: "Bot",
|
||||
},
|
||||
body: "<!-- clawsweeper-verdict:pass item=83581 sha=06ee95df6608d29a395c52ba8ab53fdd93a9dc4f confidence=high -->",
|
||||
},
|
||||
];
|
||||
|
||||
expect(hasClawSweeperExactHeadProof({ pullRequest, comments })).toBe(false);
|
||||
expect(evaluateClawSweeperExactHeadProof({ pullRequest, comments }).passed).toBe(false);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user