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

推荐订阅源

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
refactor(agents): dedupe cli assistant deltas · openclaw/...
vincentkoc · 2026-06-18 · via Recent Commits to openclaw:main
Original file line numberDiff line numberDiff line change

@@ -33,6 +33,7 @@ import {

3333

extractCliErrorMessage,

3434

parseCliOutput,

3535

type CliOutput,

36+

type CliStreamingDelta,

3637

} from "../cli-output.js";

3738

import { classifyFailoverReason } from "../embedded-agent-helpers.js";

3839

import {

@@ -992,6 +993,28 @@ export async function executePreparedCliRun(

992993

},

993994

});

994995

};

996+

const emitCliAssistantDelta = ({ text, delta }: CliStreamingDelta) => {

997+

if (text || delta) {

998+

observedCliActivity = true;

999+

}

1000+

if (!emitLiveEvents) {

1001+

return;

1002+

}

1003+

emitAgentEvent({

1004+

runId: params.runId,

1005+

stream: "assistant",

1006+

data: {

1007+

text: applyPluginTextReplacements(

1008+

text,

1009+

context.backendResolved.textTransforms?.output,

1010+

),

1011+

delta: applyPluginTextReplacements(

1012+

delta,

1013+

context.backendResolved.textTransforms?.output,

1014+

),

1015+

},

1016+

});

1017+

};

9951018

if (shouldUseClaudeLiveSession(context)) {

9961019

if (!hasJsonlOutput) {

9971020

throw new Error("Claude live session requires JSONL streaming parser");

@@ -1018,28 +1041,7 @@ export async function executePreparedCliRun(

10181041

useResume,

10191042

noOutputTimeoutMs,

10201043

getProcessSupervisor: executeDeps.getProcessSupervisor,

1021-

onAssistantDelta: ({ text, delta }) => {

1022-

if (text || delta) {

1023-

observedCliActivity = true;

1024-

}

1025-

if (!emitLiveEvents) {

1026-

return;

1027-

}

1028-

emitAgentEvent({

1029-

runId: params.runId,

1030-

stream: "assistant",

1031-

data: {

1032-

text: applyPluginTextReplacements(

1033-

text,

1034-

context.backendResolved.textTransforms?.output,

1035-

),

1036-

delta: applyPluginTextReplacements(

1037-

delta,

1038-

context.backendResolved.textTransforms?.output,

1039-

),

1040-

},

1041-

});

1042-

},

1044+

onAssistantDelta: emitCliAssistantDelta,

10431045

onToolUseStart: emitCliToolUseStart,

10441046

onToolResult: emitCliToolResult,

10451047

onCommentaryText:

@@ -1072,28 +1074,7 @@ export async function executePreparedCliRun(

10721074

? createCliJsonlStreamingParser({

10731075

backend,

10741076

providerId: context.backendResolved.id,

1075-

onAssistantDelta: ({ text, delta }) => {

1076-

if (text || delta) {

1077-

observedCliActivity = true;

1078-

}

1079-

if (!emitLiveEvents) {

1080-

return;

1081-

}

1082-

emitAgentEvent({

1083-

runId: params.runId,

1084-

stream: "assistant",

1085-

data: {

1086-

text: applyPluginTextReplacements(

1087-

text,

1088-

context.backendResolved.textTransforms?.output,

1089-

),

1090-

delta: applyPluginTextReplacements(

1091-

delta,

1092-

context.backendResolved.textTransforms?.output,

1093-

),

1094-

},

1095-

});

1096-

},

1077+

onAssistantDelta: emitCliAssistantDelta,

10971078

onToolUseStart: emitCliToolUseStart,

10981079

onToolResult: emitCliToolResult,

10991080

onCommentaryText: