{% extends "_base.html" %} {% block title %}Advisor · {{ project.name | humanize }} · Urika{% endblock %} {% block heading %}Advisor{% endblock %} {% block breadcrumb %} {% endblock %} {% block content %} {% if session_id %} {% if prior_session %}

Prior session ({{ prior_session.session_id }})

Loaded from sessions list. Started {{ prior_session.started }}; last updated {{ prior_session.updated }}. New messages below append to advisor history, not the original session — to continue THIS session's chat, run urika --resume {{ prior_session.session_id }} in the terminal.

{% for msg in prior_session_messages %}
{{ msg.role }}
{{ msg.content }}
{% endfor %} {% if not prior_session_messages %}

(Session has no messages.)

{% endif %}

{% else %}

Session {{ session_id }} not found — it may have been deleted or auto-pruned. Browse sessions.


{% endif %} {% endif %}
{% if history %} {% for entry in history %}
{{ entry.text }}
{% endfor %} {% else %}
No advisor conversation yet. Ask a question below to get started.
{% endif %}
{% if running_advisor %} {# A subprocess is already running for this project — point the user at the live stream instead of letting them spawn a duplicate. #}
View running advisor →
{% else %}
{% endif %} {% endblock %}