fix: skip tool-only reasoning replay

This commit is contained in:
Peter Steinberger
2026-01-11 04:48:48 +01:00
parent f42fca667c
commit b7ac9095e6
2 changed files with 3 additions and 5 deletions

View File

@@ -636,16 +636,15 @@ describe("doctor", () => {
expect(
note.mock.calls.some(([message, title]) => {
if (title !== "Sandbox") return false;
if (typeof message !== "string") return false;
const normalized = message.replace(/\s+/g, " ");
if (title !== "Sandbox" || typeof message !== "string") return false;
const normalized = message.replace(/\s+/g, " ").trim();
return (
normalized.includes('agents.list (id "work") sandbox docker') &&
normalized.includes('scope resolves to "shared"')
);
}),
).toBe(true);
});
}, 10_000);
it("warns when legacy workspace directories exist", async () => {
readConfigFileSnapshot.mockResolvedValue({