refactor: config auto-migration support floor at v12 + deprecated shim retirement
This commit is contained in:
@@ -4411,6 +4411,12 @@ class HermesCLI(CLIAgentSetupMixin, CLICommandsMixin, CLIBillingMixin):
|
||||
elif CLI_CONFIG["agent"].get("max_turns"):
|
||||
self.max_turns = CLI_CONFIG["agent"]["max_turns"]
|
||||
elif CLI_CONFIG.get("max_turns"): # Backwards compat: root-level max_turns
|
||||
# KEEP (evaluated for the v12 support-floor cleanup, July 2026):
|
||||
# no versioned config migration ever rewrote root-level max_turns
|
||||
# to agent.max_turns on disk — only load-time normalization
|
||||
# (_normalize_max_turns_config) folds it, and configs read through
|
||||
# other paths may bypass it. This fallback is therefore the only
|
||||
# safety net for configs that still carry the root key.
|
||||
self.max_turns = CLI_CONFIG["max_turns"]
|
||||
elif os.getenv("HERMES_MAX_ITERATIONS"):
|
||||
try:
|
||||
|
||||
Reference in New Issue
Block a user