diff --git a/relay/api/console.mjs b/relay/api/console.mjs index 06275da4..85a7c751 100644 --- a/relay/api/console.mjs +++ b/relay/api/console.mjs @@ -57,8 +57,10 @@ function parseNodeTail(tail) { } async function machines(sql) { // node logs get a longer tail: the connection-manager (peers) line is rare on a busy node + // the app log's tail is wide (400 KB, about three hours on a PC that logs every block) so a stuck update's lines do + // not scroll out of the card: on 4 October 2026 PC 1's "installing 0.3.4" left the 60 KB window after 30 minutes const rows = await sql(`SELECT DISTINCT ON (label) label, machine, run_id, received_at, left(lines, 300) AS head, - right(lines, CASE WHEN label LIKE 'nodelog-%' THEN 80000 WHEN label ~ '^(win|mac)-[0-9a-f]{8}$' THEN 60000 ELSE 20000 END) AS tail + right(lines, CASE WHEN label LIKE 'nodelog-%' THEN 80000 WHEN label ~ '^(win|mac)-[0-9a-f]{8}$' THEN 400000 ELSE 20000 END) AS tail FROM miner_logs WHERE received_at > now() - interval '36 hours' ORDER BY label, received_at DESC`); const groups = new Map(); for (const r of rows) {