{% import "components.html" as c with context %}
{{ c.avatar(agent.name, small=true) }}{{ agent.name }}{{ c.dot(agent.status) }}
{% if agent.working_on %}{{ t.text("activity.working_on", {"target": agent.working_on, "since": agent.working_since_ms|clock}) }}{% else %}{{ t.text("status." ~ agent.status) }}{% endif %}
{% for item in activity %}
{% if loop.first and agent.status == "busy" %}{% endif %}{{ item.time }}{{ item.text }}
{% endfor %} {% if not activity %}
{{ t.text("activity.none") }}
{% endif %}
{# a runtime that does not price its tokens leaves the cost out #} {% if usage %}
{{ t.text("activity.usage_today", {"input": usage.input, "output": usage.output, "cached": usage.cached}) }}{% if usage.cost %} ยท ${{ usage.cost }}{% endif %}
{% endif %}