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

推荐订阅源

月光博客
月光博客
D
Docker
腾讯CDC
J
Java Code Geeks
大猫的无限游戏
大猫的无限游戏
The Cloudflare Blog
Martin Fowler
Martin Fowler
MongoDB | Blog
MongoDB | Blog
博客园 - Franky
博客园 - 三生石上(FineUI控件)
Recent Announcements
Recent Announcements
F
Fortinet All Blogs
IT之家
IT之家
WordPress大学
WordPress大学
M
MIT News - Artificial intelligence
爱范儿
爱范儿
Microsoft Azure Blog
Microsoft Azure Blog
Vercel News
Vercel News
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
小众软件
小众软件
N
Netflix TechBlog - Medium
T
Tailwind CSS Blog
Engineering at Meta
Engineering at Meta
博客园 - 【当耐特】

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(release): align prerelease validation baselines · op...
steipete · 2026-05-22 · via Recent Commits to openclaw:main

@@ -148,6 +148,44 @@ function firstCallParam(calls: readonly unknown[][], label: string) {

148148

return call[0];

149149

}

150150151+

type MockSessionEntry = {

152+

sessionId?: string;

153+

updatedAt?: number;

154+

[key: string]: unknown;

155+

};

156+157+

function createMockSessionRuntime(sessionStore: Record<string, unknown>) {

158+

return {

159+

resolveStorePath: vi.fn(() => "/tmp/sessions.json"),

160+

loadSessionStore: vi.fn(() => sessionStore),

161+

saveSessionStore: vi.fn(async () => {}),

162+

updateSessionStore: vi.fn(async (_storePath, mutator: (store: never) => unknown) =>

163+

mutator(sessionStore as never),

164+

),

165+

getSessionEntry: vi.fn(

166+

({ sessionKey }: { sessionKey: string }) => sessionStore[sessionKey] as MockSessionEntry,

167+

),

168+

patchSessionEntry: vi.fn(

169+

async ({

170+

sessionKey,

171+

fallbackEntry,

172+

update,

173+

}: {

174+

sessionKey: string;

175+

fallbackEntry: MockSessionEntry;

176+

update: (entry: MockSessionEntry) => Promise<MockSessionEntry> | MockSessionEntry;

177+

}) => {

178+

const current = (sessionStore[sessionKey] as MockSessionEntry | undefined) ?? fallbackEntry;

179+

const patch = await update(current);

180+

const next = { ...current, ...patch };

181+

sessionStore[sessionKey] = next;

182+

return next;

183+

},

184+

),

185+

resolveSessionFilePath: vi.fn(() => "/tmp/session.json"),

186+

};

187+

}

188+151189

function requireRecord(value: unknown, label: string): Record<string, unknown> {

152190

if (value === null || typeof value !== "object" || Array.isArray(value)) {

153191

throw new Error(`expected ${label} to be a record`);

@@ -364,13 +402,7 @@ describe("createVoiceCallRuntime lifecycle", () => {

364402

resolveThinkingDefault: vi.fn(() => "high"),

365403

resolveAgentTimeoutMs: vi.fn(() => 30_000),

366404

ensureAgentWorkspace: vi.fn(async () => {}),

367-

session: {

368-

resolveStorePath: vi.fn(() => "/tmp/sessions.json"),

369-

loadSessionStore: vi.fn(() => sessionStore),

370-

saveSessionStore: vi.fn(async () => {}),

371-

updateSessionStore: vi.fn(async (_storePath, mutator) => mutator(sessionStore as never)),

372-

resolveSessionFilePath: vi.fn(() => "/tmp/session.json"),

373-

},

405+

session: createMockSessionRuntime(sessionStore),

374406

runEmbeddedPiAgent,

375407

};

376408

mocks.managerGetCall.mockReturnValue({

@@ -450,13 +482,7 @@ describe("createVoiceCallRuntime lifecycle", () => {

450482

resolveThinkingDefault: vi.fn(() => "high"),

451483

resolveAgentTimeoutMs: vi.fn(() => 30_000),

452484

ensureAgentWorkspace: vi.fn(async () => {}),

453-

session: {

454-

resolveStorePath: vi.fn(() => "/tmp/sessions.json"),

455-

loadSessionStore: vi.fn(() => sessionStore),

456-

saveSessionStore: vi.fn(async () => {}),

457-

updateSessionStore: vi.fn(async (_storePath, mutator) => mutator(sessionStore as never)),

458-

resolveSessionFilePath: vi.fn(() => "/tmp/session.json"),

459-

},

485+

session: createMockSessionRuntime(sessionStore),

460486

runEmbeddedPiAgent,

461487

};

462488

mocks.managerGetCall.mockReturnValue({

@@ -508,13 +534,7 @@ describe("createVoiceCallRuntime lifecycle", () => {

508534

resolveThinkingDefault: vi.fn(() => "high"),

509535

resolveAgentTimeoutMs: vi.fn(() => 30_000),

510536

ensureAgentWorkspace: vi.fn(async () => {}),

511-

session: {

512-

resolveStorePath: vi.fn(() => "/tmp/sessions.json"),

513-

loadSessionStore: vi.fn(() => sessionStore),

514-

saveSessionStore: vi.fn(async () => {}),

515-

updateSessionStore: vi.fn(async (_storePath, mutator) => mutator(sessionStore as never)),

516-

resolveSessionFilePath: vi.fn(() => "/tmp/session.json"),

517-

},

537+

session: createMockSessionRuntime(sessionStore),

518538

runEmbeddedPiAgent,

519539

};

520540

mocks.managerGetCall.mockReturnValue({

@@ -582,13 +602,7 @@ describe("createVoiceCallRuntime lifecycle", () => {

582602

resolveThinkingDefault: vi.fn(() => "high"),

583603

resolveAgentTimeoutMs: vi.fn(() => 30_000),

584604

ensureAgentWorkspace: vi.fn(async () => {}),

585-

session: {

586-

resolveStorePath: vi.fn(() => "/tmp/sessions.json"),

587-

loadSessionStore: vi.fn(() => sessionStore),

588-

saveSessionStore: vi.fn(async () => {}),

589-

updateSessionStore: vi.fn(async (_storePath, mutator) => mutator(sessionStore)),

590-

resolveSessionFilePath: vi.fn(() => "/tmp/session.json"),

591-

},

605+

session: createMockSessionRuntime(sessionStore),

592606

runEmbeddedPiAgent,

593607

};

594608

mocks.managerGetCall.mockReturnValue({