The agent that grows with you
Python aiai-agentai-agentsanthropicchatgptclaudeclaude-codecodexhermeshermes-agentllmnous-researchopenai
test(desktop): e2e sandboxes use canonical paths so the gateway sweep finds its own backend
unsupportedpastels9efe00981d0d
diff --git a/apps/desktop/e2e/fixtures.ts b/apps/desktop/e2e/fixtures.tsindex fd1a73a244d..3ce674c2ba6 100644--- a/apps/desktop/e2e/fixtures.ts+++ b/apps/desktop/e2e/fixtures.ts@@ -111,7 +111,9 @@ export interface Sandbox {}export function createSandbox(prefix: string): Sandbox {- const root = fs.mkdtempSync(path.join(os.tmpdir(), `hermes-e2e-${prefix}-${Math.random()}`))+ // Canonical path: the backend resolves HERMES_HOME, so a symlinked tmpdir (macOS /var, a+ // symlinked scratch dir) would otherwise make every HERMES_HOME match against the sandbox miss.+ const root = fs.realpathSync(fs.mkdtempSync(path.join(os.tmpdir(), `hermes-e2e-${prefix}-${Math.random()}`)))const hermesHome = path.join(root, 'hermes-home')const userDataDir = path.join(root, 'electron-user-data')diff --git a/apps/desktop/e2e/legacy-desktop-history.spec.ts b/apps/desktop/e2e/legacy-desktop-history.spec.tsindex 64eee30fa7d..46b1f745928 100644--- a/apps/desktop/e2e/legacy-desktop-history.spec.ts+++ b/apps/desktop/e2e/legacy-desktop-history.spec.ts@@ -252,12 +252,12 @@ seed(home / 'profiles' / 'developer' / 'state.db', [{'id': sys.argv[2], 'source'await mock.close()spawnSync(python, ['-c', `import psutil,sys,os-home=sys.argv[1]+home=os.path.realpath(sys.argv[1])owned=[]for p in psutil.process_iter():if p.pid==os.getpid(): continuetry:- if p.environ().get('HERMES_HOME')==home:+ if os.path.realpath(p.environ().get('HERMES_HOME') or os.sep)==home:owned.append(p);p.terminate()except (psutil.NoSuchProcess,psutil.AccessDenied): pass_,alive=psutil.wait_procs(owned,timeout=5)