From 539ed7d2f4eb1561366893456ecd6920c2ddfa0e Mon Sep 17 00:00:00 2001 From: rob Date: Fri, 10 Oct 2025 14:06:29 +0000 Subject: [PATCH] Update src/ai-repo-commander.user.js --- src/ai-repo-commander.user.js | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/src/ai-repo-commander.user.js b/src/ai-repo-commander.user.js index a6a9d52..9b65a98 100644 --- a/src/ai-repo-commander.user.js +++ b/src/ai-repo-commander.user.js @@ -35,7 +35,9 @@ // Timing & API // If you see "debouncing → error" in logs (assistant streams very slowly), - // try bumping DEBOUNCE_DELAY by +1000–2000 and/or SETTLE_CHECK_MS by +400–800. DEBOUNCE_DELAY: 3000, + // try bumping DEBOUNCE_DELAY by +1000–2000 and/or SETTLE_CHECK_MS by +400–800. + + DEBOUNCE_DELAY: 3000, MAX_RETRIES: 2, VERSION: '1.6.2', API_TIMEOUT_MS: 60000, @@ -62,7 +64,8 @@ // Streaming-complete hardening // SETTLE_CHECK_MS is the "stable window" after last text change; - // SETTLE_POLL_MS is how often we re-check the code block. REQUIRE_TERMINATOR: true, + // SETTLE_POLL_MS is how often we re-check the code block. + REQUIRE_TERMINATOR: true, SETTLE_CHECK_MS: 800, SETTLE_POLL_MS: 200, @@ -820,7 +823,10 @@ const el = getVisibleInputCandidate(); const btn = findSendButton(); const btnReady = !btn || (!btn.disabled && btn.getAttribute('aria-disabled') !== 'true'); - const busy = document.querySelector('[aria-busy="true"], [data-state="loading"], [disabled]'); + const busy = document.querySelector( + '[aria-busy="true"], [data-state="loading"], ' + + 'button[disabled], button[aria-disabled="true"]' + ); if (el && btnReady && !busy) return true; await ExecutionManager.delay(pollMs); }