test(acp): keep the extra folder inside the harness, not the user's home

This commit is contained in:
esengine committed 2026-10-18 07:20:39 -07:00
1 parent 6b8928a8c3
commit a1e16e94dc
2 files changed
+4 -2

No files matched your search

+2
View File
@@ -96,3 +96,5 @@ scripts/official-theme-art/__pycache__/
*.exe
*.exe~
/relayfake
/tools/acp-conformance/.scratch-*
+2 -2
View File
@@ -168,9 +168,9 @@ describe("additional workspace roots", () => {
it("accepts a folder outside the built-in write roots and lists it with the session", async () => {
const a = await agent();
const { mkdtempSync, realpathSync, rmSync } = await import("node:fs");
const { homedir } = await import("node:os");
const { join } = await import("node:path");
const extra = realpathSync(mkdtempSync(join(homedir(), ".acp-conformance-")));
// The system temp directory is itself a write root and would be refused as an overlap.
const extra = realpathSync(mkdtempSync(join(import.meta.dirname, ".scratch-")));
try {
const { sessionId } = await a.conn.newSession({ cwd: a.work, mcpServers: [], additionalDirectories: [extra] });
const listed = await a.conn.listSessions({ cwd: a.work });