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

推荐订阅源

雷峰网
雷峰网
宝玉的分享
宝玉的分享
I
InfoQ
P
Privacy International News Feed
V
V2EX
IT之家
IT之家
S
SegmentFault 最新的问题
D
Darknet – Hacking Tools, Hacker News & Cyber Security
V2EX - 技术
V2EX - 技术
C
CERT Recently Published Vulnerability Notes
C
Check Point Blog
The Register - Security
The Register - Security
爱范儿
爱范儿
博客园 - 三生石上(FineUI控件)
AWS News Blog
AWS News Blog
M
MIT News - Artificial intelligence
C
Cyber Attacks, Cyber Crime and Cyber Security
F
Fortinet All Blogs
B
Blog
N
Netflix TechBlog - Medium
B
Blog RSS Feed
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
Last Week in AI
Last Week in AI
T
Threatpost
Forbes - Security
Forbes - Security
U
Unit 42
A
Arctic Wolf
K
KPMG report finds enterprise disconnect between AI and its ROI | CIO
P
Palo Alto Networks Blog
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
Recorded Future
Recorded Future
L
Lohrmann on Cybersecurity
Exploit-DB.com RSS Feed
Exploit-DB.com RSS Feed
P
Proofpoint News Feed
月光博客
月光博客
Spread Privacy
Spread Privacy
MongoDB | Blog
MongoDB | Blog
Jina AI
Jina AI
I
Intezer
V
Visual Studio Blog
阮一峰的网络日志
阮一峰的网络日志
The Hacker News
The Hacker News
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
L
LangChain Blog
CTFtime.org: upcoming CTF events
CTFtime.org: upcoming CTF events
博客园_首页
MyScale Blog
MyScale Blog
腾讯CDC
cs.AI updates on arXiv.org
cs.AI updates on arXiv.org
量子位

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(line): acknowledge webhooks before agent processing · openclaw/openclaw@4780e69
steipete · 2026-05-15 · via Recent Commits to openclaw:main
Original file line numberDiff line numberDiff line change

@@ -11,6 +11,7 @@ Docs: https://docs.openclaw.ai

1111
1212

### Fixes

1313
14+

- LINE: acknowledge signed webhook events before agent processing so slow model replies do not cause LINE `request_timeout` delivery failures. Fixes #65375. Thanks @myericho.

1415

- Codex/Lossless: keep Codex explicit compaction on native app-server threads while allowing Lossless through the context-engine slot; `openclaw doctor --fix` now migrates legacy `compaction.provider: "lossless-claw"` config to `plugins.slots.contextEngine`.

1516

- Gateway/approvals: treat `turnSourceTo` as optional in `canBridgeNoDeviceChatApprovalFromBackend`, matching the existing optional handling of `turnSourceAccountId` and `turnSourceThreadId`. Channels without a recipient concept (webchat, control-ui) leave `turnSourceTo` null on both the approval snapshot and the replay params, so the prior required-string check rejected every backend replay with `APPROVAL_CLIENT_MISMATCH`. Cross-channel replay is still gated by the required `turnSourceChannel` and `sessionKey` checks. Fixes #82132. (#82136) Thanks @ottodeng.

1617

- Cron: load runtime plugins before isolated cron model and delivery resolution so external channels can be selected for scheduled runs. (#82111) Thanks @medns.

Original file line numberDiff line numberDiff line change

@@ -42,7 +42,9 @@ openclaw plugins install ./path/to/local/line-plugin

4242

https://gateway-host/line/webhook

4343

```

4444
45-

The gateway responds to LINE's webhook verification (GET) and inbound events (POST).

45+

The gateway responds to LINE's webhook verification (GET) and acknowledges signed

46+

inbound events (POST) immediately after signature and payload validation; agent

47+

processing continues asynchronously.

4648

If you need a custom path, set `channels.line.webhookPath` or

4749

`channels.line.accounts.<id>.webhookPath` and update the URL accordingly.

4850
Original file line numberDiff line numberDiff line change

@@ -593,27 +593,25 @@ describe("line outbound sendPayload", () => {

593593

);

594594

});

595595
596-

it("declares receive ack policies for deferred LINE webhook acknowledgement", async () => {

596+

it("declares receive ack policies for immediate LINE webhook acknowledgement", async () => {

597597

const proofResults = await verifyChannelMessageReceiveAckPolicyAdapterProofs({

598598

adapterName: "line",

599599

adapter: linePlugin.message!,

600600

proofs: {

601601

after_receive_record: () => {

602+

expect(linePlugin.message?.receive?.defaultAckPolicy).toBe("after_receive_record");

602603

expect(linePlugin.message?.receive?.supportedAckPolicies).toContain(

603604

"after_receive_record",

604605

);

605606

},

606-

after_agent_dispatch: () => {

607-

expect(linePlugin.message?.receive?.defaultAckPolicy).toBe("after_agent_dispatch");

608-

},

609607

},

610608

});

611609
612610

expect(proofResults.find((result) => result.policy === "after_receive_record")?.status).toBe(

613611

"verified",

614612

);

615613

expect(proofResults.find((result) => result.policy === "after_agent_dispatch")?.status).toBe(

616-

"verified",

614+

"not_declared",

617615

);

618616

});

619617

});

Original file line numberDiff line numberDiff line change

@@ -357,6 +357,47 @@ describe("monitorLineProvider lifecycle", () => {

357357

secondMonitor.stop();

358358

});

359359
360+

it("acknowledges shared-path POST requests before matched event processing completes", async () => {

361+

const monitor = await monitorLineProvider({

362+

channelAccessToken: "token",

363+

channelSecret: "secret", // pragma: allowlist secret

364+

accountId: "default",

365+

config: {} as OpenClawConfig,

366+

runtime: {} as RuntimeEnv,

367+

});

368+
369+

let releaseWebhook: (() => void) | undefined;

370+

const bot = createLineBotMock.mock.results[0]?.value as {

371+

handleWebhook: ReturnType<typeof vi.fn>;

372+

};

373+

bot.handleWebhook.mockImplementation(

374+

async () =>

375+

await new Promise<void>((resolve) => {

376+

releaseWebhook = resolve;

377+

}),

378+

);

379+
380+

const route = requireRegisteredRoute();

381+

const payload = JSON.stringify({ events: [{ type: "message" }] });

382+

const signature = crypto.createHmac("SHA256", "secret").update(payload).digest("base64");

383+

const req = Object.assign(createMockIncomingRequest([payload]), {

384+

method: "POST",

385+

headers: { "x-line-signature": signature },

386+

}) as unknown as IncomingMessage;

387+

const res = createRouteResponse();

388+
389+

await route.handler(req, res);

390+
391+

expect(res.statusCode).toBe(200);

392+

expect(res.headersSent).toBe(true);

393+

expect(bot.handleWebhook).toHaveBeenCalledTimes(1);

394+

if (!releaseWebhook) {

395+

throw new Error("expected pending LINE webhook handler");

396+

}

397+

releaseWebhook();

398+

monitor.stop();

399+

});

400+
360401

it("rejects ambiguous shared-path webhook signatures", async () => {

361402

const firstMonitor = await monitorLineProvider({

362403

channelAccessToken: "first-token",

Original file line numberDiff line numberDiff line change

@@ -429,15 +429,20 @@ export async function monitorLineProvider(

429429

}

430430
431431

requestLifecycle.release();

432+

res.statusCode = 200;

433+

res.setHeader("Content-Type", "application/json");

434+

res.end(JSON.stringify({ status: "ok" }));

432435
433436

if (body.events && body.events.length > 0) {

434437

logVerbose(`line: received ${body.events.length} webhook events`);

435-

await match.target.bot.handleWebhook(body);

438+

void Promise.resolve()

439+

.then(() => match.target.bot.handleWebhook(body))

440+

.catch((err) => {

441+

match.target.runtime.error?.(

442+

danger(`line webhook dispatch failed: ${String(err)}`),

443+

);

444+

});

436445

}

437-
438-

res.statusCode = 200;

439-

res.setHeader("Content-Type", "application/json");

440-

res.end(JSON.stringify({ status: "ok" }));

441446

} catch (err) {

442447

if (isRequestBodyLimitError(err, "PAYLOAD_TOO_LARGE")) {

443448

res.statusCode = 413;

Original file line numberDiff line numberDiff line change

@@ -421,7 +421,7 @@ export const lineMessageAdapter = defineChannelMessageAdapter({

421421

},

422422

},

423423

receive: {

424-

defaultAckPolicy: "after_agent_dispatch",

425-

supportedAckPolicies: ["after_receive_record", "after_agent_dispatch"],

424+

defaultAckPolicy: "after_receive_record",

425+

supportedAckPolicies: ["after_receive_record"],

426426

},

427427

});

Original file line numberDiff line numberDiff line change

@@ -303,18 +303,20 @@ describe("LINE webhook shared POST contract", () => {

303303

);

304304
305305

it.each(sharedWebhookPostContractCases)(

306-

"$name returns 500 when event processing fails and does not acknowledge with 200",

306+

"$name acknowledges signed events before failed background processing is logged",

307307

async ({ invoke }) => {

308308

const result = await invoke({

309309

failWith: new Error("transient failure"),

310310

rawBody: JSON.stringify({ events: [{ type: "message" }] }),

311311

signed: true,

312312

});

313313
314-

expect(result.status).toBe(500);

315-

expect(result.body).toEqual({ error: "Internal server error" });

314+

expect(result.status).toBe(200);

315+

expect(result.body).toEqual({ status: "ok" });

316316

expect(result.dispatched).toHaveBeenCalledTimes(1);

317-

expect(result.runtimeError).toHaveBeenCalledTimes(1);

317+

await vi.waitFor(() => {

318+

expect(result.runtimeError).toHaveBeenCalledTimes(1);

319+

});

318320

},

319321

);

320322

});

@@ -436,7 +438,7 @@ describe("createLineNodeWebhookHandler", () => {

436438

expect(payload.events).toEqual([{ type: "message" }]);

437439

});

438440
439-

it("releases authenticated requests before event processing completes", async () => {

441+

it("acknowledges signed event requests before event processing completes", async () => {

440442

const rawBody = JSON.stringify({ events: [{ type: "message" }] });

441443

let releaseAuthenticated: (() => void) | undefined;

442444

const bot = {

@@ -465,14 +467,14 @@ describe("createLineNodeWebhookHandler", () => {

465467

expect(bot.handleWebhook).toHaveBeenCalledTimes(1);

466468

});

467469
468-

expect(res.headersSent).toBe(false);

470+

await request;

471+
472+

expect(res.statusCode).toBe(200);

473+

expect(res.headersSent).toBe(true);

469474

if (!releaseAuthenticated) {

470475

throw new Error("Expected LINE authenticated request release callback to be initialized");

471476

}

472477

releaseAuthenticated();

473-

await request;

474-
475-

expect(res.statusCode).toBe(200);

476478

});

477479
478480

it("returns 400 for invalid JSON payload even when signature is valid", async () => {

Original file line numberDiff line numberDiff line change

@@ -29,6 +29,10 @@ export async function readLineWebhookRequestBody(

2929
3030

type ReadBodyFn = (req: IncomingMessage, maxBytes: number, timeoutMs?: number) => Promise<string>;

3131
32+

function logLineWebhookDispatchError(runtime: RuntimeEnv | undefined, err: unknown): void {

33+

runtime?.error?.(danger(`line webhook dispatch failed: ${String(err)}`));

34+

}

35+
3236

export function createLineNodeWebhookHandler(params: {

3337

channelSecret: string;

3438

bot: { handleWebhook: (body: webhook.CallbackRequest) => Promise<void> };

@@ -108,22 +112,23 @@ export function createLineNodeWebhookHandler(params: {

108112

id: `${Date.now()}:line:webhook`,

109113

channel: "line",

110114

message: body,

111-

ackPolicy: body.events?.length ? "after_agent_dispatch" : "after_receive_record",

115+

ackPolicy: "after_receive_record",

112116

onAck: () => {

113117

res.statusCode = 200;

114118

res.setHeader("Content-Type", "application/json");

115119

res.end(JSON.stringify({ status: "ok" }));

116120

},

117121

});

118122
119-

if (body.events && body.events.length > 0) {

120-

logVerbose(`line: received ${body.events.length} webhook events`);

121-

await params.bot.handleWebhook(body);

123+

if (receiveContext.shouldAckAfter("receive_record")) {

124+

await receiveContext.ack();

122125

}

123126
124-

const ackStage = body.events?.length ? "agent_dispatch" : "receive_record";

125-

if (receiveContext.shouldAckAfter(ackStage)) {

126-

await receiveContext.ack();

127+

if (body.events && body.events.length > 0) {

128+

logVerbose(`line: received ${body.events.length} webhook events`);

129+

void Promise.resolve()

130+

.then(() => params.bot.handleWebhook(body))

131+

.catch((err) => logLineWebhookDispatchError(params.runtime, err));

127132

}

128133

} catch (err) {

129134

await receiveContext?.nack(err);

Original file line numberDiff line numberDiff line change

@@ -32,6 +32,10 @@ function parseWebhookBody(rawBody?: string | null): webhook.CallbackRequest | nu

3232

return parseLineWebhookBody(rawBody);

3333

}

3434
35+

function logLineWebhookDispatchError(runtime: RuntimeEnv | undefined, err: unknown): void {

36+

runtime?.error?.(danger(`line webhook dispatch failed: ${String(err)}`));

37+

}

38+
3539

export function createLineWebhookMiddleware(

3640

options: LineWebhookOptions,

3741

): (req: Request, res: Response, _next: NextFunction) => Promise<void> {

@@ -75,20 +79,21 @@ export function createLineWebhookMiddleware(

7579

id: `${Date.now()}:line:webhook`,

7680

channel: "line",

7781

message: body,

78-

ackPolicy: body.events?.length ? "after_agent_dispatch" : "after_receive_record",

82+

ackPolicy: "after_receive_record",

7983

onAck: () => {

8084

res.status(200).json({ status: "ok" });

8185

},

8286

});

8387
84-

if (body.events && body.events.length > 0) {

85-

logVerbose(`line: received ${body.events.length} webhook events`);

86-

await onEvents(body);

88+

if (receiveContext.shouldAckAfter("receive_record")) {

89+

await receiveContext.ack();

8790

}

8891
89-

const ackStage = body.events?.length ? "agent_dispatch" : "receive_record";

90-

if (receiveContext.shouldAckAfter(ackStage)) {

91-

await receiveContext.ack();

92+

if (body.events && body.events.length > 0) {

93+

logVerbose(`line: received ${body.events.length} webhook events`);

94+

void Promise.resolve()

95+

.then(() => onEvents(body))

96+

.catch((err) => logLineWebhookDispatchError(runtime, err));

9297

}

9398

} catch (err) {

9499

await receiveContext?.nack(err);