{# Diagnostics panel — paths, PID, last error, orphan warning. Renders regardless of helix state so the user always has debugging context. Keep it at the bottom so it doesn't distract when things are working normally. #}

Diagnostics

{% if state.helix.availability %}
Status: {{ state.helix.availability }} {% if state.helix.next_action %} — {{ state.helix.next_action }} {% endif %}
{% endif %} {% if state.helix.last_error %}
Last {{ state.helix.last_error.operation }} error: {{ state.helix.last_error.message }}
{% endif %} {% if state.helix.orphan_pid %}
Orphan helix detected — PID {{ state.helix.orphan_pid }} is listening on port {{ state.helix.port }} but is not managed by this launcher. Click Start to adopt it.
{% endif %}
{% if state.helix.running and state.helix.pid %}
PID
{{ state.helix.pid }}
{% endif %} {% if state.helix.paths %}
State
{{ state.helix.paths.state_file }}
Helix log
{{ state.helix.paths.helix_log }}
{% endif %}