Update src/ai-repo-commander.user.js
This commit is contained in:
parent
0b89645fb5
commit
539ed7d2f4
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue