{% extends "base.html" %} {% block title %}Sessions - cocomon{% endblock %} {% block content %} {% set total_sessions = projects|sum(attribute='session_count') %} {% set first_search_result = global_search_results.results[0] if global_search_results and global_search_results.results else none %} {% set selected_project = request.query_params.get('project') or (first_search_result.project_name if first_search_result else '') %} {% set selected_session = request.query_params.get('session') or (first_search_result.session_id if first_search_result else '') %} {% set selected_line = request.query_params.get('line') or (first_search_result.line_number if first_search_result else '') %} {% set selected_show_tools = first_search_result and (first_search_result.has_tools or first_search_result.has_file_edits or first_search_result.is_tool_only) %} {% set initial_project = selected_project or (recent_sessions[0].project_name if recent_sessions else '') %} {% set initial_session = selected_session or (recent_sessions[0].id if recent_sessions else '') %} {% if filter_projects %}
{% if global_search %} {% endif %}
{# Live Claude streaming is hidden for now. See docs/live-claude-streaming-concept.md. #}
{% if global_search %}
{{ global_search_results.total }} result{{ 's' if global_search_results.total != 1 else '' }} for "{{ global_search }}" {{ global_search_results.indexed_messages }} indexed messages {% if global_search_results.total > global_search_results.limit %} Showing first {{ global_search_results.limit }} {% endif %}
{% if global_search_results.results %} {% else %}
No messages matched.
{% endif %}
{% endif %}
{% if recent_sessions %}
Live Claude
{% else %}

No sessions found yet.

{% endif %}
{% else %}

No Projects Found

Make sure Claude Code has been used and projects exist in:
~/.claude/projects/

Check System Status
{% endif %} {% endblock %}