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

推荐订阅源

The GitHub Blog
The GitHub Blog
IT之家
IT之家
B
Blog RSS Feed
罗磊的独立博客
GbyAI
GbyAI
博客园 - Franky
Y
Y Combinator Blog
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
Google DeepMind News
Google DeepMind News
博客园 - 聂微东
N
Netflix TechBlog - Medium
博客园 - 三生石上(FineUI控件)
人人都是产品经理
人人都是产品经理
U
Unit 42
博客园 - 叶小钗
Jina AI
Jina AI
MyScale Blog
MyScale Blog
雷峰网
雷峰网
B
Blog
Hugging Face - Blog
Hugging Face - Blog
Blog — PlanetScale
Blog — PlanetScale
Recent Announcements
Recent Announcements
腾讯CDC
酷 壳 – CoolShell
酷 壳 – CoolShell

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(memory-core): support dreaming model override · openc...
steipete · 2026-04-27 · via Recent Commits to openclaw:main

@@ -118,7 +118,7 @@ function createHarness(

118118

}

119119120120

function createMockNarrativeSubagent(response = "The archive hummed softly.") {

121-

const run = vi.fn(async (_params: { sessionKey: string; message: string }) => ({

121+

const run = vi.fn(async (_params: { sessionKey: string; message: string; model?: string }) => ({

122122

runId: "dream-run-1",

123123

}));

124124

const waitForRun = vi.fn(async () => ({ status: "ok" }));

@@ -2321,7 +2321,33 @@ describe("memory-core dreaming phases", () => {

23212321

it("passes staged light-dreaming snippets into the narrative pipeline", async () => {

23222322

const workspaceDir = await createDreamingWorkspace();

23232323

const subagent = createMockNarrativeSubagent("The backup plan glowed like cold storage.");

2324-

const { beforeAgentReply } = createHarness(LIGHT_DREAMING_TEST_CONFIG, workspaceDir, subagent);

2324+

const { beforeAgentReply } = createHarness(

2325+

{

2326+

plugins: {

2327+

entries: {

2328+

"memory-core": {

2329+

config: {

2330+

dreaming: {

2331+

enabled: true,

2332+

timezone: "UTC",

2333+

model: "anthropic/claude-sonnet-4-6",

2334+

storage: { mode: "inline", separateReports: false },

2335+

phases: {

2336+

light: {

2337+

enabled: true,

2338+

limit: 20,

2339+

lookbackDays: 2,

2340+

},

2341+

},

2342+

},

2343+

},

2344+

},

2345+

},

2346+

},

2347+

},

2348+

workspaceDir,

2349+

subagent,

2350+

);

2325235123262352

await withDreamingTestClock(async () => {

23272353

await writeDailyNote(workspaceDir, [

@@ -2338,6 +2364,7 @@ describe("memory-core dreaming phases", () => {

23382364

const firstRun = subagent.run.mock.calls[0]?.[0];

23392365

expect(firstRun?.message).toContain("Move backups to S3 Glacier.");

23402366

expect(firstRun?.message).toContain("Keep retention at 365 days.");

2367+

expect(firstRun?.model).toBe("anthropic/claude-sonnet-4-6");

23412368

await expect(fs.readFile(path.join(workspaceDir, "DREAMS.md"), "utf-8")).resolves.toContain(

23422369

"The backup plan glowed like cold storage.",

23432370

);

@@ -2354,12 +2381,20 @@ describe("memory-core dreaming phases", () => {

23542381

config: {

23552382

dreaming: {

23562383

enabled: true,

2384+

execution: {

2385+

defaults: {

2386+

model: "openai/gpt-5.4",

2387+

},

2388+

},

23572389

phases: {

23582390

rem: {

23592391

enabled: true,

23602392

limit: 10,

23612393

lookbackDays: 7,

23622394

minPatternStrength: 0,

2395+

execution: {

2396+

model: "xai/grok-4.1-fast",

2397+

},

23632398

},

23642399

},

23652400

},

@@ -2392,6 +2427,7 @@ describe("memory-core dreaming phases", () => {

23922427

const firstRun = subagent.run.mock.calls[0]?.[0];

23932428

expect(firstRun?.message).toContain("Move backups to S3 Glacier.");

23942429

expect(firstRun?.message).toContain("Keep retention at 365 days.");

2430+

expect(firstRun?.model).toBe("xai/grok-4.1-fast");

23952431

await expect(fs.readFile(path.join(workspaceDir, "DREAMS.md"), "utf-8")).resolves.toContain(

23962432

"The traces braided themselves into a map.",

23972433

);