From 9620e63e3f7fecb50edb0907195b6fcc73314b5b Mon Sep 17 00:00:00 2001 From: Kushagra Srivastava <95534749+ItzCrazyKns@users.noreply.github.com> Date: Sat, 27 Dec 2025 13:29:43 +0530 Subject: [PATCH 1/2] Update src/components/MessageActions/Copy.tsx Co-authored-by: cubic-dev-ai[bot] <191113872+cubic-dev-ai[bot]@users.noreply.github.com> --- src/components/MessageActions/Copy.tsx | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/src/components/MessageActions/Copy.tsx b/src/components/MessageActions/Copy.tsx index f2509f4..7a3d518 100644 --- a/src/components/MessageActions/Copy.tsx +++ b/src/components/MessageActions/Copy.tsx @@ -21,15 +21,16 @@ const Copy = ({ ) as SourceBlock[]; const contentToCopy = `${initialMessage}${ - sources.length > 0 && - `\n\nCitations:\n${sources - .map((source) => source.data) - .flat() - .map( - (s, i) => - `[${i + 1}] ${s.metadata.url.startsWith('file_id://') ? s.metadata.fileName || 'Uploaded File' : s.metadata.url}`, - ) - .join(`\n`)}` + sources.length > 0 + ? `\n\nCitations:\n${sources + .map((source) => source.data) + .flat() + .map( + (s, i) => + `[${i + 1}] ${s.metadata.url.startsWith('file_id://') ? s.metadata.fileName || 'Uploaded File' : s.metadata.url}`, + ) + .join(`\n`)}` + : '' }`; navigator.clipboard.writeText(contentToCopy); From 7f3f88196412ddd3a2d28e0aff13063bcadf0431 Mon Sep 17 00:00:00 2001 From: Kushagra Srivastava <95534749+ItzCrazyKns@users.noreply.github.com> Date: Sat, 27 Dec 2025 13:32:20 +0530 Subject: [PATCH 2/2] Update src/components/Navbar.tsx Co-authored-by: cubic-dev-ai[bot] <191113872+cubic-dev-ai[bot]@users.noreply.github.com> --- src/components/Navbar.tsx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/components/Navbar.tsx b/src/components/Navbar.tsx index ae32685..6d3e77c 100644 --- a/src/components/Navbar.tsx +++ b/src/components/Navbar.tsx @@ -205,8 +205,9 @@ const Navbar = () => { useEffect(() => { if (sections.length > 0 && sections[0].message) { const newTitle = - sections[0].message.query.substring(0, 30) + '...' || - 'New Conversation'; + sections[0].message.query.length > 30 + ? `${sections[0].message.query.substring(0, 30).trim()}...` + : sections[0].message.query || 'New Conversation'; setTitle(newTitle); const newTimeAgo = formatTimeDifference(