fix(agents): hide successful resume fallback prefix · openclaw/openclaw@6559288
steipete
·
2026-04-28
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -132,7 +132,7 @@ describe("exec approval followup", () => {
|
132 | 132 | expect(callGatewayTool).not.toHaveBeenCalled(); |
133 | 133 | }); |
134 | 134 | |
135 | | -it("falls back to sanitized direct delivery when session resume fails", async () => { |
| 135 | +it("falls back to sanitized direct delivery without alarming prefix for successful completions", async () => { |
136 | 136 | vi.mocked(callGatewayTool).mockRejectedValueOnce(new Error("session missing")); |
137 | 137 | |
138 | 138 | await sendExecApprovalFollowup({ |
@@ -148,7 +148,7 @@ describe("exec approval followup", () => {
|
148 | 148 | |
149 | 149 | expect(sendMessage).toHaveBeenCalledWith( |
150 | 150 | expect.objectContaining({ |
151 | | -content: "Automatic session resume failed, so sending the status directly.\n\nall good", |
| 151 | +content: "all good", |
152 | 152 | idempotencyKey: "exec-approval-followup:req-session-resume-failed", |
153 | 153 | }), |
154 | 154 | ); |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。