fix: stabilize notes and reasoning replay

This commit is contained in:
Peter Steinberger
2026-01-11 04:36:16 +01:00
parent edb3651c32
commit eeae5ce7fd
5 changed files with 29 additions and 19 deletions

View File

@@ -639,8 +639,10 @@ describe("doctor", () => {
([message, title]) =>
title === "Sandbox" &&
typeof message === "string" &&
message.includes('agents.list (id "work") sandbox docker') &&
message.includes('scope resolves to "shared"'),
message
.replace(/\s+/g, " ")
.includes('agents.list (id "work") sandbox docker') &&
message.replace(/\s+/g, " ").includes('scope resolves to "shared"'),
),
).toBe(true);
});

View File

@@ -1,10 +1,7 @@
import fs from "node:fs";
import os from "node:os";
import path from "node:path";
import {
intro as clackIntro,
outro as clackOutro,
} from "@clack/prompts";
import { intro as clackIntro, outro as clackOutro } from "@clack/prompts";
import {
resolveAgentWorkspaceDir,
resolveDefaultAgentId,
@@ -39,8 +36,8 @@ import { runGatewayUpdate } from "../infra/update-runner.js";
import { runCommandWithTimeout } from "../process/exec.js";
import type { RuntimeEnv } from "../runtime.js";
import { defaultRuntime } from "../runtime.js";
import { stylePromptTitle } from "../terminal/prompt-style.js";
import { note } from "../terminal/note.js";
import { stylePromptTitle } from "../terminal/prompt-style.js";
import { sleep } from "../utils.js";
import {
DEFAULT_GATEWAY_DAEMON_RUNTIME,