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

推荐订阅源

让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
U
Unit 42
IT之家
IT之家
Y
Y Combinator Blog
T
Tailwind CSS Blog
B
Blog
大猫的无限游戏
大猫的无限游戏
博客园 - 叶小钗
Jina AI
Jina AI
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
I
InfoQ
J
Java Code Geeks
F
Fortinet All Blogs
T
The Blog of Author Tim Ferriss
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
H
Hackread – Cybersecurity News, Data Breaches, AI and More
人人都是产品经理
人人都是产品经理
腾讯CDC
Hugging Face - Blog
Hugging Face - Blog
GbyAI
GbyAI
博客园 - 司徒正美
The GitHub Blog
The GitHub Blog
酷 壳 – CoolShell
酷 壳 – CoolShell
L
LangChain 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
refactor: consolidate message delivery API · openclaw/ope...
steipete · 2026-05-09 · via Recent Commits to openclaw:main

@@ -31,6 +31,36 @@ Runtime delivery helpers are available from

3131

`openclaw/plugin-sdk/channel-message-runtime` for monitor/send code paths that

3232

are already doing asynchronous message I/O.

333334+

New channel and plugin send code should use the message lifecycle helpers from

35+

`openclaw/plugin-sdk/channel-message-runtime`: `sendDurableMessageBatch`,

36+

`withDurableMessageSendContext`, or `deliverInboundReplyWithMessageSendContext`.

37+

The older

38+

`deliverOutboundPayloads(...)` helper in `openclaw/plugin-sdk/outbound-runtime`

39+

is deprecated compatibility/runtime substrate for outbound internals, recovery,

40+

and legacy adapters. Do not use it for new channel or plugin send paths.

41+42+

`sendDurableMessageBatch(...)` returns an explicit lifecycle outcome:

43+44+

- `sent` - at least one visible platform message was delivered.

45+

- `suppressed` - no platform message should be treated as missing. Stable

46+

reasons include `cancelled_by_message_sending_hook`,

47+

`empty_after_message_sending_hook`, `no_visible_payload`,

48+

`adapter_returned_no_identity`, and legacy `no_visible_result`.

49+

- `partial_failed` - at least one platform message was delivered before a later

50+

payload or side effect failed. The result includes the delivered receipt prefix

51+

plus the failure.

52+

- `failed` - no platform receipt was produced.

53+54+

Use `payloadOutcomes` when a batch mixes sent, suppressed, and failed payloads.

55+

Do not infer hook cancellation by checking whether the old direct-delivery array

56+

is empty.

57+58+

Compatibility dispatchers that still need the buffered reply dispatcher should

59+

build reply-prefix options with `createChannelMessageReplyPipeline(...)` from

60+

`openclaw/plugin-sdk/channel-message`, then call the runtime's

61+

`channel.turn.runPrepared(...)`. That keeps session recording and dispatch

62+

ordering on the shared turn lifecycle without adding another public turn wrapper.

63+3464

## Minimal adapter

35653666

Most new channel plugins can start with a small adapter:

@@ -124,8 +154,10 @@ tool send, implement `actions.prepareSendPayload(...)` instead of sending from

124154

`prepareSendPayload(...)` receives the normalized core `ReplyPayload` plus the

125155

full action context. Return a payload with channel-specific data in

126156

`payload.channelData.<channel>` and let core call `sendMessage(...)`,

127-

`deliverOutboundPayloads(...)`, the write-ahead queue, message-sending hooks,

128-

retry, recovery, and ack cleanup.

157+

the message lifecycle runtime, the write-ahead queue, message-sending hooks,

158+

retry, recovery, and ack cleanup. The lifecycle runtime may call

159+

`deliverOutboundPayloads(...)` internally as compatibility substrate, but channel

160+

plugins should not call it directly for new send behavior.

129161130162

Return `null` only when the send cannot be represented as a durable payload, for

131163

example because it contains a non-serializable component factory. Core will keep

@@ -390,17 +422,21 @@ surface.

390422

These APIs remain importable for third-party compatibility. Do not use them for

391423

new channel code.

392424393-

| Deprecated API | Replacement |

394-

| -------------------------------------------- | ------------------------------------------------------------------------------------------------------------------- |

395-

| `openclaw/plugin-sdk/channel-reply-pipeline` | `openclaw/plugin-sdk/channel-message` |

396-

| `createChannelTurnReplyPipeline(...)` | `createChannelMessageReplyPipeline(...)` for compatibility dispatchers, or a `message` adapter for new channel code |

397-

| `deliverDurableInboundReplyPayload(...)` | `deliverInboundReplyWithMessageSendContext(...)` from `openclaw/plugin-sdk/channel-message-runtime` |

398-

| `dispatchInboundReplyWithBase(...)` | `dispatchChannelMessageReplyWithBase(...)` only for compatibility dispatchers |

399-

| `recordInboundSessionAndDispatchReply(...)` | `recordChannelMessageReplyDispatch(...)` only for compatibility dispatchers |

400-

| `resolveChannelSourceReplyDeliveryMode(...)` | `resolveChannelMessageSourceReplyDeliveryMode(...)` |

401-

| `deliverFinalizableDraftPreview(...)` | `defineFinalizableLivePreviewAdapter(...)` plus `deliverWithFinalizableLivePreviewAdapter(...)` |

402-

| `DraftPreviewFinalizerDraft` | `LivePreviewFinalizerDraft` |

403-

| `DraftPreviewFinalizerResult` | `LivePreviewFinalizerResult` |

425+

| Deprecated API | Replacement |

426+

| -------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------- |

427+

| `openclaw/plugin-sdk/channel-reply-pipeline` | `openclaw/plugin-sdk/channel-message` |

428+

| `createChannelTurnReplyPipeline(...)` | `createChannelMessageReplyPipeline(...)` for compatibility dispatchers, or a `message` adapter for new channel code |

429+

| `buildChannelMessageReplyDispatchBase(...)` | `createChannelMessageReplyPipeline(...)` plus `channel.turn.runPrepared(...)`, or a `message` adapter for new channel code |

430+

| `dispatchChannelMessageReplyWithBase(...)` | `createChannelMessageReplyPipeline(...)` plus `channel.turn.runPrepared(...)`, or a `message` adapter for new channel code |

431+

| `recordChannelMessageReplyDispatch(...)` | `createChannelMessageReplyPipeline(...)` plus `channel.turn.runPrepared(...)`, or a `message` adapter for new channel code |

432+

| `deliverOutboundPayloads(...)` | `sendDurableMessageBatch(...)` or `deliverInboundReplyWithMessageSendContext(...)` from `channel-message-runtime` |

433+

| `deliverDurableInboundReplyPayload(...)` | `deliverInboundReplyWithMessageSendContext(...)` from `openclaw/plugin-sdk/channel-message-runtime` |

434+

| `dispatchInboundReplyWithBase(...)` | `createChannelMessageReplyPipeline(...)` plus `channel.turn.runPrepared(...)`, or a `message` adapter for new channel code |

435+

| `recordInboundSessionAndDispatchReply(...)` | `createChannelMessageReplyPipeline(...)` plus `channel.turn.runPrepared(...)`, or a `message` adapter for new channel code |

436+

| `resolveChannelSourceReplyDeliveryMode(...)` | `resolveChannelMessageSourceReplyDeliveryMode(...)` |

437+

| `deliverFinalizableDraftPreview(...)` | `defineFinalizableLivePreviewAdapter(...)` plus `deliverWithFinalizableLivePreviewAdapter(...)` |

438+

| `DraftPreviewFinalizerDraft` | `LivePreviewFinalizerDraft` |

439+

| `DraftPreviewFinalizerResult` | `LivePreviewFinalizerResult` |

404440405441

Compatibility dispatchers can still use `createReplyPrefixContext(...)`,

406442

`createReplyPrefixOptions(...)`, and `createTypingCallbacks(...)` through the