in chatgpt web do not show the force complete hint if the prompt has not been sent

This commit is contained in:
Mic 2025-10-01 23:38:00 +02:00
parent 08b66b0495
commit 3e8924350e

View file

@ -582,11 +582,16 @@ async function doProceed(message, customText = ''){
curr_model_warn.insertAdjacentElement('afterend', btn_retry); curr_model_warn.insertAdjacentElement('afterend', btn_retry);
break; break;
} }
const forcecompletionHintTimeout = setTimeout(() => { let forcecompletionHintTimeout;
document.getElementById('mzta-forcecomp-hint').style.display = 'block'; if(send_result == 0){
}, delay_wait_completion); forcecompletionHintTimeout = setTimeout(() => {
document.getElementById('mzta-forcecomp-hint').style.display = 'block';
}, delay_wait_completion);
}
await chatgpt_isIdle(); await chatgpt_isIdle();
clearTimeout(forcecompletionHintTimeout); if(send_result == 0){
clearTimeout(forcecompletionHintTimeout);
}
operation_done(); operation_done();
} }
@ -598,6 +603,13 @@ function doRetry(){
doProceed(current_message); doProceed(current_message);
} }
async function showForceCompletionHint(){
const forcecompletionHintTimeout = setTimeout(() => {
document.getElementById('mzta-forcecomp-hint').style.display = 'block';
}, delay_wait_completion);
await chatgpt_isIdle();
clearTimeout(forcecompletionHintTimeout);
}
function removeTagsAndReturnHTML(rootElement, removeTags, preserveTags) { function removeTagsAndReturnHTML(rootElement, removeTags, preserveTags) {
const fragment = document.createDocumentFragment(); const fragment = document.createDocumentFragment();