{#- The Coordinator page's live part (design 0023): refetched whole by app.js on the events it shows, held while an answer or the owner's text is being typed. Expects: c (CoordinatorPage), before (the page of turns, None: the newest), available, running, desktop_ok, terminal_on, terminal_open. -#} {% from "_question_item.html" import question_item %} {% from "_approval_item.html" import approval_item %} {%- macro hidden_csrf() -%}{%- endmacro %} {%- macro act(action, label, kind="") -%}
{%- endmacro %} {%- set r = c.view.run if c.view else none %} {%- set open = r is not none and r.is_open %} {%- set b = c.wake.budget %} {%- set keys = (c.started|map(attribute="task_key")|select|list) + (c.approvals|map(attribute="task_key")|list) %}Runs need a server started by relaybay serve or the program.
{% endif %} {% if r is none %}No coordinator yet. One coordinator for all projects: a run of your own claude without a card, in a folder of its own outside any git repository. It plans and drives the tasks on this board through relaybay's tools; it never approves and never answers your questions for you.
Start makes it ready without a turn and without tokens{% if c.folder %}, in {{ c.folder }} (made on Start, with a starter CLAUDE.md you may replace){% endif %}. Your text in its box, or the first wake by events on the board, is its first turn; between wakes no process runs.{% if c.folder_note %} {{ c.folder_note }}{% endif %}
Ended (run {{ r.id }}, ). Start makes a new run in {% if c.folder %}{{ c.folder }}{% else %}its folder{% endif %}; its CLAUDE.md, relaybay's memory and its open questions carry over. Events wait for it meanwhile.
With you {% if terminal_open or r.in_terminal %}in the Terminal tab{% else %}in the desktop app{% endif %}. Wakes and your text below wait until it is back with the program{% if not terminal_open %} (Back to the program){% endif %}.
{% elif r.status == "stopped" %}Stopped. Its turn was stopped and wakes wait: your next text in the box goes on.
{% elif c.wake.held and c.wake.held.startswith("over its stop budget") %}Wakes stop: {{ c.wake.held }}.
{% endif %}{{ r.cwd }}{% elif c.folder %}{{ c.folder }} (made on Start){% else %}-{% endif %}{% if c.folder_note and open %} {{ c.folder_note }}{% endif %}{{ c.refusal }}
{% endif %}Nothing: no open question of its own and no approval asked by a run it started.
{% endif %} {% if c.answered %}{% if w %}wake{% elif compact %}relaybay{% elif turn.sent_by_kind == "owner" %}the owner{% else %}{{ turn.sent_by }}{% endif %} {{ turn.state|replace("_", " ") }} turn {{ turn.seq }} · · {{ "{:,}".format(turn.tokens) }} tokens{% if turn.denials %} · {{ turn.denials }} denied{% endif %}
{{ w.count }} event{{ "" if w.count == 1 else "s" }}
/compact sent by relaybay: its context passed {{ "{:,}".format(c.settings.compact_at_tokens) }} tokens
{{ said }}
{% else %}{{ turn.prompt|truncate(600) }}
{% endif %} {% if not compact %}{{ turn.prompt }}compacted: {{ "{:,}".format(k[0]) }} -> {% if k[1] is not none %}{{ "{:,}".format(k[1]) }}{% else %}?{% endif %} tokens
{% endif %} {% if turn.result_md %}No result text.
{% else %}{{ "Runs now." if turn.started_at else "Waits to run." }}
{% endif %}No turn yet: your text or the first wake is its first turn.
{% else %}Its wakes, your words and what it decided show here once it runs.
{% endif %}| Card | Title | Status | Started | Tokens |
|---|---|---|---|---|
| {% if s.task_key %}{{ s.task_key }}{% else %}{{ s.kind }} on {{ s.project_slug }}{% endif %} | {{ (s.task_title or "") |truncate(80) }} | {{ s.status }} run {{ s.id }} | {{ "{:,}".format(s.tokens) }} |
None today. It starts runs with run_start on cards in plan or dev, within the slots, the budgets and its profile's daily cap.
{% endif %}No coordinator turns on a schedule and none it made. The owner adds them on Schedules; the coordinator adds one-off checks and reminders with schedule_add.
{% endif %}