diff --git a/src/components/chat/tools/configs/toolConfigs.ts b/src/components/chat/tools/configs/toolConfigs.ts index 01499f6..39934b4 100644 --- a/src/components/chat/tools/configs/toolConfigs.ts +++ b/src/components/chat/tools/configs/toolConfigs.ts @@ -439,8 +439,8 @@ export const TOOL_CONFIGS: Record = { // If content is an array (typical for agent responses with multiple text blocks) if (Array.isArray(result.content)) { const textContent = result.content - .filter(item => item.type === 'text') - .map(item => item.text) + .filter((item: any) => item.type === 'text') + .map((item: any) => item.text) .join('\n\n'); return { content: textContent || 'No response text' }; } diff --git a/src/components/sidebar/types/types.ts b/src/components/sidebar/types/types.ts index ba5b38c..fcf563d 100644 --- a/src/components/sidebar/types/types.ts +++ b/src/components/sidebar/types/types.ts @@ -1,5 +1,5 @@ import type React from 'react'; -import type { LoadingProgress, Project, ProjectSession, SessionProvider } from '../../types/app'; +import type { LoadingProgress, Project, ProjectSession, SessionProvider } from '../../../types/app'; export type ProjectSortOrder = 'name' | 'date';