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

推荐订阅源

S
SegmentFault 最新的问题
J
Java Code Geeks
V
V2EX
Blog — PlanetScale
Blog — PlanetScale
博客园 - 司徒正美
Hugging Face - Blog
Hugging Face - Blog
F
Fortinet All Blogs
aimingoo的专栏
aimingoo的专栏
B
Blog
A
About on SuperTechFans
有赞技术团队
有赞技术团队
月光博客
月光博客
Microsoft Azure Blog
Microsoft Azure Blog
阮一峰的网络日志
阮一峰的网络日志
腾讯CDC
美团技术团队
大猫的无限游戏
大猫的无限游戏
爱范儿
爱范儿
N
Netflix TechBlog - Medium
C
Check Point Blog
Recent Announcements
Recent Announcements
博客园 - Franky
博客园 - 叶小钗
T
Tailwind CSS 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(release): align prerelease validation · openclaw/ope...
steipete · 2026-05-22 · via Recent Commits to openclaw:main

@@ -149,6 +149,44 @@ function isRecord(value: unknown): value is Record<string, unknown> {

149149

return Boolean(value) && typeof value === "object" && !Array.isArray(value);

150150

}

151151152+

type MockSessionEntry = {

153+

sessionId?: string;

154+

updatedAt?: number;

155+

[key: string]: unknown;

156+

};

157+158+

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

159+

return {

160+

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

161+

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

162+

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

163+

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

164+

mutator(sessionStore as never),

165+

),

166+

getSessionEntry: vi.fn(

167+

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

168+

),

169+

patchSessionEntry: vi.fn(

170+

async ({

171+

sessionKey,

172+

fallbackEntry,

173+

update,

174+

}: {

175+

sessionKey: string;

176+

fallbackEntry: MockSessionEntry;

177+

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

178+

}) => {

179+

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

180+

const patch = await update(current);

181+

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

182+

sessionStore[sessionKey] = next;

183+

return next;

184+

},

185+

),

186+

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

187+

};

188+

}

189+152190

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

153191

if (!isRecord(value)) {

154192

throw new Error(`Expected ${label} to be an object`);

@@ -4077,13 +4115,7 @@ describe("google-meet plugin", () => {

40774115

resolveAgentDir: vi.fn(() => "/tmp/agent"),

40784116

resolveAgentWorkspaceDir: vi.fn(() => "/tmp/workspace"),

40794117

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

4080-

session: {

4081-

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

4082-

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

4083-

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

4084-

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

4085-

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

4086-

},

4118+

session: createMockSessionRuntime(sessionStore),

40874119

runEmbeddedPiAgent: vi.fn(async () => ({

40884120

payloads: [{ text: "Use the Portugal launch data." }],

40894121

meta: {},

@@ -4245,13 +4277,7 @@ describe("google-meet plugin", () => {

42454277

resolveAgentDir: vi.fn(() => "/tmp/agent"),

42464278

resolveAgentWorkspaceDir: vi.fn(() => "/tmp/workspace"),

42474279

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

4248-

session: {

4249-

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

4250-

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

4251-

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

4252-

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

4253-

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

4254-

},

4280+

session: createMockSessionRuntime(sessionStore),

42554281

runEmbeddedPiAgent: vi.fn(async (_request: unknown) => ({

42564282

payloads: [{ text: "Use the Portugal launch data." }],

42574283

meta: {},

@@ -4467,13 +4493,7 @@ describe("google-meet plugin", () => {

44674493

resolveAgentDir: vi.fn(() => "/tmp/agent"),

44684494

resolveAgentWorkspaceDir: vi.fn(() => "/tmp/workspace"),

44694495

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

4470-

session: {

4471-

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

4472-

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

4473-

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

4474-

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

4475-

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

4476-

},

4496+

session: createMockSessionRuntime(sessionStore),

44774497

runEmbeddedPiAgent: vi.fn(async (_request: unknown) => ({

44784498

payloads: [{ text: "The launch is still on track." }],

44794499

meta: {},

@@ -4741,13 +4761,7 @@ describe("google-meet plugin", () => {

47414761

resolveAgentDir: vi.fn(() => "/tmp/agent"),

47424762

resolveAgentWorkspaceDir: vi.fn(() => "/tmp/workspace"),

47434763

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

4744-

session: {

4745-

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

4746-

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

4747-

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

4748-

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

4749-

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

4750-

},

4764+

session: createMockSessionRuntime(sessionStore),

47514765

runEmbeddedPiAgent: vi.fn(async () => ({

47524766

payloads: [{ text: "Use the launch update." }],

47534767

meta: {},