fix(cron): propagate cleanupCliLiveSessionOnRunEnd to isolated cron C… · openclaw/openclaw@6c7a6ff
xialonglee
·
2026-06-28
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -322,6 +322,7 @@ export function createCronPromptExecutor(params: {
|
322 | 322 | agentId: params.agentId, |
323 | 323 | trigger: "cron", |
324 | 324 | jobId: params.job.id, |
| 325 | +cleanupCliLiveSessionOnRunEnd: params.job.sessionTarget === "isolated", |
325 | 326 | sessionFile, |
326 | 327 | workspaceDir: params.workspaceDir, |
327 | 328 | config: params.cfgWithAgentDefaults, |
|
| Original file line number | Diff line number | Diff line change |
|---|
@@ -198,13 +198,15 @@ describe("runCronIsolatedAgentTurn isolated session identity", () => {
|
198 | 198 | promptCacheKey?: string; |
199 | 199 | bootstrapContextMode?: string; |
200 | 200 | bootstrapContextRunKind?: string; |
| 201 | +cleanupCliLiveSessionOnRunEnd?: boolean; |
201 | 202 | }; |
202 | 203 | expect(runRequest.sessionId).toBe("isolated-cli-run-1"); |
203 | 204 | expect(runRequest.sessionKey).toBe("agent:default:cron:cli-monitor:run:isolated-cli-run-1"); |
204 | 205 | expect(runRequest.sessionKey).not.toBe("agent:default:cron:cli-monitor"); |
205 | 206 | expect(runRequest.promptCacheKey).toBeUndefined(); |
206 | 207 | expect(runRequest.bootstrapContextMode).toBe("lightweight"); |
207 | 208 | expect(runRequest.bootstrapContextRunKind).toBe("cron"); |
| 209 | +expect(runRequest.cleanupCliLiveSessionOnRunEnd).toBe(true); |
208 | 210 | }); |
209 | 211 | |
210 | 212 | it("runs externally sourced CLI hook turns", async () => { |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。