From 4f0ff4ff49d156cb409ed15d2c63a8ce90dc157b Mon Sep 17 00:00:00 2001 From: Nikhil Sonti Date: Fri, 9 Jan 2026 12:14:18 -0800 Subject: [PATCH] fix: disable klavis latency issue --- .../agent/entrypoints/options/layout/DashboardLayout.tsx | 2 +- apps/agent/entrypoints/sidepanel/index/useChatSession.ts | 9 ++++++--- apps/agent/wxt.config.ts | 1 + 3 files changed, 8 insertions(+), 4 deletions(-) diff --git a/apps/agent/entrypoints/options/layout/DashboardLayout.tsx b/apps/agent/entrypoints/options/layout/DashboardLayout.tsx index 8358ec33..15c71862 100644 --- a/apps/agent/entrypoints/options/layout/DashboardLayout.tsx +++ b/apps/agent/entrypoints/options/layout/DashboardLayout.tsx @@ -72,7 +72,7 @@ const navigationItems: NavItem[] = [ name: 'Product Survey', to: '/jtbd-agent', icon: MessageSquareHeart, - enabled: true, + enabled: false, }, { diff --git a/apps/agent/entrypoints/sidepanel/index/useChatSession.ts b/apps/agent/entrypoints/sidepanel/index/useChatSession.ts index d702fc53..3457f292 100644 --- a/apps/agent/entrypoints/sidepanel/index/useChatSession.ts +++ b/apps/agent/entrypoints/sidepanel/index/useChatSession.ts @@ -1,5 +1,6 @@ import { useChat } from '@ai-sdk/react' import { DefaultChatTransport, type UIMessage } from 'ai' +// biome-ignore lint/correctness/noUnusedImports: temporarily disabled for Klavis latency diagnosis import { compact } from 'es-toolkit/array' import { useEffect, useRef, useState } from 'react' import useDeepCompareEffect from 'use-deep-compare-effect' @@ -195,6 +196,7 @@ export const useChatSession = () => { const message = getLastMessageText(messages) const provider = selectedLlmProviderRef.current const currentMode = modeRef.current + // biome-ignore lint/correctness/noUnusedVariables: temporarily disabled for Klavis latency diagnosis const enabledMcpServers = enabledMcpServersRef.current const customMcpServers = enabledCustomServersRef.current @@ -240,9 +242,10 @@ export const useChatSession = () => { })) } - if (enabledMcpServers.length) { - browserContext.enabledMcpServers = compact(enabledMcpServers) - } + // TODO: Temporarily disabled to diagnose Klavis latency issues + // if (enabledMcpServers.length) { + // browserContext.enabledMcpServers = compact(enabledMcpServers) + // } if (customMcpServers.length) { browserContext.customMcpServers = customMcpServers as { diff --git a/apps/agent/wxt.config.ts b/apps/agent/wxt.config.ts index 646669b0..5bc0f924 100644 --- a/apps/agent/wxt.config.ts +++ b/apps/agent/wxt.config.ts @@ -13,6 +13,7 @@ export default defineConfig({ outDir: 'dist', modules: ['@wxt-dev/module-react'], manifest: { + name: 'Assistant', key: 'MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAvBDAaDRvv61NpBeLR8etBRw82lv9VJO3sz/mA26gDzWKtVuzW4DXCl8Zfj5oWmoXLTfv3aiTigUXo/LHOoGpSucEVroMmAc7cgu2KuQ1fZPpMvYa0npD/m4h89360q8Oz0oKKaZGS905IJ04M2IkF4CuU3YEHFJBWb+cUyK9H8YVugelYbPD0IVs63T1SkGbh/t/Tfb2DpkinduSO8+x26sKydm30SRt+iZ2+7Nolcdum3LExInUiX2Pgb65Jb+mVw8NqyTVJyCEp8uq0cSHomWFQirSJ80tsDhISp4btwaRKHrXqovQx9XHQv4hCd+3LuB830eUEVMUNuCO+OyPxQIDAQAB', update_url: 'https://cdn.browseros.com/extensions/update-manifest.xml', // update_url: 'https://cdn.browseros.com/extensions/update-manifest.alpha.xml',