-
Notifications
You must be signed in to change notification settings - Fork 59
Implement checkpoint mechanism for AI copilot chat #992
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
Implement checkpoint mechanism for AI copilot chat #992
Conversation
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the You can disable this status message by setting the ✨ Finishing touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
9b0bf0d to
a65f7ec
Compare
- Capture workspace snapshots on user messages - Add revert button to restore conversation and files to previous state - Implement real-time notification when checkpoint is ready - Sync localStorage with state machine on restore
- Add experimental badge to AI chat interface - Fix plan approval trigger by moving FINISH_EXECUTION handler - Add missing LibraryProviderTool event handler
a65f7ec to
a5c250c
Compare
a5c250c to
0be430a
Compare
xlight05
left a comment
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.
Added some comments, lets address it in a seperate PR
| setMessages(uiMessages); | ||
|
|
||
| chatArray = chatArray.slice(0, updatedMessages.length); | ||
| localStorage.setItem(`chatArray-AIGenerationChat-${projectUuid}`, JSON.stringify(chatArray)); |
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.
do we need this anymore? I think we should remove this altogether
| } | ||
| } | ||
|
|
||
| async function getAllWorkspaceFiles(workspaceRoot: vscode.Uri, ignorePatterns: string[]): Promise<vscode.Uri[]> { |
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.
This implementatin may have to change based on ballerina worksapces concept
Add checkpoint and restore system that allows users to revert the AI copilot conversation and workspace to previous states.
Changes
Resolves wso2/product-ballerina-integrator#1982
Related to wso2/product-ballerina-integrator#780