The agent that grows with you
Python aiai-agentai-agentsanthropicchatgptclaudeclaude-codecodexhermeshermes-agentllmnous-researchopenai
fix(config-remote): PM asks whether it is its own runtime only in a remote deployment; the TUI raw-config read keeps main's patchable backend lookups
Ben Barclayafb8c9a1a740
diff --git a/pm/plugins_state.py b/pm/plugins_state.pyindex 278a12b2ee5..da237834275 100644--- a/pm/plugins_state.py+++ b/pm/plugins_state.py@@ -26,11 +26,21 @@ def _selection_readers(config_path: Path):"""``(version(path), read(path))`` for a home's selection. PM's dependency runtime reads theLOCAL file it publishes to and compare-and-swaps (``pm.publication``): it has neither theremote config backend's client nor the plane credential, so a remote deployment never fails- PM closed there. Every other process reads through the selected config backend."""+ PM closed there. Every other process reads through the selected config backend; a file+ deployment never asks whether this is PM's runtime (the selector is all it needs)."""+ import os+from hermes_cli import config_backend- from pm.runtime import is_runtime- if not is_runtime():+ if os.environ.get(config_backend.BACKEND_ENV, "").strip().lower() in ("", "file"):+ return config_backend.config_version, config_backend.read_config_doc+ from pm.package import InstallError+ from pm.runtime import is_runtime+ try:+ in_runtime = is_runtime()+ except InstallError: # an application process whose packaged PM runtime is damaged: not PM's runtime+ in_runtime = False+ if not in_runtime:return config_backend.config_version, config_backend.read_config_docbackend, home = config_backend.local_file_layer(config_path)return (lambda _path: backend.version(home)), (lambda _path: backend.read_user_doc(home))