mirror of
https://github.com/openclaw/openclaw.git
synced 2026-08-24 11:25:50 -06:00
test(agents): remove duplicate restart progress case (#121781)
This commit is contained in:
committed by
GitHub
parent
32894a3ba5
commit
252e90a45e
@@ -29,16 +29,6 @@ function progressMessage(text: string, itemId: string): Record<string, unknown>
|
||||
}
|
||||
|
||||
describe("resolveMainSessionResumePolicy progress tails", () => {
|
||||
it("resumes when keyed progress messages arrive after the recovery mark", () => {
|
||||
expect(
|
||||
resolveMainSessionResumePolicy([
|
||||
{ role: "user", content: "finish the interrupted work" },
|
||||
progressMessage("Checking the owner boundary.", "progress-1"),
|
||||
progressMessage("Still tracing the restart lifecycle.", "progress-2"),
|
||||
]),
|
||||
).toEqual({ action: "resume", forceRestartSafeTools: false });
|
||||
});
|
||||
|
||||
it("resumes explicit commentary without making completed answers resumable", () => {
|
||||
expect(
|
||||
resolveMainSessionResumePolicy([
|
||||
|
||||
Reference in New Issue
Block a user