A DAG file without a type key runs with the base config's type, but the
visual editor read the type from the file text alone. With type: chain in
the base config, the canvas drew no edges and edits wrote depends into the
chain.
The editor, the run view, the step hashes, the run diff, and the reference
completion now take the type of the built DAG when the file has no type
key. The run spec response carries the run's DAG type for the run view.
Fixes#4113
An invite created in the Add worker dialog did not appear in the
Invites list on System Status until a manual refresh, a delete, or a
worker joining with it.
The dialog now asks the invites list to read again after each invite
it creates, so the new invite shows behind the dialog right away.
Spec 108 names this read among the times the list reads the invites.
Adds step 3 of the Add worker dialog and the Add worker button in
System status's Workers section. Step 3 creates a single-use or reusable
invite and shows the command that starts a worker with it, on Linux,
Docker, or Kubernetes, with labels and the server's own image tag. Each
invite created in the dialog keeps its own command and waits up to 60
seconds for its worker to join, then offers a diagnostic command.
The form holds still while an invite is being created, a single status
region announces progress and results, and the commands match what the
MCP add_worker action produces for the same input.
Part of #4292 (T18 part 2).
Adds the first two steps of the Add worker dialog. Step 1 reads
whether every coordinator can accept workers from other hosts and, when
one cannot, names the setting to change: a flag, a variable, a config
file, or for Kubernetes the coordinator workload. Step 2 asks for the
address workers will use. It is filled once when the dialog opens and
never rewritten; when a coordinator later reports a different address,
the dialog offers it. On Kubernetes, the admin says whether workers run
inside or outside the cluster.
The address follows the same host:port rule as the API and the CLI.
Readiness is read again when the window regains focus, and step 3
stays locked until every coordinator is ready.
Part of #4292 (T18 part 1).
An admin can remove a worker that joined with an invite from System
status's Workers section. Remove asks whether to let the worker's runs
finish or stop them now, and can also delete the invite it joined
with. Stop runs now stops the runs of a worker already being removed.
Each dialog captures the worker, its certificate, and its runs when it
opens and acts only on that capture. A later refresh can only lock the
dialog, never change what it offers, and the dialog stays open until
its requests settle. Workers on TLS or plaintext have no Remove.
Part of #4292 (T19).
System status's Workers section lists the worker invites on this
server: each invite's kind, uses, creator, and expiry, with a live
countdown. An admin can delete an invite after confirming it. A worker
that joins with an invite updates the list. Invite reads and deletes
share one store that survives navigation and is cleared on every sign
in or sign out, so a list from one session never shows in another.
On a remote node the list is read only and points to that node's own
UI. Refusals show page text chosen from the API's stable reasons, never
the server's message, except for coordinator refusals, which are quoted
as detail.
Part of #4292 (T19).
An admin can create, list and delete worker invites, ask whether the
coordinators can accept workers from other hosts, and remove a worker
that joined with an invite through the REST API:
- GET and POST /api/v1/workers/invites
- DELETE /api/v1/workers/invites/{inviteId}
- GET /api/v1/workers/join-readiness
- POST /api/v1/workers/removals
Every route needs the admin role, checked before input validation, and
none of them is forwarded to a remote node. An invite address must be
host:port with a hostname or an IP literal as host; dagu worker invite
checks the same rule. A refusal carries a stable reason in
details.reason so a client can explain it without matching messages.
/workers reports each worker's connection, certificate and invite, and
leaves out workers whose certificate is revoked.
Part of #4292 (T16).
dagu worker invite creates an invite on the coordinators and prints
the command that starts a worker with it. Before creating anything it
asks each coordinator whether it can accept workers from other hosts,
and when one cannot it says which setting to change, naming the one
that wins: a flag, a variable, or a config file.
--address must be a host:port that a worker on another host can
reach. When the command cannot print its output, it tries to delete
the invite it created and reports either outcome.
Part of #4292 (T17).
A client on h2c now sends why in the dagu-peer-h2c-reason call
metadata: peer.insecure, no TLS source, or tls failed on the network
path. The reason comes from the same transport choice that picked h2c.
The coordinator records each worker's connection (certificate, tls, or
plaintext with the reason) from the call that carries its heartbeat,
and keeps it in the shared heartbeat record. A plaintext call with no
known reason reads as older version. GET /api/v1/workers returns it,
and the System status workers list shows it as a neutral line with the
one change that moves the worker to TLS.
Each coordinator also keeps, in memory, the hosts other than workers
that called it over h2c in the last 10 minutes, at most 64 and with no
timer. GET /api/v1/services/coordinator returns them and System status
lists them under each coordinator, so admins can see which processes
still use plaintext and why.
Part of #4292 (T9).