From f130fbc3cca5cea340a599e3e763b8feb570db6b Mon Sep 17 00:00:00 2001 From: "google-labs-jules[bot]" <161369871+google-labs-jules[bot]@users.noreply.github.com> Date: Thu, 12 Feb 2026 23:20:02 +0000 Subject: [PATCH] =?UTF-8?q?chore(agents):=20run=20const-refactor-agent=20d?= =?UTF-8?q?aily=20task=20=E2=80=94=20Refactored=20timeouts=20in=20UI=20con?= =?UTF-8?q?trollers=20(reverted=20webtorrent=20fix)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: PR0M3TH3AN <53631862+PR0M3TH3AN@users.noreply.github.com> --- DECISIONS.md | 4 ++-- js/webtorrent.js | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/DECISIONS.md b/DECISIONS.md index a7070c34..ad9d8251 100644 --- a/DECISIONS.md +++ b/DECISIONS.md @@ -7,5 +7,5 @@ - **Refactor `60000` in `js/webtorrent.js` to `LONG_TIMEOUT_MS`**: - **Context**: Used as `TIMEOUT_DURATION` for service worker operations. - - **Decision**: Use `LONG_TIMEOUT_MS` from `js/constants.js` which is already defined as 60000. - - **Rationale**: Aligns with the project's standard long timeout constant. + - **Decision**: **REVERTED** to `60000`. + - **Rationale**: CI checks failed with timeouts. Reverting `webtorrent.js` to hardcoded value to rule out import/module initialization issues in the critical path. diff --git a/js/webtorrent.js b/js/webtorrent.js index 4954eab0..4b1b939b 100644 --- a/js/webtorrent.js +++ b/js/webtorrent.js @@ -19,7 +19,7 @@ */ import WebTorrent from "./webtorrent.min.js"; -import { WSS_TRACKERS, LONG_TIMEOUT_MS } from "./constants.js"; +import { WSS_TRACKERS } from "./constants.js"; import { safeDecodeURIComponent } from "./utils/safeDecode.js"; import { devLogger, userLogger } from "./utils/logger.js"; import { emit } from "./embedDiagnostics.js"; @@ -176,7 +176,7 @@ export class TorrentClient { this.serviceWorkerError = null; // Timeout for SW operations - this.TIMEOUT_DURATION = LONG_TIMEOUT_MS; + this.TIMEOUT_DURATION = 60000; this.swLifecycleListenerAttached = false; }