From 18d12b6501a5c4f8a48d7e135ac7b9322cfd386f Mon Sep 17 00:00:00 2001 From: DanS Date: Fri, 20 Nov 2026 16:55:44 -0600 Subject: [PATCH] feat(mining): make the stuck-toggle caption state the ~30s self-timeout (F100) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit UX audit (deferred item): completing F100 the safe way. A true force-stop/abort is not buildable without live hung-state testing — App::stopMining()/stopPoolMining() no-op while a toggle is in flight (mining_toggle_in_progress_.exchange(true) early-returns), and resetting that atomic mid-operation would race the worker's completion callback (overlapping setgenerate, stale state). So instead of a button that would silently do nothing or risk corruption, the "Taking longer than expected…" caption now tells the user it will time out on its own within ~30s (the curl/RPC bound), which is the actual recovery. A generation-token + RPC-cancel abort is left for a later change that can be tested against a hung daemon. Build + tests green. Co-Authored-By: Claude Opus 4.8 --- src/util/i18n.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/util/i18n.cpp b/src/util/i18n.cpp index 94842a0..7944a27 100644 --- a/src/util/i18n.cpp +++ b/src/util/i18n.cpp @@ -2490,7 +2490,7 @@ void I18n::loadBuiltinEnglish() strings_["mining_est_weeks"] = "~%.1f weeks"; strings_["mining_ram_estimate"] = " RAM ~%.1f GB"; strings_["mining_cap_syncing"] = "Syncing \xE2\x80\x94 mining starts once the chain reaches the tip"; - strings_["mining_toggle_slow"] = "Taking longer than expected\xE2\x80\xA6"; + strings_["mining_toggle_slow"] = "Taking longer than expected\xE2\x80\xA6 it will time out on its own within about 30 seconds."; strings_["mining_chart_start"] = "Start"; strings_["mining_click"] = "Click"; strings_["mining_click_copy_address"] = "Click to copy address";