From d55c0d499242edaa9f7c5f29efff4e7c7b4cdd43 Mon Sep 17 00:00:00 2001 From: nathaninline Date: Tue, 21 Jul 2026 22:14:53 +0200 Subject: [PATCH] =?UTF-8?q?fix:=20bouton=20stop=20cass=C3=A9=20=E2=80=94?= =?UTF-8?q?=20la=20fonction=20stopGen=20avait=20ete=20supprimee=20par=20er?= =?UTF-8?q?reur=20lors=20de=20la=20refonte=20de=20send()?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ui/index.html | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ui/index.html b/ui/index.html index 64dd374..be37410 100644 --- a/ui/index.html +++ b/ui/index.html @@ -1512,6 +1512,9 @@ async function connectStream(){ await new Promise(res=>setTimeout(res, 600)); } } +// Interrompt la génération en cours côté serveur (la goroutine détachée est +// annulée). Le serveur émet alors turn_done → le bouton repasse en « send ». +function stopGen(){ jfetch('/api/chat/stop',{method:'POST'}).catch(()=>{}); toast('stop'); } // Envoi RÉSILIENT : sur le tunnel E2E, un aller-retour peut échouer transitoirement // alors qu'il a en fait abouti (la génération démarre). On réessaie, et un 409 // (« déjà en cours ») = succès (c'est notre envoi qui est passé). On ne montre une