From 577af64909527a3bbebbcbe6ba776a53f5cc5d4e Mon Sep 17 00:00:00 2001 From: Dallin Romney Date: Wed, 30 Apr 2025 00:01:01 -0700 Subject: [PATCH] apply state fixes --- extensions/vscode/src/commands.ts | 2 +- gui/src/components/AcceptRejectAllButtons.tsx | 27 +++++++++++-------- .../components/mainInput/EditModeDetails.tsx | 27 ++++++++++++------- .../sections/errors/ErrorsSectionTooltip.tsx | 2 +- gui/src/hooks/useSetup.ts | 4 +-- gui/src/pages/gui/ToolCallDiv/EditFile.tsx | 26 ++++++------------ gui/src/redux/slices/editModeState.ts | 21 ++++++++++----- gui/src/redux/thunks/editMode.ts | 11 +++----- 8 files changed, 64 insertions(+), 56 deletions(-) diff --git a/extensions/vscode/src/commands.ts b/extensions/vscode/src/commands.ts index af9c8a232..5241dc1dc 100644 --- a/extensions/vscode/src/commands.ts +++ b/extensions/vscode/src/commands.ts @@ -282,7 +282,7 @@ async function processDiff( }); } - await sidebar.webviewProtocol.request("exitEditMode", undefined); + // await sidebar.webviewProtocol.request("exitEditMode", undefined); // Save the file await ide.saveFile(newOrCurrentUri); diff --git a/gui/src/components/AcceptRejectAllButtons.tsx b/gui/src/components/AcceptRejectAllButtons.tsx index c85d97373..6f6147ad2 100644 --- a/gui/src/components/AcceptRejectAllButtons.tsx +++ b/gui/src/components/AcceptRejectAllButtons.tsx @@ -40,17 +40,20 @@ export default function AcceptRejectAllButtons({ } return ( -
+