The sessions table in the CLI state.db does not have a 'profile' column -- selecting s.profile caused an OperationalError which was silently caught by 'except Exception: return []', making get_cli_sessions() always return empty. Fix: remove s.profile from the SELECT (it doesn't exist in the CLI schema) and derive the profile from get_active_profile_name() instead, which is the right value anyway since the CLI DB has no profile concept. Co-authored-by: Nathan Esquenazi <nesquena@gmail.com> |
||
|---|---|---|
| .. | ||
| __init__.py | ||
| auth.py | ||
| config.py | ||
| helpers.py | ||
| models.py | ||
| profiles.py | ||
| routes.py | ||
| streaming.py | ||
| upload.py | ||
| workspace.py | ||