mirror of
https://github.com/esengine/DeepSeek-Reasonix.git
synced 2026-11-07 10:45:59 -10:00
test(acp): keep the extra folder inside the harness, not the user's home
This commit is contained in:
1 parent
6b8928a8c3
commit
a1e16e94dc
2 files changed
+4
-2
No files matched your search
@@ -96,3 +96,5 @@ scripts/official-theme-art/__pycache__/
|
||||
*.exe
|
||||
*.exe~
|
||||
/relayfake
|
||||
|
||||
/tools/acp-conformance/.scratch-*
|
||||
@@ -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 });
|
||||
|
||||
Reference in new issue
Block a user