test: check acp resume lifecycle fields · openclaw/openclaw@180fa82
shakkernerd
·
2026-05-11
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -336,16 +336,10 @@ describe("acp translator stable lifecycle handlers", () => {
|
336 | 336 | const result = await agent.resumeSession(createResumeSessionRequest("agent:main:work")); |
337 | 337 | |
338 | 338 | expect(result.modes?.currentModeId).toBe("adaptive"); |
339 | | -expect(result.configOptions).toEqual( |
340 | | -expect.arrayContaining([ |
341 | | -expect.objectContaining({ |
342 | | -id: "thought_level", |
343 | | -currentValue: "adaptive", |
344 | | -}), |
345 | | -]), |
346 | | -); |
| 339 | +const thoughtLevelOption = result.configOptions.find((option) => option.id === "thought_level"); |
| 340 | +expect(thoughtLevelOption?.currentValue).toBe("adaptive"); |
347 | 341 | expect(sessionStore.getSession("agent:main:work")?.sessionKey).toBe("agent:main:work"); |
348 | | -expect(request).not.toHaveBeenCalledWith("sessions.get", expect.anything()); |
| 342 | +expect(request.mock.calls.map((call) => call[0])).not.toContain("sessions.get"); |
349 | 343 | expect(sessionUpdate).toHaveBeenCalledWith({ |
350 | 344 | sessionId: "agent:main:work", |
351 | 345 | update: { |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。