diff --git a/app/pages/agent/[id]/topic/[topicId].vue b/app/pages/agent/[id]/topic/[topicId].vue
index 60e86bf..6bda28a 100644
--- a/app/pages/agent/[id]/topic/[topicId].vue
+++ b/app/pages/agent/[id]/topic/[topicId].vue
@@ -11,6 +11,7 @@ const inputValue = ref('');
const route = useRoute();
const { sendMessage, regenerateMessage } = useChat(route.params.id as string);
const { getAgent } = useAgents();
+const { open: sidebarOpen, openSidebar } = useSidebar();
const { providers, allModels } = useModels();
const agent = getAgent(route.params.id as string);
@@ -104,6 +105,12 @@ const topic = computed(() => {
};
});
+watch(() => topic.value?.name, (newTopicName) => {
+ if (newTopicName !== undefined) {
+ useHead({ title: `${newTopicName} | Veridian` });
+ }
+}, { immediate: true });
+
const submitMessage = async (message: string, model: ModelWithProvider | null) => {
if (!model) {
console.error('No model selected');
@@ -271,24 +278,38 @@ onUnmounted(() => {
-
-