-
Notifications
You must be signed in to change notification settings - Fork 2.6k
feat: implement AI Deep Research with real-time SSE support #5965
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
- Add aiDeepResearchTool.ts for handling AI deep research requests - Create AIDeepResearchService.ts for SSE communication with server - Add AIDeepResearchBlock.tsx UI component for displaying research progress - Update tool types and registration in shared/tools.ts - Add ai_deep_research to ClineSayTool interface - Add ai_deep_research_result to ClineSay types - Update presentAssistantMessage.ts to handle the new tool - Add UI integration in ChatRow.tsx - Add translation keys for AI Deep Research - Add comprehensive tests for aiDeepResearchTool This implementation provides real-time streaming of AI research progress including thinking, searching, reading, and analyzing states.
| // Simple parsing logic - in a real implementation, the server would send structured events | ||
| // For now, we'll use heuristics to determine the event type | ||
|
|
||
| if (content.includes("thinking") || content.includes("analyzing")) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The parseEventFromContent heuristic currently returns type 'thinking' for any content that includes 'analyzing'. This causes the onAnalyzing callback never to fire. Consider refining the logic to return 'analyzing' when appropriate so that UI events reflect the correct state.
| <div className="flex items-center gap-2 flex-1"> | ||
| {getStatusIcon()} | ||
| <span className="font-medium text-vscode-foreground"> | ||
| {t("aiDeepResearch.title", "AI Deep Research")} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Avoid using inline default fallback strings in translation calls. Remove the second argument (e.g. 'AI Deep Research' for t('aiDeepResearch.title', 'AI Deep Research')) so translations rely solely on the language files.
| {t("aiDeepResearch.title", "AI Deep Research")} | |
| {t("aiDeepResearch.title")} |
This comment was generated because it violated a code review rule: irule_C0ez7Rji6ANcGkkX.
|
Seems like issue #5962 was created accidentally |
Description
This PR implements the AI Deep Research feature with real-time Server-Sent Events (SSE) support as described in issue #5962.
What's Included
Core Implementation
Integration
UI/UX
Testing
How It Works
Server Configuration
The server URL can be configured via VSCode settings:
Screenshots
The implementation provides a clean, real-time UI that shows the AI's research process transparently to the user.
Closes #5962
Important
Implements AI Deep Research feature with real-time SSE support, including new tools, services, UI components, and integration with existing systems.
aiDeepResearchTool.tsfor handling AI deep research requests.AIDeepResearchService.tsfor SSE communication with the server.AIDeepResearchBlock.tsxfor displaying research progress.ai_deep_researchinshared/tools.tsand updatesClineSayToolinterface.presentAssistantMessage.tsandChatRow.tsx.aiDeepResearchToolinaiDeepResearchTool.test.ts.This description was created by
for 85d07ce. You can customize this summary. It will automatically update as commits are pushed.