Ask agent modes frontend - #109
Draft
orca-gamedev wants to merge 1 commit into
Draft
Conversation
- Created AIModeSwitcher component with Ask and Agent mode toggle - Created AIChatPanel component with message history and streaming support - Integrated components into main IDE page with toggleable chat panel - Ask mode: Read-only AI that answers questions without modifying files - Agent mode: Full AI that can write and edit code (default) - UI adjusts dynamically when AI chat panel is shown - Mode is passed to backend API for proper tool filtering Co-authored-by: ege <ege@simplifine.com>
|
Cursor Agent can help with this pull request. Just |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Implement Frontend for Ask/Agent AI Modes
This PR introduces the user interface for the Ask/Agent AI modes, fulfilling the frontend requirements of issue ORC-53.
What does this PR do?
It provides users with the ability to switch between "Ask Mode" (read-only AI) and "Agent Mode" (full access AI) and interact with the AI through a dedicated chat panel.
Why is this change needed?
This feature allows users to control the AI's capabilities, ensuring that the AI can operate in a safe, read-only mode when desired, while still offering full functionality in Agent Mode. Agent Mode is set as the default as per requirements.
How does this PR address the problem?
AIModeSwitcherComponent: A new toggle switch is added to the IDE toolbar, allowing users to select between "Ask Mode" and "Agent Mode".AIChatPanelComponent: An integrated chat interface is provided, which visually adapts to the selected mode and passes the mode parameter to the backend API.page.tsxis updated to display the mode switcher and a toggleable AI chat panel, with dynamic layout adjustments to accommodate the chat panel.Linear Issue: ORC-53