fix: disable klavis latency issue

This commit is contained in:
Nikhil Sonti
2026-01-09 12:14:18 -08:00
parent 997aeb0374
commit 4f0ff4ff49
3 changed files with 8 additions and 4 deletions

View File

@@ -72,7 +72,7 @@ const navigationItems: NavItem[] = [
name: 'Product Survey',
to: '/jtbd-agent',
icon: MessageSquareHeart,
enabled: true,
enabled: false,
},
{

View File

@@ -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 {

View File

@@ -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',