feat(#1990): surface pending recv() message count in get_loose_ends

This commit is contained in:
damocles 2026-06-26 00:25:28 +02:00 committed by mara
commit 49db9d6e1c
5 changed files with 44 additions and 0 deletions

View file

@ -891,6 +891,12 @@ window.marked = marked;
el('span', { class: 'inbox-ts' }, 'scheduled ' + fmtAge(t.age_seconds || 0) + ' ago'),
el('div', { class: 'inbox-body' }, t.message || ''),
);
} else if (t.kind === 'pending_messages') {
li.append(
el('span', { class: 'inbox-from' }, '✉ inbox'), ' ',
el('span', { class: 'inbox-sep' }, (t.count || 0) + ' pending message(s)'), ' ',
el('span', { class: 'inbox-ts' }, 'drain with recv'),
);
} else {
li.append(el('span', { class: 'inbox-body' }, JSON.stringify(t)));
}