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

推荐订阅源

Vercel News
Vercel News
博客园 - 【当耐特】
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
小众软件
小众软件
Hugging Face - Blog
Hugging Face - Blog
aimingoo的专栏
aimingoo的专栏
WordPress大学
WordPress大学
G
Google Developers Blog
博客园 - 叶小钗
大猫的无限游戏
大猫的无限游戏
P
Proofpoint News Feed
J
Java Code Geeks
U
Unit 42
云风的 BLOG
云风的 BLOG
阮一峰的网络日志
阮一峰的网络日志
N
Netflix TechBlog - Medium
宝玉的分享
宝玉的分享
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
D
Docker
V
Visual Studio Blog
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
H
Help Net Security
V
V2EX
T
Tailwind CSS 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
docs: document auto-reply block helpers · openclaw/opencl...
steipete · 2026-06-04 · via Recent Commits to openclaw:main

@@ -8,6 +8,7 @@ import type { ReplyPayload } from "../types.js";

88

import { createBlockReplyCoalescer } from "./block-reply-coalescer.js";

99

import type { BlockStreamingCoalescing } from "./block-streaming.js";

101011+

/** Streaming block reply pipeline that tracks sent content and media. */

1112

export type BlockReplyPipeline = {

1213

enqueue: (payload: ReplyPayload) => void;

1314

flush: (options?: { force?: boolean }) => Promise<void>;

@@ -19,12 +20,14 @@ export type BlockReplyPipeline = {

1920

getSentMediaUrls: () => readonly string[];

2021

};

212223+

/** Optional buffering strategy used before payloads enter block delivery. */

2224

export type BlockReplyBuffer = {

2325

shouldBuffer: (payload: ReplyPayload) => boolean;

2426

onEnqueue?: (payload: ReplyPayload) => void;

2527

finalize?: (payload: ReplyPayload) => ReplyPayload;

2628

};

272930+

/** Buffers audio payloads so final delivery can preserve voice presentation. */

2831

export function createAudioAsVoiceBuffer(params: {

2932

isAudioPayload: (payload: ReplyPayload) => boolean;

3033

}): BlockReplyBuffer {

@@ -40,6 +43,7 @@ export function createAudioAsVoiceBuffer(params: {

4043

};

4144

}

424546+

/** Creates a stable duplicate key for a complete outbound payload. */

4347

export function createBlockReplyPayloadKey(payload: ReplyPayload): string {

4448

const reply = resolveSendableOutboundReplyParts(payload);

4549

return JSON.stringify({

@@ -53,6 +57,7 @@ export function createBlockReplyPayloadKey(payload: ReplyPayload): string {

5357

});

5458

}

555960+

/** Creates a duplicate key that ignores reply target for final suppression. */

5661

export function createBlockReplyContentKey(payload: ReplyPayload): string {

5762

const reply = resolveSendableOutboundReplyParts(payload);

5863

// Content-only key used for final-payload suppression after block streaming.

@@ -88,6 +93,7 @@ const withTimeout = async <T>(

8893

}

8994

};

909596+

/** Creates the ordered block reply delivery pipeline for streamed payloads. */

9197

export function createBlockReplyPipeline(params: {

9298

onBlockReply: (

9399

payload: ReplyPayload,

@@ -138,6 +144,7 @@ export function createBlockReplyPipeline(params: {

138144

}

139145

pendingKeys.add(payloadKey);

140146147+

// Preserve outbound order by chaining sends; abort after timeout to avoid stale blocks.

141148

const timeoutError = new Error(`block reply delivery timed out after ${timeoutMs}ms`);

142149

const abortController = new AbortController();

143150

sendChain = sendChain