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

推荐订阅源

Jina AI
Jina AI
NISL@THU
NISL@THU
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
GbyAI
GbyAI
SecWiki News
SecWiki News
Microsoft Azure Blog
Microsoft Azure Blog
J
Java Code Geeks
B
Blog RSS Feed
Blog — PlanetScale
Blog — PlanetScale
Schneier on Security
Schneier on Security
V
Vulnerabilities – Threatpost
C
CXSECURITY Database RSS Feed - CXSecurity.com
V
Visual Studio Blog
宝玉的分享
宝玉的分享
Recent Announcements
Recent Announcements
T
True Tiger Recordings
F
Full Disclosure
Martin Fowler
Martin Fowler
D
Docker
Stack Overflow Blog
Stack Overflow Blog
Security Latest
Security Latest
A
About on SuperTechFans
雷峰网
雷峰网
Know Your Adversary
Know Your Adversary
Application and Cybersecurity Blog
Application and Cybersecurity Blog
Hacker News: Ask HN
Hacker News: Ask HN
B
Blog
V
V2EX - 技术
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
Google DeepMind News
Google DeepMind News
S
Security Archives - TechRepublic
Google DeepMind News
Google DeepMind News
人人都是产品经理
人人都是产品经理
Malwarebytes
Malwarebytes
C
Check Point Blog
美团技术团队
P
Privacy International News Feed
Recorded Future
Recorded Future
博客园 - 司徒正美
T
The Blog of Author Tim Ferriss
L
LangChain Blog
Project Zero
Project Zero
P
Proofpoint News Feed
有赞技术团队
有赞技术团队
P
Proofpoint News Feed
Scott Helme
Scott Helme
C
CERT Recently Published Vulnerability Notes
云风的 BLOG
云风的 BLOG
T
ThreatConnect
F
Fox-IT International blog

Recent Commits to openclaw:main

fix(auto-reply): bound scp staging stderr fix(voice-call): ignore tailscale helper stderr · openclaw/openclaw@76f447b fix(voice-call): ignore ngrok probe output · openclaw/openclaw@bc6ecc8 fix(voice-call): drain tailscale tunnel output fix(scripts): bound boundary check output fix(voice-call): bound tailscale status output docs: point release process at public evidence repo test(telegram): cover long streamed final replay fix(release): bound command output capture · openclaw/openclaw@b667bdd fix(docker): alias main images to latest release · openclaw/openclaw@3cb7ae5 perf: reduce agent turn CPU overhead · openclaw/openclaw@b58786c fix(matrix): bound bootstrap output capture fix(agents): bound search tool stderr · openclaw/openclaw@f2f18f5 fix(process): bound command output capture fix(ci): run CodeQL on main pushes · openclaw/openclaw@44451ea fix(backup): cap verify manifest extraction fix(agents): normalize session tool limits · openclaw/openclaw@38f3040 test(telegram): cover draft preview overflow · openclaw/openclaw@a048cbc fix(telegram): preserve final overflow state · openclaw/openclaw@bda924b fix(telegram): skip stopped draft finalization · openclaw/openclaw@8677310 fix(telegram): clamp partial draft overflow · openclaw/openclaw@e856932 fix(crestodian): bound local command probes · openclaw/openclaw@8e3be0a fix(agents): detect signaled local service exits · openclaw/openclaw@76ebc14 fix(release): port 2026.5.27 fixes fix(msteams): bound service error bodies fix(test): keep btw fs promises mock partial · openclaw/openclaw@56302f7 ci(docker): publish browser release images · openclaw/openclaw@dc31f73 fix(test): detect signaled memory fd gateway exits · openclaw/openclaw@5809bdf fix(test): detect signaled kitchen sink gateway exits · openclaw/openclaw@97ed582 docs: add release verification skill · openclaw/openclaw@6eedc83 fix(test): detect signaled test gateway exits test: stabilize code mode wait timeout · openclaw/openclaw@d7e62a8 fix(test): detect signaled cross-os gateway exits · openclaw/openclaw@f48a89c fix(test): detect signaled bundled smoke exits fix(test): hard kill boundary prep timeouts · openclaw/openclaw@a854331 fix(test): hard kill boundary step timeouts · openclaw/openclaw@3fb6746 docs: tune clawdtributor refresh summaries · openclaw/openclaw@51e57d4 fix(test): handle extension memory spawn errors · openclaw/openclaw@e5a687f chore(release): update appcast for 2026.5.27 · openclaw/openclaw@17c1b06 fix(test): bound startup build helpers · openclaw/openclaw@bda3531 test: speed up slow test suite (#87611) · openclaw/openclaw@aab5410 fix(release): bound npm release checks · openclaw/openclaw@e0635eb fix: reduce gateway warning noise · openclaw/openclaw@4252f07 fix(test): rebuild startup memory artifacts · openclaw/openclaw@4ce3c3e fix(release): bound prepack subprocesses · openclaw/openclaw@653e8d1 fix(release): bound release check commands · openclaw/openclaw@98d6331 fix(release): bound npm verifier commands · openclaw/openclaw@2b0e399 fix(e2e): bound bundled plugin selection · openclaw/openclaw@b234aa0 fix(docker): bound package capture output · openclaw/openclaw@cee364e fix(agent-sessions): fail oversized exec output · openclaw/openclaw@da55146 fix(supervisor): bound captured process output · openclaw/openclaw@2252cf6 fix(file-transfer): bound dir fetch tar listings · openclaw/openclaw@9a7f808 fix(brave): bound search error bodies · openclaw/openclaw@eb273a8 fix(test): bound package candidate command output · openclaw/openclaw@259796d fix(test): bound extension memory profiler output · openclaw/openclaw@d64b394 fix(test): wait for credential timeout cleanup · openclaw/openclaw@88c395c fix(qa-lab): bound plugin tools stderr tail · openclaw/openclaw@9085d17 fix(qa-lab): bound child process output · openclaw/openclaw@4a2b02e fix(test): escalate e2e watchdog termination · openclaw/openclaw@beb25d6 fix(security): avoid fetching untrusted proof refs · openclaw/openclaw@4bd711e fix(security): avoid CodeQL legacy auth patterns · openclaw/openclaw@3844e03 fix(test): keep upgrade survivor runtime state local · openclaw/openclaw@9fef53c Tighten phone-control mutation authorization [AI] (#87150) · openclaw/openclaw@91a4635 fix(voice-call): bound ngrok diagnostics · openclaw/openclaw@629fc2f fix(qa): expose credential fingerprints in admin list · openclaw/openclaw@1bc32e5 fix(memory): bound remote error bodies · openclaw/openclaw@93577ad Clarify directive persistence authorization policy [AI] (#86369) · openclaw/openclaw@bb418a8 fix(install): harden Windows git installs · openclaw/openclaw@dc5671e fix(qa): stabilize live transport lanes · openclaw/openclaw@f9aec04 fix(security): address OpenClaw CodeQL alerts · openclaw/openclaw@b008989 fix(parallels): guard release target harness mismatch · openclaw/openclaw@7275304 docs(skills): add OpenClaw release announcement guide · openclaw/openclaw@9805202 docs(skills): refine beta release announcement guidance · openclaw/openclaw@9ebf51e fix(release): bound cross-os fetch bodies · openclaw/openclaw@13dcded Fix Claude live tool progress for watchdog recovery (#87546) · openclaw/openclaw@4c3a029 test: avoid platform-specific transcript stat assertion · openclaw/openclaw@bd02977 fix(scripts): bound audit advisory error bodies · openclaw/openclaw@9f70064 fix: ignore leading transcript bytes in tail scan · openclaw/openclaw@b005f01 fix: avoid direct transcript stat fallback · openclaw/openclaw@e397636 fix(scripts): bound docker preflight capture fix(scripts): bound gh read error bodies · openclaw/openclaw@744da7e perf: avoid runtime catalog load for reasoning defaults fix(release): pin ClawHub publish workdir · openclaw/openclaw@a0cf185 perf: reuse preflight transcript scan size · openclaw/openclaw@8d5f6c8 fix(scripts): bound labeler error bodies perf: skip recent transcript read after final usage · openclaw/openclaw@39bc43c fix(scripts): bound memory fd ready output perf: reuse transcript scan size · openclaw/openclaw@bd6a404 fix(scripts): bound gateway watch log capture fix(agents): cancel failed skill download bodies · openclaw/openclaw@00fb152 fix(agents): suppress abandoned requester completion handoff (#87541) fix(qa): keep live transport artifacts local fix(release): speed windows upgrade fallback · openclaw/openclaw@1342727 fix(release): close cross-os artifact sockets · openclaw/openclaw@9771727 test(release): satisfy cross-os socket lint chore(ui): refresh nl control ui locale · openclaw/openclaw@43deaf4 chore(ui): refresh fa control ui locale · openclaw/openclaw@c16620c chore(ui): refresh vi control ui locale · openclaw/openclaw@55e1878 chore(ui): refresh th control ui locale · openclaw/openclaw@47c67e3 chore(ui): refresh pl control ui locale · openclaw/openclaw@062d429
fix(telegram): retain streamed long final prefixes · openclaw/openclaw@27d57af
obviyus · 2026-05-28 · via Recent Commits to openclaw:main

@@ -115,6 +115,15 @@ function compactChunks(chunks: readonly string[]): string[] {

115115

return out;

116116

}

117117118+

function isDeliveredPrefix(params: { deliveredText: string | undefined; finalText: string }) {

119+

if (!params.deliveredText || params.deliveredText.length === 0) {

120+

return false;

121+

}

122+

return (

123+

params.finalText === params.deliveredText || params.finalText.startsWith(params.deliveredText)

124+

);

125+

}

126+118127

export function createLaneTextDeliverer(params: CreateLaneTextDelivererParams) {

119128

const followUpPayload = (payload: ReplyPayload, text: string) =>

120129

params.applyTextToFollowUpPayload

@@ -270,6 +279,53 @@ export function createLaneTextDeliverer(params: CreateLaneTextDelivererParams) {

270279

if (!firstChunk || firstChunk.length > params.draftMaxChars) {

271280

return undefined;

272281

}

282+

const finalText = text.trimEnd();

283+

const deliveredStreamTextBeforeUpdate = stream.lastDeliveredText?.();

284+

const deliveredPrefixBeforeUpdate =

285+

isFinal &&

286+

deliveredStreamTextBeforeUpdate !== undefined &&

287+

isDeliveredPrefix({

288+

deliveredText: deliveredStreamTextBeforeUpdate,

289+

finalText,

290+

}) &&

291+

deliveredStreamTextBeforeUpdate.length > firstChunk.trimEnd().length;

292+

const finalizeDeliveredPrefix = async (

293+

deliveredStreamText: string,

294+

messageId: number,

295+

): Promise<LaneDeliveryResult> => {

296+

lane.finalized = true;

297+

params.markDelivered();

298+

let buttonsAttached = false;

299+

if (buttons) {

300+

const deliveredChunks = compactChunks(

301+

params.splitFinalTextForStream?.(deliveredStreamText) ?? [],

302+

);

303+

const currentChunk = deliveredChunks.at(-1);

304+

if (currentChunk && currentChunk.length <= params.draftMaxChars) {

305+

try {

306+

await params.editStreamMessage({ laneName, messageId, text: currentChunk, buttons });

307+

buttonsAttached = true;

308+

} catch (err) {

309+

params.log(`telegram: ${laneName} stream button edit failed: ${String(err)}`);

310+

}

311+

}

312+

}

313+

const suffix = finalText.slice(deliveredStreamText.length);

314+

if (suffix.trim().length > 0) {

315+

for (const chunk of compactChunks(params.splitFinalTextForStream?.(suffix) ?? [])) {

316+

if (chunk.trim().length === 0) {

317+

continue;

318+

}

319+

await params.sendPayload(followUpPayload(payload, chunk));

320+

}

321+

}

322+

return result("preview-finalized", {

323+

content: text,

324+

promptContextContent: deliveredStreamText,

325+

messageId,

326+

buttonsAttached,

327+

});

328+

};

273329274330

const retainedPreview =

275331

isFinal && remainingChunks.length === 0 && isPotentialTruncatedFinal(text)

@@ -296,8 +352,11 @@ export function createLaneTextDeliverer(params: CreateLaneTextDelivererParams) {

296352

}

297353

return undefined;

298354

}

299-

const deliveredStreamText = stream.lastDeliveredText?.();

300-

if (deliveredStreamText !== undefined && deliveredStreamText !== previewText) {

355+

const deliveredStreamTextAfterStop = stream.lastDeliveredText?.();

356+

if (

357+

deliveredStreamTextAfterStop !== undefined &&

358+

deliveredStreamTextAfterStop !== previewText

359+

) {

301360

return undefined;

302361

}

303362

let buttonsAttached = false;

@@ -320,10 +379,12 @@ export function createLaneTextDeliverer(params: CreateLaneTextDelivererParams) {

320379

return result("preview-finalized", { content: previewText, messageId, buttonsAttached });

321380

}

322381323-

lane.lastPartialText = firstChunk;

324-

lane.hasStreamedMessage = true;

325-

lane.finalized = false;

326-

stream.update(firstChunk);

382+

if (!deliveredPrefixBeforeUpdate) {

383+

lane.lastPartialText = firstChunk;

384+

lane.hasStreamedMessage = true;

385+

lane.finalized = false;

386+

stream.update(firstChunk);

387+

}

327388

if (isFinal) {

328389

await params.stopDraftLane(lane);

329390

} else {

@@ -340,15 +401,25 @@ export function createLaneTextDeliverer(params: CreateLaneTextDelivererParams) {

340401

return undefined;

341402

}

342403343-

const deliveredStreamText = stream.lastDeliveredText?.();

404+

const deliveredStreamTextAfterStop = stream.lastDeliveredText?.();

344405

if (

345406

isFinal &&

346-

deliveredStreamText !== undefined &&

347-

deliveredStreamText !== firstChunk.trimEnd()

407+

deliveredStreamTextAfterStop !== undefined &&

408+

deliveredStreamTextAfterStop !== firstChunk.trimEnd()

348409

) {

410+

if (

411+

isDeliveredPrefix({ deliveredText: deliveredStreamTextAfterStop, finalText }) &&

412+

deliveredStreamTextAfterStop.length > firstChunk.trimEnd().length

413+

) {

414+

return await finalizeDeliveredPrefix(deliveredStreamTextAfterStop, messageId);

415+

}

349416

return undefined;

350417

}

351418419+

if (deliveredPrefixBeforeUpdate && deliveredStreamTextAfterStop === undefined) {

420+

return await finalizeDeliveredPrefix(deliveredStreamTextBeforeUpdate, messageId);

421+

}

422+352423

params.markDelivered();

353424

let buttonsAttached = false;

354425

if (buttons) {