Skip to content

The agent that grows with you

fix(cli): keep the no-stored-model early return ahead of the route read

kshitijk4poor8077206073ae
diff --git a/hermes_cli/cli_model_switch_mixin.py b/hermes_cli/cli_model_switch_mixin.py
index dd4381e32dc..e52cc58a5f3 100644
--- a/hermes_cli/cli_model_switch_mixin.py
+++ b/hermes_cli/cli_model_switch_mixin.py
@@ -367,7 +367,7 @@ class CLIModelSwitchMixin:
so the session still opens (the first turn surfaces the auth error).
"""
from cli import logger
- if getattr(self, "_explicit_model_override", False):
+ if not (session_meta or {}).get("model") or getattr(self, "_explicit_model_override", False):
return
route = stored_session_route(session_meta, current_model=self.model, current_provider=self.provider)
if route is None: