Skip to content

The agent that grows with you

fix(config): prompt attachments read the profile config through the backend seam

Ben Barclay5bf1bba9fb28
diff --git a/tui_gateway/prompt_attachments.py b/tui_gateway/prompt_attachments.py
index 710a03536f1..d8b8e4e7b0e 100644
--- a/tui_gateway/prompt_attachments.py
+++ b/tui_gateway/prompt_attachments.py
@@ -132,9 +132,10 @@ def _profile_attachments_storage(profile_home) -> str:
import contextlib as _contextlib
home = Path(profile_home) if profile_home else _hermes_home
with _contextlib.suppress(Exception):
+ from hermes_cli.config_backend import config_exists
from hermes_cli.config_effective import load_user_config_effective
cfg_path = home / "config.yaml"
- if cfg_path.exists():
+ if config_exists(cfg_path):
attachments_cfg = load_user_config_effective(cfg_path).get("attachments")
if isinstance(attachments_cfg, dict):
return str(attachments_cfg.get("storage") or "").strip().lower()