From 84dc28cf7770ad48534876b525b63a970831bce8 Mon Sep 17 00:00:00 2001 From: Stanislaw Grams Date: Mon, 16 Mar 2026 23:41:18 +0100 Subject: [PATCH] [fix](trx-frontend-http): dismiss decode history overlay on connection error MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit decodeSource.onerror terminated the history worker but never called flushLiveBuffer(), leaving historySettled=false and the "Loading decode history…" overlay stuck on screen when trx-client breaks. Call flushLiveBuffer() in the error path so the overlay is dismissed and the powerHint connection-lost message is visible to the user. Co-authored-by: Claude Sonnet 4.6 Signed-off-by: Stanislaw Grams --- src/trx-client/trx-frontend/trx-frontend-http/assets/web/app.js | 1 + 1 file changed, 1 insertion(+) 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 6dfd413..73fa92d 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 @@ -7742,6 +7742,7 @@ function connectDecode() { decodeSource.close(); decodeConnected = false; terminateDecodeHistoryWorker(); + if (!historySettled) flushLiveBuffer(); if (wasClosed) { updateDecodeStatus("Decode not available (check client audio config)"); setTimeout(connectDecode, 10000);