Self-hosted, Self-Improving, Federated Everything App — dev management, agent orchestration, persistent mind, digital twin, second brain, and creative pipeline from a single dashboard over Tailscale to port the user into the OS
JavaScript ai-agentsdashboarddeveloper-toolsdigital-twinquantified-selfsecond-brainself-hostedtailscale
fix(test): cosAgents.test.js uses $TMPDIR not hardcoded /private/tmp
Adam Eivy29c0240a877f
diff --git a/server/services/cosAgents.test.js b/server/services/cosAgents.test.jsindex 8d39108e90..869dfe197c 100644--- a/server/services/cosAgents.test.js+++ b/server/services/cosAgents.test.js@@ -3,7 +3,12 @@ import { mkdir, rm, writeFile } from 'fs/promises';import { join } from 'path';const mockCosState = vi.hoisted(() => ({- agentsDir: `/private/tmp/portos-cos-agents-test-${process.pid}`,+ // Use $TMPDIR (falls back to /tmp) rather than a hardcoded /private/tmp — the+ // latter exists on macOS (where /tmp symlinks to it) but not on Linux CI,+ // where `mkdir(recursive)` then tries to create `/private` at the root and+ // hits EACCES. process.env is safe to read inside a vi.hoisted factory+ // (imported bindings like `os.tmpdir` are not yet initialized at hoist time).+ agentsDir: `${process.env.TMPDIR || '/tmp'}/portos-cos-agents-test-${process.pid}`,state: null}));