fix: pairing admin satisfies write (#23125) (thanks @vignesh07)

This commit is contained in:
Vignesh Natarajan
2026-02-21 18:24:58 -08:00
committed by Vignesh
parent 426d97797d
commit 5b4409d5d0
4 changed files with 58 additions and 3 deletions

View File

@@ -985,8 +985,9 @@ describe("QmdMemoryManager", () => {
);
expect(mcporterCall).toBeDefined();
const spawnOpts = mcporterCall?.[2] as { env?: NodeJS.ProcessEnv } | undefined;
expect(spawnOpts?.env?.XDG_CONFIG_HOME).toContain("/agents/main/qmd/xdg-config");
expect(spawnOpts?.env?.XDG_CACHE_HOME).toContain("/agents/main/qmd/xdg-cache");
const normalizePath = (value?: string) => value?.replace(/\\/g, "/");
expect(normalizePath(spawnOpts?.env?.XDG_CONFIG_HOME)).toContain("/agents/main/qmd/xdg-config");
expect(normalizePath(spawnOpts?.env?.XDG_CACHE_HOME)).toContain("/agents/main/qmd/xdg-cache");
await manager.close();
});