diff --git a/.env b/.env index 0c79c2db..f2666d78 100644 --- a/.env +++ b/.env @@ -1,6 +1,6 @@ # Public PUBLIC_SERVICE_URL=https://botsharp.azurewebsites.net -PUBLIC_LIVECHAT_HOST=https://victorious-moss-007e11310.4.azurestaticapps.net +PUBLIC_LIVECHAT_HOST=https://victorious-moss-007e11310.4.azurestaticapps.net/ PUBLIC_LIVECHAT_ENTRY_ICON=images/users/bot.png PUBLIC_HOME_IMAGE=images/megamenu-img.png PUBLIC_HOME_SLOGAN=A central workspace for building, testing and evaluating your AI Agents. diff --git a/src/lib/common/LiveChatEntry.svelte b/src/lib/common/LiveChatEntry.svelte index 06fe99bf..705c9274 100644 --- a/src/lib/common/LiveChatEntry.svelte +++ b/src/lib/common/LiveChatEntry.svelte @@ -10,7 +10,7 @@ onMount(async () => { const agentSettings = await getSettingDetail("Agent"); - chatUrl = `${PUBLIC_LIVECHAT_HOST}/chat/${agentSettings.hostAgentId}`; + chatUrl = `${PUBLIC_LIVECHAT_HOST}chat/${agentSettings.hostAgentId}`; showChatIcon = true; }); diff --git a/src/routes/page/task/[taskId]/execution-flow.svelte b/src/routes/page/task/[taskId]/execution-flow.svelte index 7ec1ab7f..70e36cac 100644 --- a/src/routes/page/task/[taskId]/execution-flow.svelte +++ b/src/routes/page/task/[taskId]/execution-flow.svelte @@ -66,11 +66,6 @@ task = await getAgentTaskDetail(agentId, taskId); renderTaskNode(); - - const scrollElements = document.querySelectorAll('.scrollbar'); - scrollElements.forEach((item) => { - const scrollbar = OverlayScrollbars(item, options); - }); }); function renderTaskNode() { @@ -86,6 +81,11 @@ lastPosX = posX; lastPosY = posY; + + const scrollElements = document.querySelectorAll('.scrollbar'); + scrollElements.forEach((item) => { + const scrollbar = OverlayScrollbars(item, options); + }); } /** @param {import('$types').ConversationModel} conversation */