























@@ -116,7 +116,7 @@ describe("buildBareSessionResetPrompt", () => {
116116expect(pending.prompt).not.toContain("while bootstrap is still pending for this workspace");
117117});
118118119-it("suppresses bootstrap mode when bare reset has no bootstrap file access", async () => {
119+it("uses limited bootstrap mode when bare reset has no bootstrap file access", async () => {
120120const workspaceDir = await makeTempWorkspace("openclaw-reset-no-file-access-");
121121await fs.writeFile(path.join(workspaceDir, "BOOTSTRAP.md"), "ritual", "utf8");
122122@@ -125,9 +125,10 @@ describe("buildBareSessionResetPrompt", () => {
125125hasBootstrapFileAccess: false,
126126});
127127128-expect(pending.bootstrapMode).toBe("none");
129-expect(pending.shouldPrependStartupContext).toBe(true);
130-expect(pending.prompt).toContain("Execute your Session Startup sequence now");
131-expect(pending.prompt).not.toContain("while bootstrap is still pending for this workspace");
128+expect(pending.bootstrapMode).toBe("limited");
129+expect(pending.shouldPrependStartupContext).toBe(false);
130+expect(pending.prompt).toContain("cannot safely complete the full BOOTSTRAP.md workflow here");
131+expect(pending.prompt).toContain("while bootstrap is still pending for this workspace");
132+expect(pending.prompt).not.toContain("Execute your Session Startup sequence now");
132133});
133134});
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。