v0.2.11 : fix stall reasoning (prompt agent court) + outil edit + filet de sécurité nudge/drop_reasoning

This commit is contained in:
nathaninline committed 2026-06-26 16:42:33 +02:00
1 parent 4c8aafa898
commit 7a145258d3
5 files changed
+56 -34

No files matched your search

+8
View File
@@ -954,6 +954,14 @@ async function send(){
if(tu.name==='mem_add' || tu.name==='mem_edit') loadMem();
}
}
if(d.drop_reasoning){
// Le modèle a « pensé sans agir » : on relance le tour. Le
// raisonnement mort-né est retiré pour ne pas afficher un double bloc.
if(reasonEl){
const i=turnCollapsibles.indexOf(reasonEl); if(i>=0) turnCollapsibles.splice(i,1);
reasonEl.remove(); reasonEl=null; fullReason='';
}
}
if(d.reasoning_content){
// Start a fresh buffer per bubble — otherwise a reasoning block that
// follows a tool call re-renders ALL previously accumulated reasoning