yera.ui.sessions_sidebar
Render the global sidebar containing currently active sessions.
The sidebar consumes sessions already classified as running or waiting. It groups them by app, escapes persisted metadata, and preserves unavailable app IDs as fallback labels.
Symbols
live_sessions_sidebar_html
live_sessions_sidebar_html(
apps: Mapping[str, AppReference],
live_by_app: dict[str, list[SessionRecord]],
) → strRender running and waiting sessions grouped by app.
The fragment includes a stable live count used by shell navigation. When no sessions are active it renders an explicit empty state instead of an empty navigation region.
Parameters
apps
type: Mapping[str, AppReference]
Apps currently available on this server.
live_by_app
type: dict[str, list[SessionRecord]]
Running and waiting sessions grouped by app ID.
Returns
type: str
Escaped HTML for the complete Live sidebar fragment.