{# Panel assembly — conditionally renders each panel only if its data is present. #} {% if state.update and state.update.update_available %}

Helix Context {{ state.update.latest_version }} is available. Installed version: {{ state.update.current_version }}.

{% endif %} {% if state.helix.availability == "unavailable" or not state.helix.running %}

Helix is stopped. Click Start to launch the server.

{% elif state.helix.availability == "degraded" %}

{{ state.helix.health_message or state.helix.next_action or "Helix is running with degraded health." }}

{% endif %} {% if state.helix.running %} {% if state.parties %} {% include "components/parties_panel.html" %} {% endif %} {% if state.participants %} {% include "components/participants_panel.html" %} {% endif %} {% if state.all_agents or state.disconnected_agents %} {% include "components/agents_panel.html" %} {% endif %} {% if state.models %} {% include "components/models_panel.html" %} {% endif %} {% if state.tools %} {% include "components/tools_panel.html" %} {% endif %} {% if state.genes %} {% include "components/genes_panel.html" %} {% endif %} {% if state.tokens %} {% include "components/tokens_panel.html" %} {% endif %} {% endif %} {# Diagnostics always renders — surfaces errors, orphans, and paths regardless of whether helix is up. #} {% include "components/diagnostics_panel.html" %}