fix(desktop): keep composer usable during reconnect (#45488)
* feat(cli): add --safe-mode troubleshooting flag Inspired by Claude Code v2.1.169 (June 2026): run Hermes with all customizations disabled to isolate setup problems from product bugs. --safe-mode implies --ignore-user-config and --ignore-rules, and additionally skips plugin discovery (hermes_cli/plugins.py) and MCP server loading (tools/mcp_tool.py) via the internal HERMES_SAFE_MODE env bridge. * fix(desktop): keep composer usable during reconnect
This commit is contained in:
@@ -2686,6 +2686,11 @@ def _load_mcp_config() -> Dict[str, dict]:
|
||||
"""
|
||||
try:
|
||||
from hermes_cli.config import load_config
|
||||
# Safe mode (--safe-mode / HERMES_SAFE_MODE=1): troubleshooting run
|
||||
# with all customizations disabled — no MCP servers connect.
|
||||
from utils import env_var_enabled as _env_enabled
|
||||
if _env_enabled("HERMES_SAFE_MODE"):
|
||||
return {}
|
||||
config = load_config()
|
||||
servers = config.get("mcp_servers")
|
||||
if not servers or not isinstance(servers, dict):
|
||||
|
||||
Reference in New Issue
Block a user