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

CI: tests/cli/test_cli_resume_command.py builds bare HermesCLI objects without .model; the
refactor read self.model before the stored-model check the contributor's code made first.
This commit is contained in:
kshitijk4poor
2026-09-09 12:33:27 +05:30
committed by kshitij
parent 32273b8118
commit 8077206073
+1 -1
View File
@@ -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: