fix: clean up extension ci failures

This commit is contained in:
Peter Steinberger
2026-05-02 05:16:21 +01:00
parent 9f4921c1cd
commit 7934a2390c
3 changed files with 6 additions and 4 deletions

View File

@@ -77,7 +77,7 @@ function isoDateExclusiveEnd(value: string): string {
}
function freshnessStartTime(freshness: GeminiFreshness, now: Date): string {
const start = new Date(now.getTime());
const start = new Date(now);
start.setUTCDate(start.getUTCDate() - GEMINI_FRESHNESS_DAYS[freshness]);
return start.toISOString();
}

View File

@@ -254,7 +254,8 @@ describe("google web search provider", () => {
await tool?.execute({ query: "latest ai news", freshness: "week" });
const body = JSON.parse(String(mockFetch.mock.calls[0]?.[1]?.body)) as {
const init = mockFetch.mock.calls[0]?.[1] as { body?: unknown } | undefined;
const body = JSON.parse(String(init?.body)) as {
tools?: Array<{ google_search?: { timeRangeFilter?: unknown } }>;
};
expect(body.tools?.[0]?.google_search?.timeRangeFilter).toEqual({
@@ -289,7 +290,8 @@ describe("google web search provider", () => {
date_before: "2026-04-30",
});
const body = JSON.parse(String(mockFetch.mock.calls[0]?.[1]?.body)) as {
const init = mockFetch.mock.calls[0]?.[1] as { body?: unknown } | undefined;
const body = JSON.parse(String(init?.body)) as {
tools?: Array<{ google_search?: { timeRangeFilter?: unknown } }>;
};
expect(body.tools?.[0]?.google_search?.timeRangeFilter).toEqual({

View File

@@ -582,7 +582,7 @@ export async function prepareSlackMessage(params: {
const ackReactionMessageTs = message.ts;
const allowToolOnlyStatusReaction =
statusReactionsExplicitlyEnabled &&
(effectiveWasMentioned || mentionDecision.shouldBypassMention === true);
(effectiveWasMentioned || mentionDecision.shouldBypassMention);
const shouldSendAckReaction =
shouldAckReaction() && (!sourceRepliesAreToolOnly || allowToolOnlyStatusReaction);
const statusReactionsWillHandle =