From fa1253bae54fd69c9dbe0b7ef50671dafaf7fea1 Mon Sep 17 00:00:00 2001 From: Dallin Romney Date: Mon, 30 Jun 2025 17:28:02 -0700 Subject: [PATCH] agent papercuts + tool message updates - cleanup --- core/tsconfig.json | 7 +------ .../mainInput/belowMainInput/ContextItemsPeek.tsx | 2 +- gui/src/pages/gui/ToolCallDiv/ToolCall.tsx | 2 +- gui/src/redux/slices/sessionSlice.ts | 3 +-- gui/src/redux/thunks/streamResponseAfterToolCall.ts | 2 +- 5 files changed, 5 insertions(+), 11 deletions(-) diff --git a/core/tsconfig.json b/core/tsconfig.json index 273476b9d..69966e2de 100644 --- a/core/tsconfig.json +++ b/core/tsconfig.json @@ -18,11 +18,6 @@ "noEmitOnError": false, "types": ["jest", "node"] }, - "include": [ - "./**/*.ts", - "./**/*.js", - "./**/*.d.ts", - "../gui/src/redux/util/constructMessages.ts" - ], + "include": ["./**/*.ts", "./**/*.js", "./**/*.d.ts"], "exclude": ["dist"] } diff --git a/gui/src/components/mainInput/belowMainInput/ContextItemsPeek.tsx b/gui/src/components/mainInput/belowMainInput/ContextItemsPeek.tsx index 31c392bf1..a77e2fc98 100644 --- a/gui/src/components/mainInput/belowMainInput/ContextItemsPeek.tsx +++ b/gui/src/components/mainInput/belowMainInput/ContextItemsPeek.tsx @@ -121,7 +121,7 @@ export function ContextItemsPeekItem({ data-testid="context-items-peek-item" > {getContextItemIcon()} - + {contextItem.name}
-
+
{!!toolCallState.output && ( )} diff --git a/gui/src/redux/slices/sessionSlice.ts b/gui/src/redux/slices/sessionSlice.ts index 20ea7ca86..ee8e153a2 100644 --- a/gui/src/redux/slices/sessionSlice.ts +++ b/gui/src/redux/slices/sessionSlice.ts @@ -34,9 +34,8 @@ import { findCurrentToolCall, findToolCall, findToolOutput } from "../util"; // We need this to handle reorderings (e.g. a mid-array deletion) of the messages array. // The proper fix is adding a UUID to all chat messages, but this is the temp workaround. -export type ChatMessageWithId = ChatMessage & { id: string }; export type ChatHistoryItemWithMessageId = ChatHistoryItem & { - message: ChatMessageWithId; + message: ChatMessage & { id: string }; }; type SessionState = { diff --git a/gui/src/redux/thunks/streamResponseAfterToolCall.ts b/gui/src/redux/thunks/streamResponseAfterToolCall.ts index 8caf6625a..010304557 100644 --- a/gui/src/redux/thunks/streamResponseAfterToolCall.ts +++ b/gui/src/redux/thunks/streamResponseAfterToolCall.ts @@ -30,7 +30,7 @@ export const streamResponseAfterToolCall = createAsyncThunk< await new Promise((resolve) => setTimeout(resolve, 0)); - // TODO paralell tool calls - dispatch one tool message per tool call + // TODO parallel tool calls - dispatch one tool message per tool call const newMessage: ChatMessage = { role: "tool", content: renderContextItems(toolOutput),