diff --git a/apps/masterbots.ai/components/shared/account-details.tsx b/apps/masterbots.ai/components/shared/account-details.tsx
index 4d077572..ff802fe7 100644
--- a/apps/masterbots.ai/components/shared/account-details.tsx
+++ b/apps/masterbots.ai/components/shared/account-details.tsx
@@ -20,7 +20,7 @@ export default function AccountDetails({
diff --git a/apps/masterbots.ai/components/shared/search-input.tsx b/apps/masterbots.ai/components/shared/search-input.tsx
index da397451..6984ffe9 100644
--- a/apps/masterbots.ai/components/shared/search-input.tsx
+++ b/apps/masterbots.ai/components/shared/search-input.tsx
@@ -55,18 +55,16 @@ export function SearchInput() {
) : null}
-
{
setQuery(e.target.value)
}}
- placeholder="Search answers on all categories"
+ placeholder="Search any chat with any Bot"
type="text"
value={query || ''}
/>
{/* */}
-
{/* */}
diff --git a/apps/masterbots.ai/components/shared/thread-accordion.tsx b/apps/masterbots.ai/components/shared/thread-accordion.tsx
index e55d3b7f..148d2913 100644
--- a/apps/masterbots.ai/components/shared/thread-accordion.tsx
+++ b/apps/masterbots.ai/components/shared/thread-accordion.tsx
@@ -63,8 +63,10 @@ export function ThreadAccordion({
// Cleanup function to remove the query parameter on unmount
return () => {
const url = new URL(window.location.href)
- url.searchParams.delete('threadId')
- window.history.pushState({}, '', url.pathname + url.search)
+ if (url.searchParams.get('threadId') === thread.threadId) {
+ url.searchParams.delete('threadId')
+ window.history.pushState({}, '', url.pathname + url.search)
+ }
}
}, [thread.threadId, pathname])
diff --git a/apps/masterbots.ai/components/shared/thread-heading.tsx b/apps/masterbots.ai/components/shared/thread-heading.tsx
index 780942ac..960fb113 100644
--- a/apps/masterbots.ai/components/shared/thread-heading.tsx
+++ b/apps/masterbots.ai/components/shared/thread-heading.tsx
@@ -54,7 +54,9 @@ export function ThreadHeading({