惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

D
DataBreaches.Net
N
Netflix TechBlog - Medium
P
Proofpoint News Feed
D
Docker
J
Java Code Geeks
L
LangChain Blog
Microsoft Security Blog
Microsoft Security Blog
The GitHub Blog
The GitHub Blog
I
InfoQ
Stack Overflow Blog
Stack Overflow Blog
云风的 BLOG
云风的 BLOG
Engineering at Meta
Engineering at Meta
MongoDB | Blog
MongoDB | Blog
月光博客
月光博客
T
Tailwind CSS Blog
M
MIT News - Artificial intelligence
Blog — PlanetScale
Blog — PlanetScale
Google DeepMind News
Google DeepMind News
腾讯CDC
罗磊的独立博客
U
Unit 42
爱范儿
爱范儿
Vercel News
Vercel News
MyScale Blog
MyScale Blog

Recent Commits to openclaw:main

test: merge chat side-result checks · openclaw/openclaw@ddd2c2a test: merge cron history checks · openclaw/openclaw@f7eb746 test: merge responsive navigation shell checks · openclaw/openclaw@c2e4b47 docs(changelog): add codex oauth fixes · openclaw/openclaw@628e6cd test: merge navigation routing cases · openclaw/openclaw@5d8cecb Tests: mock channel registry bundled fallback · openclaw/openclaw@2b08233 Secrets: avoid broad web search discovery for single plugin config · openclaw/openclaw@a464f59 test: merge config view browser checks · openclaw/openclaw@20cf511 fix(status): align oauth health with runtime · openclaw/openclaw@eed7116 feat: add macOS screen snapshots for monitor preview (#67954) thanks … · openclaw/openclaw@f377db1 fix: report shared auth scopes in hello-ok (#67810) thanks @BunsDev · openclaw/openclaw@0b6c39b Auto-reply: avoid eager bundled route fallback · openclaw/openclaw@3ea1bf4 Tests: narrow session binding contract setup · openclaw/openclaw@54e4e16 fix(macOS): enable undo/redo in webchat composer text input (#34962) · openclaw/openclaw@00951dc Tests: speed up channel setup promotion · openclaw/openclaw@82b529a Docs: refresh agent instructions · openclaw/openclaw@5775fe2 fix(auth): serialize OAuth refresh across agents to fix #26322 (#67876) · openclaw/openclaw@8e79080 test: allow ollama public surface boundary test · openclaw/openclaw@7d4f1a6 Docs: add test performance guardrails · openclaw/openclaw@89706d3 Tests: restore context-engine usage proof · openclaw/openclaw@e4c4f95 Tests: slim context engine runtime coverage · openclaw/openclaw@74c198f ci: retry failed custom checkouts · openclaw/openclaw@0ee5baf test: trim duplicate provider auth onboarding cases · openclaw/openclaw@1ffc02e matrix: fix sessions_spawn --thread subagent session spawning (#67643) · openclaw/openclaw@1ce2596 test: reduce auth choice fixture churn · openclaw/openclaw@857b9cd test: mock health status config boundaries · openclaw/openclaw@9d5ab4a test: mock onboard config io boundary · openclaw/openclaw@299694d test: mock legacy state plugin boundaries · openclaw/openclaw@2713089 test: mock channel install boundaries · openclaw/openclaw@b945248 test: mock doctor preview channel boundaries · openclaw/openclaw@b1a3ad4
fix(cli): extend holiday tagline dates through 2030 · ope...
alkor2000 · 2026-06-01 · via Recent Commits to openclaw:main

@@ -31,3 +31,52 @@ describe("pickTagline", () => {

3131

).toBe("Your terminal just grew claws\u2014type something and let the bot pinch the busywork.");

3232

});

3333

});

34+35+

describe("future holiday tagline windows (2028-2030)", () => {

36+

// Regression coverage for the 2028-2030 floating-holiday rows. Before those

37+

// rows existed, the holiday rule returned false for these dates and the

38+

// tagline was silently filtered out of the active pool. activeTaglines is no

39+

// longer exported, so we sample the public pickTagline() across every pool

40+

// index (by sweeping the injected random()) to recover the full active pool

41+

// for a given date, then assert the matching holiday tagline is present.

42+

// UTC dates are used because the holiday rules compare in UTC.

43+

const activePoolOn = (year: number, monthIndex: number, day: number): string[] => {

44+

const now = () => new Date(Date.UTC(year, monthIndex, day, 12, 0, 0));

45+

const seen = new Set<string>();

46+

for (let i = 0; i < 200; i++) {

47+

const r = i / 200;

48+

seen.add(pickTagline({ mode: "random", now, random: () => r }));

49+

}

50+

return [...seen];

51+

};

52+

const poolHas = (pool: string[], term: string) =>

53+

pool.some((t) => t.toLowerCase().includes(term));

54+55+

it("activates the Lunar New Year tagline on 2028-01-26", () => {

56+

expect(poolHas(activePoolOn(2028, 0, 26), "lunar new year")).toBe(true);

57+

});

58+59+

it("activates the Diwali tagline on 2029-11-05", () => {

60+

expect(poolHas(activePoolOn(2029, 10, 5), "diwali")).toBe(true);

61+

});

62+63+

it("activates the Diwali tagline on 2030-10-25", () => {

64+

expect(poolHas(activePoolOn(2030, 9, 25), "diwali")).toBe(true);

65+

});

66+67+

it("activates the Easter tagline on 2030-04-21", () => {

68+

expect(poolHas(activePoolOn(2030, 3, 21), "easter")).toBe(true);

69+

});

70+71+

it("activates the Hanukkah tagline across its full 2028 window (Dec 13 and Dec 20)", () => {

72+

expect(poolHas(activePoolOn(2028, 11, 13), "hanukkah")).toBe(true);

73+

expect(poolHas(activePoolOn(2028, 11, 20), "hanukkah")).toBe(true);

74+

});

75+76+

it("does not activate floating holiday taglines on a plain date (2028-07-15)", () => {

77+

const pool = activePoolOn(2028, 6, 15);

78+

for (const term of ["lunar new year", "diwali", "easter", "hanukkah", "eid al-fitr"]) {

79+

expect(poolHas(pool, term)).toBe(false);

80+

}

81+

});

82+

});