mirror of
https://github.com/NousResearch/hermes-agent.git
synced 2026-05-23 05:31:23 +00:00
fix(kanban): use sys.executable -m hermes for dispatcher spawn
In NixOS container mode, hermes is installed at a store path with no symlink on PATH (e.g. /data/current-package/bin/hermes). The kanban dispatcher spawns workers via _default_spawn() using a bare 'hermes' subprocess call, which fails with 'hermes executable not found on PATH' in container mode. Fix by calling sys.executable -m hermes instead, which is guaranteed to resolve to the same Python interpreter running the dispatcher.
This commit is contained in:
parent
5aa755e4e6
commit
d3db6724dd
1 changed files with 1 additions and 1 deletions
|
|
@ -3805,7 +3805,7 @@ def _default_spawn(
|
||||||
env["HERMES_PROFILE"] = profile_arg
|
env["HERMES_PROFILE"] = profile_arg
|
||||||
|
|
||||||
cmd = [
|
cmd = [
|
||||||
"hermes",
|
sys.executable, "-m", "hermes",
|
||||||
"-p", profile_arg,
|
"-p", profile_arg,
|
||||||
# Auto-load the kanban-worker skill so every dispatched worker
|
# Auto-load the kanban-worker skill so every dispatched worker
|
||||||
# has the pattern library (good summary/metadata shapes, retry
|
# has the pattern library (good summary/metadata shapes, retry
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue