mirror of
https://github.com/NousResearch/hermes-agent.git
synced 2026-07-13 14:02:16 +00:00
refactor(cli): simplify safe-mode startup wiring
Since safe mode already landed on main via #45488, reduce this branch to cleanup: centralize env setup, remove duplicated comments, and tighten tests.
This commit is contained in:
parent
144457d801
commit
fc02b1c276
4 changed files with 103 additions and 106 deletions
|
|
@ -1283,10 +1283,6 @@ class PluginManager:
|
|||
"""
|
||||
if self._discovered and not force:
|
||||
return
|
||||
# Safe mode (--safe-mode / HERMES_SAFE_MODE=1): troubleshooting run
|
||||
# with all customizations disabled. Skip plugin discovery entirely so
|
||||
# no third-party code (hooks, tools, platforms) loads. Mark as
|
||||
# discovered so callers see a clean empty registry, not a retry loop.
|
||||
if env_var_enabled("HERMES_SAFE_MODE"):
|
||||
logger.info("HERMES_SAFE_MODE=1 — plugin discovery skipped")
|
||||
self._discovered = True
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue