Fix path-root flaky tests and restore status emoji defaults (#22274)

This commit is contained in:
Tyler Yust
2026-02-20 15:45:33 -08:00
committed by GitHub
parent fe57bea088
commit 2dba150c16
5 changed files with 34 additions and 16 deletions

View File

@@ -24,7 +24,9 @@ async function withAudioFixture(
await fs.writeFile(tmpPath, Buffer.from("RIFF"));
const ctx: MsgContext = { MediaPath: tmpPath, MediaType: "audio/wav" };
const media = normalizeMediaAttachments(ctx);
const cache = createMediaAttachmentCache(media);
const cache = createMediaAttachmentCache(media, {
localPathRoots: [os.tmpdir()],
});
try {
await run({ ctx, media, cache });

View File

@@ -17,7 +17,9 @@ describe("runCapability deepgram provider options", () => {
await fs.writeFile(tmpPath, Buffer.from("RIFF"));
const ctx: MsgContext = { MediaPath: tmpPath, MediaType: "audio/wav" };
const media = normalizeMediaAttachments(ctx);
const cache = createMediaAttachmentCache(media);
const cache = createMediaAttachmentCache(media, {
localPathRoots: [os.tmpdir()],
});
let seenQuery: Record<string, string | number | boolean> | undefined;
let seenBaseUrl: string | undefined;