fix(ux): mute Telegram badge color and format source tag as display name (fixes #442)

This commit is contained in:
Nathan Esquenazi
2026-04-14 19:06:33 +00:00
committed by Hermes Agent
parent f1590fdb07
commit 85d8aad0ae
2 changed files with 7 additions and 3 deletions

View File

@@ -578,6 +578,10 @@ function renderSessionListFromCache(){
}
// ── Render session items (extracted for group body use) ──
// Note: declared after the groups loop but available via function hoisting.
function _formatSourceTag(tag){
const names={telegram:'via Telegram',discord:'via Discord',slack:'via Slack',cli:'CLI',feishu:'via Feishu',weixin:'via WeChat'};
return names[tag]||tag;
}
function _renderOneSession(s){
const el=document.createElement('div');
const isActive=S.session&&s.session_id===S.session.session_id;
@@ -598,7 +602,7 @@ function renderSessionListFromCache(){
const tsMs=_sessionTimestampMs(s);
titleRow.appendChild(title);
const metaBits=[];
if(s.is_cli_session && s.source_tag) metaBits.push(s.source_tag);
if(s.is_cli_session && s.source_tag) metaBits.push(_formatSourceTag(s.source_tag));
if(s.message_count) metaBits.push(t('n_messages', s.message_count));
if(s.model) metaBits.push(String(s.model).split('/').pop());
sessionText.appendChild(titleRow);