diff --git a/sweep_chat/components/App.tsx b/sweep_chat/components/App.tsx
index bd8821a792..e3fdec4aff 100644
--- a/sweep_chat/components/App.tsx
+++ b/sweep_chat/components/App.tsx
@@ -128,6 +128,7 @@ import Image from 'next/image'
// @ts-ignore
import * as Diff from 'diff'
import { ScrollArea } from './ui/scroll-area'
+import { ResizableHandle, ResizablePanel, ResizablePanelGroup } from './ui/resizable'
const Original = CodeMirrorMerge.Original
const Modified = CodeMirrorMerge.Modified
@@ -2207,670 +2208,674 @@ function App({ defaultMessageId = '' }: { defaultMessageId?: string }) {
onChange={(e) => setBaseBranch(e.target.value)}
/>
- {snippets.length && repoName ? (
-
Staged Changes
++ I'm currently processing and applying these patches, + and fixing any errors along the way. This may take a few + minutes. +
++ {commitToPR && userMentionedPullRequest + ? `Committing to ${userMentionedPullRequest.branch}` + : 'Creating pull request...'} +
+Staged Changes
-- I'm currently processing and applying these patches, - and fixing any errors along the way. This may take a few - minutes. -
-- {commitToPR && userMentionedPullRequest - ? `Committing to ${userMentionedPullRequest.branch}` - : 'Creating pull request...'} -
-
- {suggestion.filePath}{' '}
- {suggestion.state == 'pending' ? (
- '(pending)'
- ) : suggestion.state == 'processing' ? (
- '(processing)'
- ) : suggestion.state == 'error' ? (
- '(error)'
+ {suggestedChanges.map((suggestion, index) => (
+
+
+
+ {suggestion.filePath}{' '}
+ {suggestion.state == 'pending' ? (
+ '(pending)'
+ ) : suggestion.state == 'processing' ? (
+ '(processing)'
+ ) : suggestion.state == 'error' ? (
+ '(error)'
+ ) : (
+
+ )}
+
+
+ {suggestion.error && (
+
+
+
+
+
+
+
+
+ )}
+
+ setSuggestedChanges(
+ (suggestedChanges: StatefulCodeSuggestion[]) =>
+ suggestedChanges.filter((s) => s !== suggestion)
+ )
+ }
+ >
+
+ Remove
+
+
+
+ {reactCodeMirrors[index]}
+
+ ))}
+ {codeSuggestionsState == 'staging' && (
+ {
+ setCodeSuggestionsState('validating')
+ applySuggestions(suggestedChanges, commitToPR)
+ }}
+ >
+
+ Apply Changes
+
+ )}
+ {(codeSuggestionsState == 'validating' ||
+ codeSuggestionsState == 'creating') && (
+ <>
+ {commitToPR && userMentionedPullRequest ? (
+ <>>
) : (
-
+ <>
+ setPullRequestTitle(e.target.value)}
+ placeholder="Pull Request Title"
+ className="w-full mb-4 text-zinc-300"
+ disabled={
+ pullRequestTitle == null ||
+ isProcessingSuggestedChanges
+ }
+ />
+
- + List of current snippets in context. Run a custom search query + to find new snippets. +