0xIbra
78ac1bba43
fix(cli): respect HERMES_HOME in all remaining hardcoded ~/.hermes paths
Several files resolved paths via Path.home() / ".hermes" or
os.path.expanduser("~/.hermes/..."), bypassing the HERMES_HOME
environment variable. This broke isolation when running multiple
Hermes instances with distinct HERMES_HOME directories.
Replace all hardcoded paths with calls to get_hermes_home() from
hermes_cli.config, consistent with the rest of the codebase.
Files fixed:
- tools/process_registry.py (processes.json)
- gateway/pairing.py (pairing/)
- gateway/sticker_cache.py (sticker_cache.json)
- gateway/channel_directory.py (channel_directory.json, sessions.json)
- gateway/config.py (gateway.json, config.yaml, sessions_dir)
- gateway/mirror.py (sessions/)
- gateway/hooks.py (hooks/)
- gateway/platforms/base.py (image_cache/, audio_cache/, document_cache/)
- gateway/platforms/whatsapp.py (whatsapp/session)
- gateway/delivery.py (cron/output)
- agent/auxiliary_client.py (auth.json)
- agent/prompt_builder.py (SOUL.md)
- cli.py (config.yaml, images/, pastes/, history)
- run_agent.py (logs/)
- tools/environments/base.py (sandboxes/)
- tools/environments/modal.py (modal_snapshots.json)
- tools/environments/singularity.py (singularity_snapshots.json)
- tools/tts_tool.py (audio_cache)
- hermes_cli/status.py (cron/jobs.json, sessions.json)
- hermes_cli/gateway.py (logs/, whatsapp session)
- hermes_cli/main.py (whatsapp/session)
Tests updated to use HERMES_HOME env var instead of patching Path.home().
Closes #892
2026-03-11 07:50:22 +01:00
..
2026-03-09 15:36:27 -07:00
2026-03-10 17:10:01 -07:00
2026-02-28 14:28:04 +03:00
2026-03-11 07:50:22 +01:00
2026-03-10 06:48:37 -07:00
2026-03-04 19:35:01 -08:00
2026-03-08 17:45:38 -07:00
2026-03-10 00:35:14 -07:00
2026-03-11 07:50:22 +01:00
2025-10-01 23:29:25 +00:00
2026-03-02 04:34:21 -08:00
2026-03-07 18:55:01 -05:00
2026-03-10 15:22:44 -07:00
2026-03-07 21:00:12 -05:00
2026-03-06 05:50:12 -08:00
2026-03-01 19:59:24 -08:00
2026-03-02 17:18:15 +11:00
2026-03-08 18:06:47 -07:00
2026-03-06 05:50:12 -08:00
2026-03-10 06:05:02 -07:00
2026-03-10 17:31:00 -07:00
2026-03-08 06:13:12 -07:00
2026-03-08 18:29:09 -07:00
2026-03-08 20:22:33 -07:00
2026-03-08 18:30:27 -07:00
2026-03-09 21:01:40 -07:00
2026-03-01 19:59:24 -08:00
2026-03-08 21:44:48 -07:00
2026-02-28 21:47:51 -08:00
2026-03-09 23:59:26 -07:00
2026-03-01 03:12:37 -05:00
2026-03-06 14:50:57 -08:00
2026-03-10 17:12:34 -07:00
2026-03-05 18:46:30 -08:00
2026-03-07 10:14:19 -08:00
2026-03-08 17:45:45 -07:00
2026-02-28 21:47:51 -08:00
2026-03-10 06:35:28 -07:00
2026-03-10 17:12:34 -07:00
2026-03-03 18:23:40 +05:30
2026-02-26 13:54:20 +03:00
2026-03-09 23:27:19 -07:00
2026-02-28 21:28:28 +03:00
2026-03-07 21:05:40 -08:00