release: v2.0.5 - Telegram Business Reporting & Core Resilience
This commit is contained in:
@@ -1693,6 +1693,19 @@
|
||||
card.className += ' report';
|
||||
card.innerHTML = `<div class="cph-head">🧭 CEO 보고서${ev.ok ? '' : ' (fallback)'}</div>
|
||||
<div class="markdown-body">${fmt(ev.report || '')}</div>`;
|
||||
} else if (ev.phase === 'telegram-mirror') {
|
||||
// Reflect whether the secretary actually mirrored the round
|
||||
// to Telegram. `ok === null` = the user hasn't opted in to
|
||||
// Telegram at all (no token / chat id / enabled). We render
|
||||
// that as a quiet line instead of an error to avoid nagging.
|
||||
if (ev.ok === true) {
|
||||
card.innerHTML = '<div class="cph-meta">📱 영숙이 텔레그램에 보고 완료</div>';
|
||||
} else if (ev.ok === false) {
|
||||
card.innerHTML = `<div class="cph-meta">⚠️ 텔레그램 보고 실패${ev.reason ? ` — ${escAttr(ev.reason)}` : ''}</div>`;
|
||||
} else {
|
||||
// null → not configured. Skip rendering entirely to keep chat clean.
|
||||
return;
|
||||
}
|
||||
} else if (ev.phase === 'session-saved') {
|
||||
card.innerHTML = `<div class="cph-meta">세션 저장 완료 — 클릭하여 열기</div>`;
|
||||
card.style.cursor = 'pointer';
|
||||
|
||||
Reference in New Issue
Block a user