feat: Add upload completion hint and increase notification debounce timer

Co-authored-by: aider (gemini/gemini-2.5-pro) <aider@aider.chat>
This commit is contained in:
2026-01-22 09:46:01 -07:00
parent bc1cff21c5
commit f7cce5ceec
2 changed files with 17 additions and 2 deletions

View File

@@ -164,6 +164,10 @@ function render(){
if (isComplete && hasSuccess) {
showBanner("All uploads complete.", "ok");
allCompleteBannerShown = true;
// Hint to backend that this batch is done, to trigger notification sooner
try {
fetch('/api/uploads/batch_complete_hint', { method: 'POST', headers: {'Content-Type': 'application/json'}, body: JSON.stringify({ session_id: sessionId }) }).catch(()=>{});
} catch {}
}
}
}