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

推荐订阅源

C
CXSECURITY Database RSS Feed - CXSecurity.com
S
Schneier on Security
N
News and Events Feed by Topic
量子位
S
Secure Thoughts
V2EX - 技术
V2EX - 技术
Hugging Face - Blog
Hugging Face - Blog
S
Security Affairs
J
Java Code Geeks
Schneier on Security
Schneier on Security
Google Online Security Blog
Google Online Security Blog
TaoSecurity Blog
TaoSecurity Blog
小众软件
小众软件
S
SegmentFault 最新的问题
www.infosecurity-magazine.com
www.infosecurity-magazine.com
K
KPMG report finds enterprise disconnect between AI and its ROI | CIO
Security Archives - TechRepublic
Security Archives - TechRepublic
P
Privacy International News Feed
酷 壳 – CoolShell
酷 壳 – CoolShell
美团技术团队
博客园 - 聂微东
T
Tor Project blog
博客园 - Franky
C
CERT Recently Published Vulnerability Notes
Cyberwarzone
Cyberwarzone
罗磊的独立博客
博客园_首页
The Cloudflare Blog
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
博客园 - 三生石上(FineUI控件)
大猫的无限游戏
大猫的无限游戏
Forbes - Security
Forbes - Security
V
Vulnerabilities – Threatpost
Security Latest
Security Latest
腾讯CDC
Simon Willison's Weblog
Simon Willison's Weblog
S
Securelist
博客园 - 【当耐特】
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
T
Threat Research - Cisco Blogs
博客园 - 司徒正美
AWS News Blog
AWS News Blog
WordPress大学
WordPress大学
Jina AI
Jina AI
G
GRAHAM CLULEY
V
V2EX
L
LINUX DO - 最新话题
H
Heimdal Security Blog
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
IT之家
IT之家

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: trim doctor command hotspots · openclaw/openclaw@c66f16a test: isolate agent auth and spawn hotspots · openclaw/openclaw@9285935 test: stabilize MCP startup disposal race · openclaw/openclaw@dd9d2eb test: merge browser contract server suites · openclaw/openclaw@5817a76 test: narrow ollama provider discovery setup · openclaw/openclaw@a0d9598 build: declare qa-lab aimock runtime dependency · openclaw/openclaw@24431e5 test: speed up safe-bins exec harness · openclaw/openclaw@ee856ab test: preserve tool helpers in embedded runner mocks · openclaw/openclaw@acd86a0 refactor: move memory embeddings into provider plugins · openclaw/openclaw@77e6e4c test: reuse system-run temp fixtures · openclaw/openclaw@7e9ff0f test: trim hotspot wait overhead · openclaw/openclaw@12a59b0 Check: avoid duplicate boundary prep · openclaw/openclaw@baf11b8 test: reduce hotspot fixture overhead · openclaw/openclaw@3a59edd feat(ui): overhaul settings and slash command UX (#67819) thanks @Bun… · openclaw/openclaw@2cfb660 QA Matrix: exit cleanly on failure · openclaw/openclaw@42805d2 QA Matrix: isolate scenario coverage · openclaw/openclaw@7e659e1 Matrix: refresh crypto bootstrap state · openclaw/openclaw@94081d8 QA Lab: add provider registry · openclaw/openclaw@bb7e982 Matrix: add plugin changelog · openclaw/openclaw@4acab55 test: trim more hotspot overhead · openclaw/openclaw@f485311 test: trim remaining hotspot tests · openclaw/openclaw@6ba8626 test: narrow hotspot mocks · openclaw/openclaw@dbc8179 test: isolate gemini embedding request helpers · openclaw/openclaw@cd330f5 test: trim memory and mcp hotspots · openclaw/openclaw@fd48dfa test: slim provider registry mocks · openclaw/openclaw@2e08c77 test: harden Parallels update smoke · openclaw/openclaw@1a98090 feat: default Anthropic to Opus 4.7 · openclaw/openclaw@628b454 fix: harden node-host shell payload mutability checks · openclaw/openclaw@75c551e fix: land node-host approval binding for native binaries (#66731) (th… · openclaw/openclaw@29919bb CI: add daily schedule to CodeQL workflow (#67645) · openclaw/openclaw@69d25f5 fix(gateway): capture config hash after plugin auto-enable to prevent… · openclaw/openclaw@8c11210 fix: repair sanitized replay tool results before send (#67620) (thank… · openclaw/openclaw@c3c7a99 fix: restrict HTML timeout short-circuit to transient statuses · openclaw/openclaw@de129a6 fix: keep TUI watchdog bound to active run (#67401) (thanks @xantorres) · openclaw/openclaw@3525273 Gateway/skills: dedupe skills prefix-match + drop dead fallback on log · openclaw/openclaw@d7f489f Extensions/lmstudio: back off inference preload after consecutive fai… · openclaw/openclaw@b555214 TUI/streaming: add watchdog that resets the activity indicator after … · openclaw/openclaw@f44ab20 Agents/tool-loop: enable unknown-tool stream guard by default · openclaw/openclaw@36ed367 Gateway/skills: invalidate session skills snapshot on config write · openclaw/openclaw@b23d59a fix: classify HTML provider error pages correctly (#67642) (thanks @s… · openclaw/openclaw@e588e90 fix(skills): remove unused model-usage import (#67641) · openclaw/openclaw@55f05df docs(changelog): credit codex fix superseded PRs · openclaw/openclaw@e485f24 fix(openai-codex): normalize stale transport metadata in resolution a… · openclaw/openclaw@90801ba CI: pin Docker-related GitHub Actions (#67632) · openclaw/openclaw@f697b01 Android: modernize WebView and discovery API usage (#67627) · openclaw/openclaw@44a6e50 fix(deps): bump hono to 4.12.14 and @hono/node-server to 1.19.14 (GHS… · openclaw/openclaw@fbccc18 fix(deps): bump dompurify to 3.4.0 (#67614) · openclaw/openclaw@2c2dc00 CI: add explicit permissions to all workflow jobs (fixes code-scannin… · openclaw/openclaw@01b7516 fix: register bundled TTS providers and route overrides correctly (#6… · openclaw/openclaw@6ea3cdd fix: align host tilde paths with OS home (#62804) (thanks @stainlu) · openclaw/openclaw@ecfaf64 fix: flush creds queue before reconnect socket open (#67464) (thanks … · openclaw/openclaw@405c63f fix: strip standalone <function> tool call tags from visible text (#6… · openclaw/openclaw@78df859 fix(agents): preserve cli session metadata before transcript persist … · openclaw/openclaw@898fd04 docs(changelog): move cli transcript entry · openclaw/openclaw@c1817c6 fix(agents): normalize cli transcript api field · openclaw/openclaw@3a3fae0 docs(changelog): note cli transcript persistence · openclaw/openclaw@6c343f1 fix(agents): persist cli transcript turns · openclaw/openclaw@b8ef507 fix(msteams): harden security-sensitive flows (#65841) · openclaw/openclaw@c56b56e [Dashboard] Fix exec approval modal overflow for long command content… · openclaw/openclaw@053c5b0 Docs: remove QA changelog entry · openclaw/openclaw@7fd5771 QA: fix private runtime source loading (#67428) · openclaw/openclaw@d5933af docs(gateway): correct protocol.md schema path, hello-ok example, aut… · openclaw/openclaw@489404d CI: pin Node 22 runners to 22.18.0 · openclaw/openclaw@4ffa621 models.authStatus: normalize provider ids + tighten env-backed escape… · openclaw/openclaw@f2fdb9d Update CHANGELOG.md · openclaw/openclaw@7694a92 test(parallels): clean up npm update guard jobs · openclaw/openclaw@045ea7b Plugins: prefer scanDir override paths · openclaw/openclaw@b2974da fix(dreaming): default storage.mode to "separate" so phase blocks sto… · openclaw/openclaw@8c392f0 fix(memory-core): skip dreaming transcript ingestion via session stor… · openclaw/openclaw@a1b01f0 fix: dedupe replayed exec.finished node events (#67281) · openclaw/openclaw@5dcf526
fix(gateway): dedupe inflight outbound requests (#68341) · openclaw/openclaw@83ffc1f
thesomewhaty · 2026-05-11 · via Recent Commits to openclaw:main

@@ -15,6 +15,7 @@ const mocks = vi.hoisted(() => ({

1515

resolveOutboundSessionRoute: vi.fn(),

1616

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

1717

resolveMessageChannelSelection: vi.fn(),

18+

dispatchChannelMessageAction: vi.fn(),

1819

sendPoll: vi.fn<

1920

() => Promise<{

2021

messageId: string;

@@ -44,6 +45,10 @@ vi.mock("../../channels/plugins/index.js", () => ({

4445

normalizeChannelId: (value: string) => (value === "webchat" ? null : value),

4546

}));

464748+

vi.mock("../../channels/plugins/message-action-dispatch.js", () => ({

49+

dispatchChannelMessageAction: mocks.dispatchChannelMessageAction,

50+

}));

51+4752

const TEST_AGENT_WORKSPACE = "/tmp/openclaw-test-workspace";

4853

let sendHandlers: typeof import("./send.js").sendHandlers;

4954

@@ -163,6 +168,16 @@ async function runPollWithClient(

163168

return { respond };

164169

}

165170171+

function createDeferred<T>() {

172+

let resolve!: (value: T | PromiseLike<T>) => void;

173+

let reject!: (reason?: unknown) => void;

174+

const promise = new Promise<T>((res, rej) => {

175+

resolve = res;

176+

reject = rej;

177+

});

178+

return { promise, resolve, reject };

179+

}

180+166181

async function runMessageActionRequest(

167182

params: Record<string, unknown>,

168183

client?: { connect?: { scopes?: string[] } } | null,

@@ -256,8 +271,193 @@ describe("gateway send mirroring", () => {

256271

channel: "slack",

257272

configured: ["slack"],

258273

});

274+

mocks.dispatchChannelMessageAction.mockResolvedValue({

275+

details: { action: "handled" },

276+

});

259277

mocks.sendPoll.mockResolvedValue({ messageId: "poll-1" });

260-

mocks.getChannelPlugin.mockReturnValue({ outbound: { sendPoll: mocks.sendPoll } });

278+

mocks.getChannelPlugin.mockReturnValue({

279+

actions: { handleAction: true },

280+

outbound: { sendPoll: mocks.sendPoll },

281+

});

282+

});

283+284+

it("dedupes concurrent message.action requests while inflight", async () => {

285+

const context = makeContext();

286+

const firstRespond = vi.fn();

287+

const secondRespond = vi.fn();

288+

const actionDeferred = createDeferred<{ details: { action: string } }>();

289+

mocks.dispatchChannelMessageAction.mockReturnValueOnce(actionDeferred.promise);

290+291+

const firstRequest = sendHandlers["message.action"]({

292+

params: {

293+

channel: "slack",

294+

action: "poll",

295+

params: { question: "Q?" },

296+

idempotencyKey: "idem-action-concurrent",

297+

} as never,

298+

respond: firstRespond,

299+

context,

300+

req: { type: "req", id: "1", method: "message.action" },

301+

client: null as never,

302+

isWebchatConnect: () => false,

303+

});

304+305+

const secondRequest = sendHandlers["message.action"]({

306+

params: {

307+

channel: "slack",

308+

action: "poll",

309+

params: { question: "Q?" },

310+

idempotencyKey: "idem-action-concurrent",

311+

} as never,

312+

respond: secondRespond,

313+

context,

314+

req: { type: "req", id: "2", method: "message.action" },

315+

client: null as never,

316+

isWebchatConnect: () => false,

317+

});

318+319+

await Promise.resolve();

320+

expect(mocks.dispatchChannelMessageAction).toHaveBeenCalledTimes(1);

321+322+

actionDeferred.resolve({ details: { action: "handled" } });

323+

await Promise.all([firstRequest, secondRequest]);

324+325+

expect(mocks.dispatchChannelMessageAction).toHaveBeenCalledTimes(1);

326+

expect(firstRespond).toHaveBeenCalledWith(

327+

true,

328+

{ action: "handled" },

329+

undefined,

330+

expect.objectContaining({ channel: "slack" }),

331+

);

332+

expect(secondRespond).toHaveBeenCalledWith(

333+

true,

334+

{ action: "handled" },

335+

undefined,

336+

expect.objectContaining({ channel: "slack", cached: true }),

337+

);

338+

});

339+340+

it("dedupes concurrent send requests while inflight", async () => {

341+

const context = makeContext();

342+

const firstRespond = vi.fn();

343+

const secondRespond = vi.fn();

344+

const deliveryDeferred = createDeferred<Array<{ messageId: string; channel: string }>>();

345+

mocks.deliverOutboundPayloads.mockReturnValueOnce(deliveryDeferred.promise);

346+347+

const firstRequest = sendHandlers.send({

348+

params: {

349+

to: "channel:C1",

350+

message: "hi",

351+

channel: "slack",

352+

idempotencyKey: "idem-send-concurrent",

353+

} as never,

354+

respond: firstRespond,

355+

context,

356+

req: { type: "req", id: "1", method: "send" },

357+

client: null as never,

358+

isWebchatConnect: () => false,

359+

});

360+361+

const secondRequest = sendHandlers.send({

362+

params: {

363+

to: "channel:C1",

364+

message: "hi",

365+

channel: "slack",

366+

idempotencyKey: "idem-send-concurrent",

367+

} as never,

368+

respond: secondRespond,

369+

context,

370+

req: { type: "req", id: "2", method: "send" },

371+

client: null as never,

372+

isWebchatConnect: () => false,

373+

});

374+375+

await vi.waitFor(() => {

376+

expect(mocks.deliverOutboundPayloads).toHaveBeenCalledTimes(1);

377+

});

378+379+

deliveryDeferred.resolve([{ messageId: "m-concurrent", channel: "slack" }]);

380+

await Promise.all([firstRequest, secondRequest]);

381+382+

expect(mocks.deliverOutboundPayloads).toHaveBeenCalledTimes(1);

383+

expect(firstRespond).toHaveBeenCalledWith(

384+

true,

385+

expect.objectContaining({ messageId: "m-concurrent", runId: "idem-send-concurrent" }),

386+

undefined,

387+

expect.objectContaining({ channel: "slack" }),

388+

);

389+

expect(secondRespond).toHaveBeenCalledWith(

390+

true,

391+

expect.objectContaining({ messageId: "m-concurrent", runId: "idem-send-concurrent" }),

392+

undefined,

393+

expect.objectContaining({ channel: "slack", cached: true }),

394+

);

395+

});

396+397+

it("dedupes concurrent poll requests while inflight", async () => {

398+

const context = makeContext();

399+

const firstRespond = vi.fn();

400+

const secondRespond = vi.fn();

401+

const pollDeferred = createDeferred<{ messageId: string; pollId: string }>();

402+

mocks.sendPoll.mockReturnValueOnce(pollDeferred.promise);

403+404+

const firstRequest = sendHandlers.poll({

405+

params: {

406+

to: "channel:C1",

407+

question: "Q?",

408+

options: ["A", "B"],

409+

channel: "slack",

410+

idempotencyKey: "idem-poll-concurrent",

411+

} as never,

412+

respond: firstRespond,

413+

context,

414+

req: { type: "req", id: "1", method: "poll" },

415+

client: null as never,

416+

isWebchatConnect: () => false,

417+

});

418+419+

const secondRequest = sendHandlers.poll({

420+

params: {

421+

to: "channel:C1",

422+

question: "Q?",

423+

options: ["A", "B"],

424+

channel: "slack",

425+

idempotencyKey: "idem-poll-concurrent",

426+

} as never,

427+

respond: secondRespond,

428+

context,

429+

req: { type: "req", id: "2", method: "poll" },

430+

client: null as never,

431+

isWebchatConnect: () => false,

432+

});

433+434+

await Promise.resolve();

435+

expect(mocks.sendPoll).toHaveBeenCalledTimes(1);

436+437+

pollDeferred.resolve({ messageId: "poll-concurrent", pollId: "poll-1" });

438+

await Promise.all([firstRequest, secondRequest]);

439+440+

expect(mocks.sendPoll).toHaveBeenCalledTimes(1);

441+

expect(firstRespond).toHaveBeenCalledWith(

442+

true,

443+

expect.objectContaining({

444+

messageId: "poll-concurrent",

445+

pollId: "poll-1",

446+

runId: "idem-poll-concurrent",

447+

}),

448+

undefined,

449+

expect.objectContaining({ channel: "slack" }),

450+

);

451+

expect(secondRespond).toHaveBeenCalledWith(

452+

true,

453+

expect.objectContaining({

454+

messageId: "poll-concurrent",

455+

pollId: "poll-1",

456+

runId: "idem-poll-concurrent",

457+

}),

458+

undefined,

459+

expect.objectContaining({ channel: "slack", cached: true }),

460+

);

261461

});

262462263463

it("accepts media-only sends without message", async () => {

@@ -1016,6 +1216,18 @@ describe("gateway send mirroring", () => {

10161216

]),

10171217

"send-test-message-action",

10181218

);

1219+

mocks.dispatchChannelMessageAction.mockResolvedValueOnce(

1220+

jsonResult({

1221+

ok: true,

1222+

messageId: "wamid.1",

1223+

requesterSenderId: "trusted-user",

1224+

currentMessageId: "wamid.1",

1225+

currentGraphChannelId: "graph:team/chan",

1226+

replyToMode: "first",

1227+

hasRepliedRef: true,

1228+

skipCrossContextDecoration: true,

1229+

}),

1230+

);

1019123110201232

const { respond } = await runMessageActionRequest({

10211233

channel: "whatsapp",

@@ -1055,7 +1267,6 @@ describe("gateway send mirroring", () => {

10551267

});

1056126810571269

it("passes agent-scoped media roots to gateway message actions", async () => {

1058-

let capturedMediaLocalRoots: readonly string[] | undefined;

10591270

const mediaActionPlugin: ChannelPlugin = {

10601271

id: "telegram",

10611272

meta: {

@@ -1074,10 +1285,7 @@ describe("gateway send mirroring", () => {

10741285

actions: {

10751286

describeMessageTool: () => ({ actions: ["sendAttachment"] }),

10761287

supportsAction: ({ action }) => action === "sendAttachment",

1077-

handleAction: async ({ mediaLocalRoots }) => {

1078-

capturedMediaLocalRoots = mediaLocalRoots;

1079-

return jsonResult({ ok: true });

1080-

},

1288+

handleAction: async () => jsonResult({ ok: true }),

10811289

},

10821290

};

10831291

mocks.getChannelPlugin.mockReturnValue(mediaActionPlugin);

@@ -1095,7 +1303,11 @@ describe("gateway send mirroring", () => {

10951303

});

1096130410971305

expect(firstRespondCall(respond)?.[0]).toBe(true);

1098-

expect(capturedMediaLocalRoots).toContain(TEST_AGENT_WORKSPACE);

1306+

expect(mocks.dispatchChannelMessageAction).toHaveBeenLastCalledWith(

1307+

expect.objectContaining({

1308+

mediaLocalRoots: expect.arrayContaining([TEST_AGENT_WORKSPACE]),

1309+

}),

1310+

);

10991311

});

1100131211011313

it("forces senderIsOwner=false for narrowly-scoped callers but honors it for full operators", async () => {

@@ -1144,7 +1356,9 @@ describe("gateway send mirroring", () => {

11441356

},

11451357

{ connect: { scopes: ["operator.write"] } },

11461358

);

1147-

expect(capture.senderIsOwner).toBe(false);

1359+

expect(mocks.dispatchChannelMessageAction).toHaveBeenLastCalledWith(

1360+

expect.objectContaining({ senderIsOwner: false }),

1361+

);

1148136211491363

// Full operator (admin-scoped): the trusted runtime is allowed to

11501364

// forward the real channel-sender ownership bit. Wire true → true.

@@ -1162,7 +1376,9 @@ describe("gateway send mirroring", () => {

11621376

},

11631377

{ connect: { scopes: ["operator.admin"] } },

11641378

);

1165-

expect(capture.senderIsOwner).toBe(true);

1379+

expect(mocks.dispatchChannelMessageAction).toHaveBeenLastCalledWith(

1380+

expect.objectContaining({ senderIsOwner: true }),

1381+

);

1166138211671383

// Full operator forwarding a non-owner sender: wire false → false

11681384

// (admin scope does not inflate ownership on its own).

@@ -1180,6 +1396,8 @@ describe("gateway send mirroring", () => {

11801396

},

11811397

{ connect: { scopes: ["operator.admin"] } },

11821398

);

1183-

expect(capture.senderIsOwner).toBe(false);

1399+

expect(mocks.dispatchChannelMessageAction).toHaveBeenLastCalledWith(

1400+

expect.objectContaining({ senderIsOwner: false }),

1401+

);

11841402

});

11851403

});