perf(test): stabilize e2e harness and reduce flaky gateway coverage

This commit is contained in:
Peter Steinberger
2026-02-13 17:31:58 +00:00
parent 2ab7715d16
commit fdfc34fa1f
25 changed files with 427 additions and 940 deletions

View File

@@ -81,6 +81,11 @@ export function createMediaAttachmentCache(attachments: MediaAttachment[]): Medi
const binaryCache = new Map<string, Promise<string | null>>();
const geminiProbeCache = new Map<string, Promise<boolean>>();
export function clearMediaUnderstandingBinaryCacheForTests(): void {
binaryCache.clear();
geminiProbeCache.clear();
}
function expandHomeDir(value: string): string {
if (!value.startsWith("~")) {
return value;