The agent that grows with you
Python aiai-agentai-agentsanthropicchatgptclaudeclaude-codecodexhermeshermes-agentllmnous-researchopenai
docs(cli): say why the runtime snapshot deep-copies reasoning_config explicitly
teknium19429f106f75c
diff --git a/hermes_cli/cli_model_switch_mixin.py b/hermes_cli/cli_model_switch_mixin.pyindex 3bf94e06f4e..d84cdc073bb 100644--- a/hermes_cli/cli_model_switch_mixin.py+++ b/hermes_cli/cli_model_switch_mixin.py@@ -517,6 +517,7 @@ class CLIModelSwitchMixin:def _snapshot_model_runtime(self) -> dict:"""Capture current CLI and agent model runtime for one-turn restore."""agent = getattr(self, "agent", None)+ # ``reasoning_config`` is a mutable dict: deepcopy it so a later in-place edit cannot alias the snapshot.return {**_runtime_fields(self),"reasoning_config": copy.deepcopy(getattr(self, "reasoning_config", None)),