additional fixes based on comments
This commit is contained in:
parent
4d3a117cb1
commit
fdaff5df5c
2 changed files with 3 additions and 4 deletions
|
|
@ -277,7 +277,6 @@ export function Chat() {
|
|||
useWebviewListener(
|
||||
"toolCallPartialOutput",
|
||||
async (data) => {
|
||||
console.log("toolCallPartialOutput", data);
|
||||
// Update tool call output in Redux store
|
||||
dispatch(
|
||||
updateToolCallOutput({
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue