fix: pass HERMES_HOME to plugins Python bridge (#701)

Fixes #689

Co-authored-by: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
ekko
2026-05-14 10:14:54 +08:00
committed by GitHub
parent 7c87ba51da
commit 9fa3ad6ee8
@@ -3,6 +3,7 @@ import { existsSync, readFileSync } from 'fs'
import { dirname, join, resolve } from 'path'
import { homedir } from 'os'
import { promisify } from 'util'
import { getActiveProfileDir } from './hermes-profile'
const execFileAsync = promisify(execFile)
@@ -312,6 +313,7 @@ export async function listHermesPlugins(): Promise<HermesPluginsResponse> {
const env = {
...process.env,
HERMES_AGENT_ROOT_RESOLVED: agentRoot,
HERMES_HOME: getActiveProfileDir(),
}
const errors: string[] = []