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

推荐订阅源

G
Google Developers Blog
阮一峰的网络日志
阮一峰的网络日志
A
About on SuperTechFans
大猫的无限游戏
大猫的无限游戏
Engineering at Meta
Engineering at Meta
V
Visual Studio Blog
Martin Fowler
Martin Fowler
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
博客园 - 叶小钗
I
InfoQ
B
Blog RSS Feed
aimingoo的专栏
aimingoo的专栏
Y
Y Combinator Blog
Blog — PlanetScale
Blog — PlanetScale
IT之家
IT之家
P
Proofpoint News Feed
WordPress大学
WordPress大学
小众软件
小众软件
B
Blog
MongoDB | Blog
MongoDB | Blog
人人都是产品经理
人人都是产品经理
量子位
Hugging Face - Blog
Hugging Face - 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
test: verify startup note text · openclaw/openclaw@06f7adf
shakkernerd · 2026-05-12 · via Recent Commits to openclaw:main

@@ -29,10 +29,16 @@ describe("noteStartupOptimizationHints", () => {

2929

expect(noteFn).toHaveBeenCalledTimes(1);

3030

const [message, title] = noteFn.mock.calls[0] ?? [];

3131

expect(title).toBe("Startup optimization");

32-

expect(message).toContain("NODE_COMPILE_CACHE points to /tmp");

33-

expect(message).toContain("OPENCLAW_NO_RESPAWN is not set to 1");

34-

expect(message).toContain("export NODE_COMPILE_CACHE=/var/tmp/openclaw-compile-cache");

35-

expect(message).toContain("export OPENCLAW_NO_RESPAWN=1");

32+

expect(message).toBe(

33+

[

34+

"- NODE_COMPILE_CACHE points to /tmp; use /var/tmp so cache survives reboots and warms startup reliably.",

35+

"- OPENCLAW_NO_RESPAWN is not set to 1; set it to avoid extra startup overhead from self-respawn.",

36+

"- Suggested env for low-power hosts:",

37+

" export NODE_COMPILE_CACHE=/var/tmp/openclaw-compile-cache",

38+

" mkdir -p /var/tmp/openclaw-compile-cache",

39+

" export OPENCLAW_NO_RESPAWN=1",

40+

].join("\n"),

41+

);

3642

});

37433844

it("warns when compile cache is disabled via env override", () => {

@@ -49,8 +55,16 @@ describe("noteStartupOptimizationHints", () => {

49555056

expect(noteFn).toHaveBeenCalledTimes(1);

5157

const [message] = noteFn.mock.calls[0] ?? [];

52-

expect(message).toContain("NODE_DISABLE_COMPILE_CACHE is set");

53-

expect(message).toContain("unset NODE_DISABLE_COMPILE_CACHE");

58+

expect(message).toBe(

59+

[

60+

"- NODE_DISABLE_COMPILE_CACHE is set; startup compile cache is disabled.",

61+

"- Suggested env for low-power hosts:",

62+

" export NODE_COMPILE_CACHE=/var/tmp/openclaw-compile-cache",

63+

" mkdir -p /var/tmp/openclaw-compile-cache",

64+

" export OPENCLAW_NO_RESPAWN=1",

65+

" unset NODE_DISABLE_COMPILE_CACHE",

66+

].join("\n"),

67+

);

5468

});

55695670

it("skips startup optimization note on win32", () => {