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

推荐订阅源

MyScale Blog
MyScale Blog
F
Fortinet All Blogs
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
D
Docker
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
爱范儿
爱范儿
V
Visual Studio Blog
Last Week in AI
Last Week in AI
WordPress大学
WordPress大学
aimingoo的专栏
aimingoo的专栏
小众软件
小众软件
L
LangChain Blog
Vercel News
Vercel News
阮一峰的网络日志
阮一峰的网络日志
IT之家
IT之家
P
Proofpoint News Feed
博客园_首页
D
DataBreaches.Net
T
The Blog of Author Tim Ferriss
The GitHub Blog
The GitHub Blog
酷 壳 – CoolShell
酷 壳 – CoolShell
C
Check Point Blog
Engineering at Meta
Engineering at Meta
Microsoft Azure Blog
Microsoft Azure 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(hooks): use live memory-core config during dreaming r...
vincentkoc · 2026-04-23 · via Recent Commits to openclaw:main

@@ -1383,6 +1383,93 @@ describe("gateway startup reconciliation", () => {

13831383

clearInternalHooks();

13841384

}

13851385

});

1386+1387+

it("uses live runtime config for the heartbeat dreaming run payload", async () => {

1388+

clearInternalHooks();

1389+

const logger = createLogger();

1390+

const harness = createCronHarness();

1391+

const onMock = vi.fn();

1392+

const workspaceDir = await createTempWorkspace("memory-dreaming-live-config-workspace-");

1393+

const runtimeLoadConfig = vi.fn(

1394+

() =>

1395+

({

1396+

agents: {

1397+

list: [{ id: "main", default: true, workspace: workspaceDir }],

1398+

},

1399+

plugins: {

1400+

entries: {

1401+

"memory-core": {

1402+

config: {

1403+

dreaming: {

1404+

enabled: true,

1405+

frequency: "15 4 * * *",

1406+

timezone: "UTC",

1407+

limit: 0,

1408+

},

1409+

},

1410+

},

1411+

},

1412+

},

1413+

}) as OpenClawConfig,

1414+

);

1415+

const api: DreamingPluginApiTestDouble = {

1416+

config: {

1417+

plugins: {

1418+

entries: {

1419+

"memory-core": {

1420+

config: {

1421+

dreaming: {

1422+

enabled: true,

1423+

frequency: "15 4 * * *",

1424+

timezone: "UTC",

1425+

limit: 5,

1426+

},

1427+

},

1428+

},

1429+

},

1430+

},

1431+

} as OpenClawConfig,

1432+

pluginConfig: {},

1433+

logger,

1434+

runtime: {

1435+

config: {

1436+

loadConfig: runtimeLoadConfig,

1437+

},

1438+

},

1439+

on: onMock,

1440+

};

1441+1442+

try {

1443+

registerShortTermPromotionDreamingForTest(api);

1444+

await triggerGatewayStart(onMock, {

1445+

config: api.config,

1446+

getCron: () => harness.cron,

1447+

});

1448+1449+

const sessionKey = "agent:main:main";

1450+

enqueueSystemEvent(constants.DREAMING_SYSTEM_EVENT_TEXT, {

1451+

sessionKey,

1452+

contextKey: "cron:memory-dreaming",

1453+

});

1454+1455+

const beforeAgentReply = getBeforeAgentReplyHandler(onMock);

1456+

const result = await beforeAgentReply(

1457+

{ cleanedBody: constants.DREAMING_SYSTEM_EVENT_TEXT },

1458+

{ trigger: "heartbeat", sessionKey },

1459+

);

1460+1461+

expect(result).toEqual({

1462+

handled: true,

1463+

reason: "memory-core: short-term dreaming processed",

1464+

});

1465+

expect(runtimeLoadConfig).toHaveBeenCalled();

1466+

expect(logger.warn).not.toHaveBeenCalledWith(

1467+

"memory-core: dreaming promotion skipped because no memory workspace is available.",

1468+

);

1469+

} finally {

1470+

clearInternalHooks();

1471+

}

1472+

});

13861473

});

1387147413881475

describe("short-term dreaming trigger", () => {