From e992e1ff290abc77909f1b60c4d21e7030dad730 Mon Sep 17 00:00:00 2001 From: Nate Date: Fri, 29 Nov 2024 16:09:55 -0800 Subject: [PATCH] fix key err --- core/config/load.ts | 4 ++-- core/tools/definitions/exactSearch.ts | 5 +++-- gui/src/pages/gui/Chat.tsx | 12 +++++++----- gui/src/pages/gui/ToolCallDiv/ThreadDiv.tsx | 5 +++-- gui/src/pages/gui/ToolCallDiv/index.tsx | 4 ++-- 5 files changed, 17 insertions(+), 13 deletions(-) diff --git a/core/config/load.ts b/core/config/load.ts index 5c21a0656..1e16913e5 100644 --- a/core/config/load.ts +++ b/core/config/load.ts @@ -505,8 +505,8 @@ async function intermediateToFinalConfig( mcpConnection.modifyConfig(continueConfig), new Promise((_, reject) => setTimeout( - () => reject(new Error("MCP connection timed out after 1000ms")), - 1000, + () => reject(new Error("MCP connection timed out after 2000ms")), + 2000, ), ), ]).catch((error) => { diff --git a/core/tools/definitions/exactSearch.ts b/core/tools/definitions/exactSearch.ts index 99d243f91..8358b55da 100644 --- a/core/tools/definitions/exactSearch.ts +++ b/core/tools/definitions/exactSearch.ts @@ -8,14 +8,15 @@ export const exactSearchTool: Tool = { readonly: true, function: { name: BuiltInToolNames.ExactSearch, - description: "Perform an exact search over the repository using ripgrep", + description: "Perform an exact search over the repository using ripgrep.", parameters: { type: "object", required: ["query"], properties: { query: { type: "string", - description: "The search query to use", + description: + "The search query to use. Must be a valid ripgrep regex expression, escaped where needed", }, }, }, diff --git a/gui/src/pages/gui/Chat.tsx b/gui/src/pages/gui/Chat.tsx index b65e571b2..f297e71da 100644 --- a/gui/src/pages/gui/Chat.tsx +++ b/gui/src/pages/gui/Chat.tsx @@ -371,11 +371,13 @@ export function Chat() {
{item.message.toolCalls?.map((toolCall, i) => { return ( - +
+ +
); })}
diff --git a/gui/src/pages/gui/ToolCallDiv/ThreadDiv.tsx b/gui/src/pages/gui/ToolCallDiv/ThreadDiv.tsx index e02e1b28d..e02eaca8f 100644 --- a/gui/src/pages/gui/ToolCallDiv/ThreadDiv.tsx +++ b/gui/src/pages/gui/ToolCallDiv/ThreadDiv.tsx @@ -9,7 +9,7 @@ interface ThreadDivProps { icon: React.ReactNode; toolCall: ToolCall; toolCallState: ToolCallState; - key: number; + reactKey: string; } const Container = styled.div` @@ -51,7 +51,7 @@ export function ThreadDiv(props: ThreadDivProps) { } return ( - +
{props.icon} diff --git a/gui/src/pages/gui/ToolCallDiv/index.tsx b/gui/src/pages/gui/ToolCallDiv/index.tsx index 5b21b8fc5..e1745c459 100644 --- a/gui/src/pages/gui/ToolCallDiv/index.tsx +++ b/gui/src/pages/gui/ToolCallDiv/index.tsx @@ -12,7 +12,7 @@ import { ThreadDiv } from "./ThreadDiv"; interface ToolCallDivProps { toolCall: ToolCall; toolCallState: ToolCallState; - key: number; + reactKey: string; } export function ToolCallDiv(props: ToolCallDivProps) { @@ -32,7 +32,7 @@ export function ToolCallDiv(props: ToolCallDivProps) { return (