From 13aceb35c611045c8d68f268394bccf8cf56889c Mon Sep 17 00:00:00 2001 From: Stan Grams Date: Sat, 4 Apr 2026 12:22:35 +0200 Subject: [PATCH] [fix](trx-frontend-http): stop reloading shared decode history on rig switch The decode SSE stream and history endpoint are unfiltered and carry data for all rigs. Reconnecting them on rig switch needlessly tore down the entire decode state and re-fetched identical data. Also removed the FT8/FT4/FT2/WSPR history table clearing since that data is shared. Co-Authored-By: Claude Opus 4.6 (1M context) Signed-off-by: Stan Grams --- .../trx-frontend/trx-frontend-http/assets/web/app.js | 8 -------- 1 file changed, 8 deletions(-) diff --git a/src/trx-client/trx-frontend/trx-frontend-http/assets/web/app.js b/src/trx-client/trx-frontend/trx-frontend-http/assets/web/app.js index 194a688..525f8e5 100644 --- a/src/trx-client/trx-frontend/trx-frontend-http/assets/web/app.js +++ b/src/trx-client/trx-frontend/trx-frontend-http/assets/web/app.js @@ -1994,12 +1994,6 @@ function resetDecoderStateOnRigSwitch() { const el = document.getElementById(id); if (el) el.textContent = "--"; }); - - // FT8/FT4/WSPR history tables - if (typeof window.ft8ClearHistory === "function") window.ft8ClearHistory(); - if (typeof window.ft4ClearHistory === "function") window.ft4ClearHistory(); - if (typeof window.ft2ClearHistory === "function") window.ft2ClearHistory(); - if (typeof window.wsprClearHistory === "function") window.wsprClearHistory(); } function resetWfmStereoIndicator() { @@ -3856,8 +3850,6 @@ async function switchRigFromSelect(selectEl) { if (typeof setSchedulerRig === "function") setSchedulerRig(lastActiveRigId); if (typeof setBackgroundDecodeRig === "function") setBackgroundDecodeRig(lastActiveRigId); if (typeof bmFetch === "function") bmFetch(document.getElementById("bm-category-filter")?.value || ""); - // Reconnect decode stream so history + live messages filter to the new rig. - connectDecode(); // Switch this session's rig and reconnect SSE to the new rig's // state channel. try {