diff --git a/frontend/src/panels/ChatPanel.tsx b/frontend/src/panels/ChatPanel.tsx index b12e565..56eb73b 100644 --- a/frontend/src/panels/ChatPanel.tsx +++ b/frontend/src/panels/ChatPanel.tsx @@ -115,7 +115,10 @@ export function ChatPanel() { planDone={streamPlanDone} /> )} - {showingStreaming && pendingShell && ( + {/* La validation shell persiste APRÈS la fin du flux : l'agent + termine son tour en attendant l'utilisateur, donc le streaming + s'arrête — la carte doit rester tant qu'on n'a pas tranché. */} + {pendingShell && ( ((set, get) => ({ set({ currentSessionId: id, messages, + // Une validation shell en attente appartient à la session quittée. ...(streaming ? {} - : { streamContent: "", streamStatus: "", streamNotice: null }), + : { streamContent: "", streamStatus: "", streamNotice: null, pendingShell: null }), }); // L'arborescence suit le projet de la session ouverte. await get().refreshFiles();