Route: {{ job.approval_route or job.route or 'not chosen yet' }}
Caller: {{ caller or '—' }}
Mode: {{ job.request.mode }}
Tier: {{ job.tier or '—' }}
Directory: {{ job.request.cwd }}
Reason: {{ job.reason or '—' }}
{% if job.error_code or job.error_message %}
Error: {% if job.error_code %}{{ job.error_code }}{% if job.error_message %}: {% endif %}{% endif %}{{ job.error_message or '' }}
{% endif %}
{% if job.status == 'awaiting_approval' %}
Awaiting approval of route {{ job.approval_route or '—' }} until {{ local(job.approval_deadline) }}
Deny
{% endif %}
{% if job.status in ['queued', 'awaiting_approval', 'running'] %}
Cancel
{% endif %}
{% if terminal %}
Rating
{% if last_rating %}
Rated: {{ last_rating.value }}{% if last_rating.should_tier %}, should be tier {{ last_rating.should_tier }}{% endif %}{% if last_rating.by %}, by {{ last_rating.by }}{% endif %}
{% endif %}
{% endif %}
Attempts
{{ totals.attempts }}
Tokens
{% if totals.tokens_in is none and totals.tokens_out is none %}—{% else %}{{ totals.tokens_in if totals.tokens_in is not none else '—' }} / {{ totals.tokens_out if totals.tokens_out is not none else '—' }}{% endif %}
Cost
{{ '$%.4f' % totals.cost_usd if totals.cost_usd is not none else '—' }}
Duration
{{ totals.duration_s|age }}
{% if live %}
Live output
Attempt #{{ live.n }} on route {{ live.route }}, running for {{ live.elapsed_s|age }}{% if live.last_signal %}; last activity: {{ live.last_signal }} {{ live.last_signal_age_s|age }} ago{% endif %}
{% if live.tail %}
{{ live.tail }}
{% endif %}
{% endif %}
Prompt
{{ prompt }}
{% if prompt_truncated %}
Showing the first 2000 of {{ prompt_chars }} characters.
{% endif %}
Final text
{{ job.text or '—' }}
Attempts
{% if attempts %}
{% for attempt in attempts %}
#{{ attempt.n }} {{ attempt.route }}
Pool
{{ attempt.pool }}
Started
{{ local(attempt.started_at) }}
Finished
{{ local(attempt.finished_at) }}
Outcome
{{ attempt.outcome or '—' }}
Duration
{{ attempt.duration_s|age }}
Tokens
{% if attempt.tokens_in is none and attempt.tokens_out is none %}—{% else %}{{ attempt.tokens_in if attempt.tokens_in is not none else '—' }} / {{ attempt.tokens_out if attempt.tokens_out is not none else '—' }}{% endif %}
Cost
{{ '$%.4f' % attempt.cost_usd if attempt.cost_usd is not none else '—' }}
{% if attempt.log_tail %}
Output tail
{{ attempt.log_tail }}
{% endif %}
{% endfor %}
{% if not attempts | selectattr("log_tail") | list %}
No output.
{% endif %}
{% else %}
No attempts yet.
{% endif %}
Changed files
{% if 'changes_unknown' in job.violations %}
Could not measure the changed files.
{% endif %}
{% if job.changed_files is none and job.repo_root is none %}
Not tracked: the directory is outside git.
{% elif job.changed_files is none %}
Not measured yet.
{% elif job.changed_files %}
{% for path in job.changed_files %}
{{ path }}
{% endfor %}
{% elif 'changes_unknown' not in job.violations %}