Skip to content

fix: resolve external_dirs relative to HERMES_HOME instead of cwd (#9949)#9966

Open
Magicray1217 wants to merge 1 commit into
NousResearch:mainfrom
Magicray1217:fix/external-dirs-resolve
Open

fix: resolve external_dirs relative to HERMES_HOME instead of cwd (#9949)#9966
Magicray1217 wants to merge 1 commit into
NousResearch:mainfrom
Magicray1217:fix/external-dirs-resolve

Conversation

@Magicray1217

Copy link
Copy Markdown

Summary

Fixes #9949. Relative entries in \skills.external_dirs\ were resolved against the process working directory, causing them to silently fail when Hermes was launched from a different directory.

Root Cause

\Path(expanded).resolve()\ resolves relative paths against \os.getcwd(), not against \HERMES_HOME. A config like ../shared-skills\ works when launched from \HERMES_HOME\ but silently fails from any other directory.

Fix

Resolve relative paths against \get_hermes_home()\ instead of cwd. Absolute paths, tilde expansion, and env-var expansion are unchanged.

Changes

  • \�gent/skill_utils.py: Check \p.is_absolute(); if relative, resolve against \get_hermes_home()\

1 file changed, 9 insertions, 1 deletion.

…usResearch#9949)

Relative entries in skills.external_dirs were resolved against the
process cwd via Path.resolve(), making them silently fail when Hermes
was launched from a different directory.

Resolve relative paths against get_hermes_home() for consistent
behavior across CLI, gateway, and cron contexts. Absolute paths
and env-var/tilde expansion are unchanged.
@alt-glitch alt-glitch added type/bug Something isn't working P2 Medium — degraded but workaround exists comp/agent Core agent loop, run_agent.py, prompt builder tool/skills Skills system (list, view, manage) area/config Config system, migrations, profiles labels Apr 26, 2026
@alt-glitch

Copy link
Copy Markdown
Collaborator

Likely duplicate of #10017 — both fix relative path resolution in skills.external_dirs (this resolves against HERMES_HOME, #10017 resolves against config path). Fixes #9949.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/config Config system, migrations, profiles comp/agent Core agent loop, run_agent.py, prompt builder P2 Medium — degraded but workaround exists tool/skills Skills system (list, view, manage) type/bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

skills.external_dirs relative paths depend on process cwd instead of config location

2 participants