Skip to content

fix: replace user-facing hardcoded ~/.hermes paths with display_hermes_home()#3623

Merged
teknium1 merged 1 commit intomainfrom
hermes/hermes-e6f1d362
Mar 29, 2026
Merged

fix: replace user-facing hardcoded ~/.hermes paths with display_hermes_home()#3623
teknium1 merged 1 commit intomainfrom
hermes/hermes-e6f1d362

Conversation

@teknium1
Copy link
Copy Markdown
Contributor

Summary

Second prep PR for profiles. User-facing messages (diagnostics, setup guidance, error troubleshooting) now show the correct HERMES_HOME path instead of hardcoded ~/.hermes. When profiles land, coder doctor will correctly show ~/.hermes/profiles/coder/.env instead of ~/.hermes/.env.

New helper

display_hermes_home() in hermes_constants.py — returns a user-friendly ~/... string:

  • Default: ~/.hermes
  • Profile: ~/.hermes/profiles/coder
  • Custom: /opt/hermes-custom (absolute, no ~/)

Changes

12 files, ~30 user-facing string replacements:

File Replacements What
hermes_cli/doctor.py 24 check_ok/warn/fail/info diagnostic messages
cli.py 4 Configuration guidance, plugin/skin paths
run_agent.py 2 Anthropic 401 troubleshooting messages
hermes_cli/callbacks.py 2 Secret storage confirmations
hermes_cli/mcp_config.py 2 Save confirmations
hermes_cli/skills_hub.py 3 Skill install paths, GITHUB_TOKEN hint
hermes_cli/gateway.py 1 Log tail guidance
hermes_cli/setup.py 3 Setup wizard guidance
hermes_cli/auth.py 1 Auth state display
tools/terminal_tool.py 3 Error/sandbox path messages
hermes_cli/webhook.py 2 Setup hint paths

Comments and docstrings left unchanged — only user-visible output affected.

Backward compat

For default ~/.hermes users: display_hermes_home() returns ~/.hermes — identical output. Zero visible change.

Test plan

6645 passed, 201 skipped (1 pre-existing flaky unrelated to this PR). All modified files pass py_compile.

@teknium1 teknium1 force-pushed the hermes/hermes-e6f1d362 branch 2 times, most recently from 433a846 to 8f3b870 Compare March 29, 2026 00:50
…s_home()

Prep for profiles: user-facing messages now use display_hermes_home() so
diagnostic output shows the correct path for each profile.

New helper: display_hermes_home() in hermes_constants.py
12 files swept, ~30 user-facing string replacements.
Includes dynamic TTS schema description.
@teknium1 teknium1 force-pushed the hermes/hermes-e6f1d362 branch from 8f3b870 to 8a88688 Compare March 29, 2026 06:39
@github-actions
Copy link
Copy Markdown

⚠️ Supply Chain Risk Detected

This PR contains patterns commonly associated with supply chain attacks. This does not mean the PR is malicious — but these patterns require careful human review before merging.

⚠️ WARNING: Install hook files modified

These files can execute code during package installation or interpreter startup.

Files:

hermes_cli/setup.py

Automated scan triggered by supply-chain-audit. If this is a false positive, a maintainer can approve after manual review.

@teknium1 teknium1 merged commit 9f01244 into main Mar 29, 2026
4 of 5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

1 participant