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

推荐订阅源

Y
Y Combinator Blog
S
SegmentFault 最新的问题
Engineering at Meta
Engineering at Meta
量子位
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
Google DeepMind News
Google DeepMind News
博客园_首页
云风的 BLOG
云风的 BLOG
月光博客
月光博客
I
InfoQ
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
Vercel News
Vercel News
美团技术团队
Microsoft Security Blog
Microsoft Security Blog
P
Proofpoint News Feed
D
Docker
F
Fortinet All Blogs
N
Netflix TechBlog - Medium
博客园 - 叶小钗
Martin Fowler
Martin Fowler
雷峰网
雷峰网
酷 壳 – CoolShell
酷 壳 – CoolShell
J
Java Code Geeks
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
test: speed up auto-reply reply shard · openclaw/openclaw...
steipete · 2026-05-02 · via Recent Commits to openclaw:main

@@ -12,6 +12,11 @@ const hookRunnerMocks = vi.hoisted(() => ({

1212

runSessionStart: vi.fn<HookRunner["runSessionStart"]>(),

1313

runSessionEnd: vi.fn<HookRunner["runSessionEnd"]>(),

1414

}));

15+

const sessionCleanupMocks = vi.hoisted(() => ({

16+

closeTrackedBrowserTabsForSessions: vi.fn(async () => 0),

17+

resetRegisteredAgentHarnessSessions: vi.fn(async () => undefined),

18+

retireSessionMcpRuntime: vi.fn(async () => false),

19+

}));

15201621

vi.mock("../../plugins/hook-runner-global.js", () => ({

1722

getGlobalHookRunner: () =>

@@ -22,6 +27,39 @@ vi.mock("../../plugins/hook-runner-global.js", () => ({

2227

}) as unknown as HookRunner,

2328

}));

242930+

vi.mock("../../agents/harness/registry.js", () => ({

31+

resetRegisteredAgentHarnessSessions: sessionCleanupMocks.resetRegisteredAgentHarnessSessions,

32+

}));

33+34+

vi.mock("../../agents/pi-bundle-mcp-tools.js", () => ({

35+

retireSessionMcpRuntime: sessionCleanupMocks.retireSessionMcpRuntime,

36+

}));

37+38+

vi.mock("../../plugin-sdk/browser-maintenance.js", () => ({

39+

closeTrackedBrowserTabsForSessions: sessionCleanupMocks.closeTrackedBrowserTabsForSessions,

40+

}));

41+42+

vi.mock("../../agents/session-write-lock.js", async () => {

43+

const actual = await vi.importActual<typeof import("../../agents/session-write-lock.js")>(

44+

"../../agents/session-write-lock.js",

45+

);

46+

return {

47+

...actual,

48+

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

49+

resolveSessionLockMaxHoldFromTimeout: vi.fn(

50+

({

51+

timeoutMs,

52+

graceMs = 2 * 60 * 1000,

53+

minMs = 5 * 60 * 1000,

54+

}: {

55+

timeoutMs: number;

56+

graceMs?: number;

57+

minMs?: number;

58+

}) => Math.max(minMs, timeoutMs + graceMs),

59+

),

60+

};

61+

});

62+2563

async function createStorePath(prefix: string): Promise<string> {

2664

const root = await fs.mkdtemp(path.join(os.tmpdir(), `${prefix}-`));

2765

return path.join(root, "sessions.json");

@@ -102,6 +140,9 @@ describe("session hook context wiring", () => {

102140

hookRunnerMocks.hasHooks.mockReset();

103141

hookRunnerMocks.runSessionStart.mockReset();

104142

hookRunnerMocks.runSessionEnd.mockReset();

143+

sessionCleanupMocks.closeTrackedBrowserTabsForSessions.mockClear();

144+

sessionCleanupMocks.resetRegisteredAgentHarnessSessions.mockClear();

145+

sessionCleanupMocks.retireSessionMcpRuntime.mockClear();

105146

hookRunnerMocks.runSessionStart.mockResolvedValue(undefined);

106147

hookRunnerMocks.runSessionEnd.mockResolvedValue(undefined);

107148

hookRunnerMocks.hasHooks.mockImplementation(