From c1c217035d17e99c8d4213b7c3cd38a160958a0b Mon Sep 17 00:00:00 2001 From: Peter Steinberger Date: Tue, 28 Apr 2026 20:55:45 +0100 Subject: [PATCH] test: align bare reset bootstrap expectation --- src/auto-reply/reply/session-reset-prompt.test.ts | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/src/auto-reply/reply/session-reset-prompt.test.ts b/src/auto-reply/reply/session-reset-prompt.test.ts index cd6680556d9..d4f18acf6f4 100644 --- a/src/auto-reply/reply/session-reset-prompt.test.ts +++ b/src/auto-reply/reply/session-reset-prompt.test.ts @@ -116,7 +116,7 @@ describe("buildBareSessionResetPrompt", () => { expect(pending.prompt).not.toContain("while bootstrap is still pending for this workspace"); }); - it("suppresses bootstrap mode when bare reset has no bootstrap file access", async () => { + it("uses limited bootstrap mode when bare reset has no bootstrap file access", async () => { const workspaceDir = await makeTempWorkspace("openclaw-reset-no-file-access-"); await fs.writeFile(path.join(workspaceDir, "BOOTSTRAP.md"), "ritual", "utf8"); @@ -125,9 +125,10 @@ describe("buildBareSessionResetPrompt", () => { hasBootstrapFileAccess: false, }); - expect(pending.bootstrapMode).toBe("none"); - expect(pending.shouldPrependStartupContext).toBe(true); - expect(pending.prompt).toContain("Execute your Session Startup sequence now"); - expect(pending.prompt).not.toContain("while bootstrap is still pending for this workspace"); + expect(pending.bootstrapMode).toBe("limited"); + expect(pending.shouldPrependStartupContext).toBe(false); + expect(pending.prompt).toContain("cannot safely complete the full BOOTSTRAP.md workflow here"); + expect(pending.prompt).toContain("while bootstrap is still pending for this workspace"); + expect(pending.prompt).not.toContain("Execute your Session Startup sequence now"); }); });