fix: skip tool-only reasoning replay
This commit is contained in:
@@ -636,16 +636,15 @@ describe("doctor", () => {
|
|||||||
|
|
||||||
expect(
|
expect(
|
||||||
note.mock.calls.some(([message, title]) => {
|
note.mock.calls.some(([message, title]) => {
|
||||||
if (title !== "Sandbox") return false;
|
if (title !== "Sandbox" || typeof message !== "string") return false;
|
||||||
if (typeof message !== "string") return false;
|
const normalized = message.replace(/\s+/g, " ").trim();
|
||||||
const normalized = message.replace(/\s+/g, " ");
|
|
||||||
return (
|
return (
|
||||||
normalized.includes('agents.list (id "work") sandbox docker') &&
|
normalized.includes('agents.list (id "work") sandbox docker') &&
|
||||||
normalized.includes('scope resolves to "shared"')
|
normalized.includes('scope resolves to "shared"')
|
||||||
);
|
);
|
||||||
}),
|
}),
|
||||||
).toBe(true);
|
).toBe(true);
|
||||||
});
|
}, 10_000);
|
||||||
|
|
||||||
it("warns when legacy workspace directories exist", async () => {
|
it("warns when legacy workspace directories exist", async () => {
|
||||||
readConfigFileSnapshot.mockResolvedValue({
|
readConfigFileSnapshot.mockResolvedValue({
|
||||||
|
|||||||
@@ -1,7 +1,6 @@
|
|||||||
import { note as clackNote } from "@clack/prompts";
|
import { note as clackNote } from "@clack/prompts";
|
||||||
import { visibleWidth } from "./ansi.js";
|
import { visibleWidth } from "./ansi.js";
|
||||||
import { stylePromptTitle } from "./prompt-style.js";
|
import { stylePromptTitle } from "./prompt-style.js";
|
||||||
|
|
||||||
function splitLongWord(word: string, maxLen: number): string[] {
|
function splitLongWord(word: string, maxLen: number): string[] {
|
||||||
if (maxLen <= 0) return [word];
|
if (maxLen <= 0) return [word];
|
||||||
const chars = Array.from(word);
|
const chars = Array.from(word);
|
||||||
|
|||||||
Reference in New Issue
Block a user