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

推荐订阅源

Apple Machine Learning Research
Apple Machine Learning Research
M
MIT News - Artificial intelligence
罗磊的独立博客
博客园 - 【当耐特】
A
About on SuperTechFans
Last Week in AI
Last Week in AI
雷峰网
雷峰网
IT之家
IT之家
aimingoo的专栏
aimingoo的专栏
H
Hackread – Cybersecurity News, Data Breaches, AI and More
博客园_首页
博客园 - 叶小钗
Microsoft Azure Blog
Microsoft Azure Blog
博客园 - Franky
J
Java Code Geeks
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
D
Docker
Engineering at Meta
Engineering at Meta
B
Blog RSS Feed
The Cloudflare Blog
大猫的无限游戏
大猫的无限游戏
阮一峰的网络日志
阮一峰的网络日志
S
SegmentFault 最新的问题
Recent Announcements
Recent Announcements

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: tighten command session assertions · openclaw/openc...
steipete · 2026-05-09 · via Recent Commits to openclaw:main
Original file line numberDiff line numberDiff line change

@@ -145,23 +145,30 @@ describe("runCliTurnCompactionLifecycle", () => {

145145

});

146146
147147

expect(compactCalls).toHaveLength(1);

148-

expect(compactCalls[0]).toMatchObject({

149-

sessionId,

150-

sessionKey,

151-

sessionFile,

152-

tokenBudget: 1_000,

153-

currentTokenCount: 950,

154-

force: true,

155-

compactionTarget: "budget",

156-

});

157-

expect(maintenance).toHaveBeenCalledWith(

158-

expect.objectContaining({

159-

reason: "compaction",

160-

sessionId,

161-

sessionKey,

162-

sessionFile,

163-

}),

164-

);

148+

const compactCall = compactCalls[0];

149+

expect(compactCall?.sessionId).toBe(sessionId);

150+

expect(compactCall?.sessionKey).toBe(sessionKey);

151+

expect(compactCall?.sessionFile).toBe(sessionFile);

152+

expect(compactCall?.tokenBudget).toBe(1_000);

153+

expect(compactCall?.currentTokenCount).toBe(950);

154+

expect(compactCall?.force).toBe(true);

155+

expect(compactCall?.compactionTarget).toBe("budget");

156+

expect(maintenance).toHaveBeenCalledTimes(1);

157+

const maintenanceCalls = maintenance.mock.calls as unknown as Array<

158+

[

159+

{

160+

reason?: string;

161+

sessionId?: string;

162+

sessionKey?: string;

163+

sessionFile?: string;

164+

},

165+

]

166+

>;

167+

const maintenanceCall = maintenanceCalls[0]?.[0];

168+

expect(maintenanceCall?.reason).toBe("compaction");

169+

expect(maintenanceCall?.sessionId).toBe(sessionId);

170+

expect(maintenanceCall?.sessionKey).toBe(sessionKey);

171+

expect(maintenanceCall?.sessionFile).toBe(sessionFile);

165172

expect(updatedEntry?.compactionCount).toBe(1);

166173

expect(updatedEntry?.cliSessionBindings?.["claude-cli"]).toBeUndefined();

167174

expect(updatedEntry?.cliSessionIds?.["claude-cli"]).toBeUndefined();

Original file line numberDiff line numberDiff line change

@@ -383,13 +383,11 @@ describe("updateSessionStoreAfterAgentRun", () => {

383383

});

384384
385385

const persisted = loadSessionStore(storePath, { skipCache: true })[sessionKey];

386-

expect(persisted?.acp).toMatchObject({

387-

backend: "acpx",

388-

agent: "codex",

389-

runtimeSessionName: "runtime-1",

390-

mode: "persistent",

391-

state: "idle",

392-

});

386+

expect(persisted?.acp?.backend).toBe("acpx");

387+

expect(persisted?.acp?.agent).toBe("codex");

388+

expect(persisted?.acp?.runtimeSessionName).toBe("runtime-1");

389+

expect(persisted?.acp?.mode).toBe("persistent");

390+

expect(persisted?.acp?.state).toBe("idle");

393391

expect(staleInMemory[sessionKey]?.acp).toEqual(persisted?.acp);

394392

});

395393

});

@@ -439,14 +437,12 @@ describe("updateSessionStoreAfterAgentRun", () => {

439437

});

440438
441439

const persisted = loadSessionStore(storePath, { skipCache: true })[sessionKey];

442-

expect(persisted).toMatchObject({

443-

status: "done",

444-

startedAt: 1_000,

445-

endedAt: 1_900,

446-

runtimeMs: 900,

447-

modelProvider: "openai",

448-

model: "gpt-5.4",

449-

});

440+

expect(persisted?.status).toBe("done");

441+

expect(persisted?.startedAt).toBe(1_000);

442+

expect(persisted?.endedAt).toBe(1_900);

443+

expect(persisted?.runtimeMs).toBe(900);

444+

expect(persisted?.modelProvider).toBe("openai");

445+

expect(persisted?.model).toBe("gpt-5.4");

450446

expect(staleInMemory[sessionKey]?.status).toBe("done");

451447

});

452448

});