fix(agent): persist visible embedded final replies · openclaw/openclaw@f0c1746
obviyus
·
2026-05-06
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -1197,7 +1197,11 @@ async function agentCommandInternal(
|
1197 | 1197 | } |
1198 | 1198 | |
1199 | 1199 | const transcriptPersistenceRunner = result.meta.executionTrace?.runner; |
1200 | | -if (transcriptPersistenceRunner === "cli" || transcriptPersistenceRunner === "embedded") { |
| 1200 | +const embeddedAssistantGapFill = |
| 1201 | +transcriptPersistenceRunner === "embedded" || |
| 1202 | +(transcriptPersistenceRunner === undefined && |
| 1203 | +Boolean(result.meta.finalAssistantVisibleText?.trim())); |
| 1204 | +if (transcriptPersistenceRunner === "cli" || embeddedAssistantGapFill) { |
1201 | 1205 | try { |
1202 | 1206 | sessionEntry = await attemptExecutionRuntime.persistCliTurnTranscript({ |
1203 | 1207 | body, |
@@ -1212,7 +1216,7 @@ async function agentCommandInternal(
|
1212 | 1216 | threadId: opts.threadId, |
1213 | 1217 | sessionCwd: workspaceDir, |
1214 | 1218 | config: cfg, |
1215 | | -embeddedAssistantGapFill: transcriptPersistenceRunner === "embedded", |
| 1219 | + embeddedAssistantGapFill, |
1216 | 1220 | }); |
1217 | 1221 | sessionEntry = await ( |
1218 | 1222 | await loadCliCompactionRuntime() |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。