From f924db78edec7ecb39fe76f5776ce387c98ab12e Mon Sep 17 00:00:00 2001 From: claude-bot Date: Mon, 1 Jun 2026 17:29:19 +0900 Subject: [PATCH] fix(dashboard): preserve registered room aliases Stop overwriting the user-registered group/room name with the live Discord channel name during channel-meta refresh; keep the alias and log the divergence at debug instead. Co-Authored-By: Claude Opus 4 --- src/unified-dashboard.ts | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/src/unified-dashboard.ts b/src/unified-dashboard.ts index 3f581f2..1e27a2f 100644 --- a/src/unified-dashboard.ts +++ b/src/unified-dashboard.ts @@ -51,7 +51,7 @@ import { mergeClaudeDashboardAccounts, type UsageRow, } from './dashboard-usage-rows.js'; -import { getAllChats, getAllTasks, updateRegisteredGroupName } from './db.js'; +import { getAllChats, getAllTasks } from './db.js'; import type { GroupQueue } from './group-queue.js'; import { logger } from './logger.js'; import { isWatchCiTask } from './task-watch-status.js'; @@ -208,12 +208,10 @@ async function refreshChannelMeta( if (!meta.name) continue; const group = opts.roomBindings()[jid]; if (!group || group.name === meta.name) continue; - logger.info( + logger.debug( { jid, oldName: group.name, newName: meta.name }, - 'Syncing group name to Discord channel name', + 'Keeping registered group name distinct from Discord channel name', ); - updateRegisteredGroupName(jid, meta.name); - opts.onGroupNameSynced?.(jid, meta.name); } } catch (err) { logger.debug({ err }, 'Failed to refresh channel metadata');