{% extends "base.html" %} {% block title %}{{ task.task_name if task else 'Task' }} - Galangal Hub{% endblock %} {% block content %}

{{ task.task_name }}

{{ task.task_description }}

{{ 'Active' if active else 'Completed' }} {{ task.task_type }}
Stage
{{ task.stage }}
Attempt
{{ task.attempt }}
Started
{{ task.started_at[:16] }}
{% if task.github_issue %}
GitHub Issue
#{{ task.github_issue }}
{% endif %}
{% if active and task.awaiting_approval and not (agent and agent.current_prompt) %}
Awaiting Approval
{% endif %}
{% if active and agent and agent.current_prompt %}

Active Prompt

{% set prompt = agent.current_prompt %} {% set agent_id = agent.agent.agent_id %} {% set task_name = task.task_name %} {% include "partials/prompt_card.html" %}
{% endif %} {% if active and agent and agent.artifacts %}

Artifacts

{% for name, content in agent.artifacts.items() %}
{{ name }} {{ content|length }} chars
{{ content }}
{% endfor %}
{% endif %} {% if task.stage_durations %}

Stage Durations

{% for stage, duration in task.stage_durations.items() %}
{{ stage }}
{{ (duration / 60)|round(1) }}m
{% endfor %}
{% endif %} {% if task.last_failure %}

Last Failure

{{ task.last_failure }}
{% endif %}

Event Log

{% for event in events %}
{{ event.timestamp[:19] }} {{ event.event_type }} {% if event.data %} {{ event.data }} {% endif %}
{% else %}
No events recorded.
{% endfor %}
{% endblock %}