From 4e407c5b3503a5bc9ab4069ef3402d8a37008880 Mon Sep 17 00:00:00 2001 From: openclaw-bot Date: Thu, 28 May 2026 21:42:54 +0000 Subject: [PATCH] fix(#1468): drop client-side "unknown" channel synthesis CHAN messages with no decoded channel name were being bucketed under a synthetic "unknown" channel on the client. Drop those rows so the channel sidebar reflects what was actually decoded upstream. --- public/channels.js | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/public/channels.js b/public/channels.js index 87864696..cc56ceae 100644 --- a/public/channels.js +++ b/public/channels.js @@ -1332,7 +1332,13 @@ var payload = m.data?.decoded?.payload; if (!payload) continue; - var channelName = payload.channel || 'unknown'; + // #1468: drop CHAN messages with no decoded channel name instead of + // synthesizing a literal "unknown" row that renders as a fake channel + // in the sidebar. Server-side (#1373/#1377) already filters these from + // /api/channels; the live WebSocket router was the remaining offender. + if (!payload.channel) continue; + + var channelName = payload.channel; // For live-decrypted user-added (PSK) channels, decryptLivePSKBatch // also stamps payload.channelKey ("user:") so we route the // message to the correct sidebar row and to the open chat view.