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

推荐订阅源

Hugging Face - Blog
Hugging Face - Blog
量子位
H
Help Net Security
Microsoft Azure Blog
Microsoft Azure Blog
MongoDB | Blog
MongoDB | Blog
小众软件
小众软件
爱范儿
爱范儿
博客园 - 【当耐特】
Vercel News
Vercel News
S
SegmentFault 最新的问题
M
MIT News - Artificial intelligence
F
Fortinet All Blogs
Apple Machine Learning Research
Apple Machine Learning Research
GbyAI
GbyAI
博客园 - 叶小钗
博客园_首页
V
Visual Studio Blog
宝玉的分享
宝玉的分享
B
Blog
MyScale Blog
MyScale Blog
C
Check Point Blog
博客园 - 三生石上(FineUI控件)
L
LangChain Blog
V
V2EX

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: use vi wait helper in task registry · openclaw/open...
steipete · 2026-05-12 · via Recent Commits to openclaw:main

@@ -105,7 +105,8 @@ function createChatFinalEvent(sessionKey: string): EventFrame {

105105

}

106106107107

async function expectOversizedPromptRejected(params: { sessionId: string; text: string }) {

108-

const request = vi.fn(async () => ({ ok: true })) as GatewayClient["request"];

108+

const requestMock = vi.fn(async (_method: string) => ({ ok: true }));

109+

const request = requestMock as GatewayClient["request"];

109110

const sessionStore = createInMemorySessionStore();

110111

const agent = new AcpGatewayAgent(createAcpConnection(), createAcpGateway(request), {

111112

sessionStore,

@@ -115,7 +116,7 @@ async function expectOversizedPromptRejected(params: { sessionId: string; text:

115116

await expect(agent.prompt(createPromptRequest(params.sessionId, params.text))).rejects.toThrow(

116117

/maximum allowed size/i,

117118

);

118-

expect(request.mock.calls.some(([method]) => method === "chat.send")).toBe(false);

119+

expect(requestMock.mock.calls.some(([method]) => method === "chat.send")).toBe(false);

119120

const session = sessionStore.getSession(params.sessionId);

120121

expect(session?.activeRunId).toBeNull();

121122

expect(session?.abortController).toBeNull();

@@ -690,7 +691,7 @@ describe("acp setSessionConfigOption bridge behavior", () => {

690691

it("accepts forwarded timeout config options without failing OpenClaw ACP bridge turns", async () => {

691692

const sessionStore = createInMemorySessionStore();

692693

const connection = createAcpConnection();

693-

const request = vi.fn(async (method: string) => {

694+

const requestMock = vi.fn(async (method: string) => {

694695

if (method === "sessions.list") {

695696

return {

696697

ts: Date.now(),

@@ -715,7 +716,8 @@ describe("acp setSessionConfigOption bridge behavior", () => {

715716

}

716717

expect(method).not.toBe("sessions.patch");

717718

return { ok: true };

718-

}) as GatewayClient["request"];

719+

});

720+

const request = requestMock as GatewayClient["request"];

719721

const agent = new AcpGatewayAgent(connection, createAcpGateway(request), {

720722

sessionStore,

721723

});

@@ -727,7 +729,7 @@ describe("acp setSessionConfigOption bridge behavior", () => {

727729

);

728730

expect(Array.isArray(result.configOptions)).toBe(true);

729731730-

expect(request.mock.calls.some(([method]) => method === "sessions.patch")).toBe(false);

732+

expect(requestMock.mock.calls.some(([method]) => method === "sessions.patch")).toBe(false);

731733732734

sessionStore.clearAllSessionsForTest();

733735

});