From bc929b6c1bc662c08d515c824414e8323bd17f27 Mon Sep 17 00:00:00 2001 From: tusharmagar Date: Thu, 2 Apr 2026 09:43:03 +0530 Subject: [PATCH] Update run title inference logic to set title only when it is not already defined. removes bug where the chat session name updates to the latest user message while generating, before switching back to the original name. --- apps/x/apps/renderer/src/App.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/x/apps/renderer/src/App.tsx b/apps/x/apps/renderer/src/App.tsx index e6682145..8292a196 100644 --- a/apps/x/apps/renderer/src/App.tsx +++ b/apps/x/apps/renderer/src/App.tsx @@ -1863,7 +1863,7 @@ function App() { const inferredTitle = inferRunTitleFromMessage(msg.content) if (inferredTitle) { setRuns(prev => prev.map(run => ( - run.id === event.runId && run.title !== inferredTitle + run.id === event.runId && !run.title ? { ...run, title: inferredTitle } : run )))