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:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user