additional fixes based on comments

This commit is contained in:
chezsmithy 2025-04-17 20:35:43 -07:00
parent 4d3a117cb1
commit fdaff5df5c
2 changed files with 3 additions and 4 deletions

View file

@ -277,7 +277,6 @@ export function Chat() {
useWebviewListener(
"toolCallPartialOutput",
async (data) => {
console.log("toolCallPartialOutput", data);
// Update tool call output in Redux store
dispatch(
updateToolCallOutput({

View file

@ -643,13 +643,13 @@ export const sessionSlice = createSlice({
) => {
// Find the tool call with the given ID and update its output
const { toolCallId, contextItems } = action.payload;
// Find the history item containing the tool call
const historyItem = state.history.find(
(item) =>
(item) =>
item.toolCallState?.toolCallId === toolCallId
);
if (historyItem && historyItem.toolCallState) {
historyItem.toolCallState.output = contextItems;
}