Explorar o código

Merge branch 'main' into add-canceling-indexing

Kevin van Dijk hai 4 meses
pai
achega
d5e58fccd8

+ 5 - 0
.changeset/long-dancers-type.md

@@ -0,0 +1,5 @@
+---
+"kilo-code": patch
+---
+
+The "See New Changes" button is now hidden when checkpoints are disabled.

+ 3 - 1
webview-ui/src/components/chat/ChatRow.tsx

@@ -65,6 +65,7 @@ interface ChatRowProps {
 	onBatchFileResponse?: (response: { [key: string]: boolean }) => void
 	highlighted?: boolean // kilocode_change: Add highlighted prop
 	onChatReset?: () => void // kilocode_change
+	enableCheckpoints?: boolean // kilocode_change
 	onFollowUpUnmount?: () => void
 	isFollowUpAnswered?: boolean
 	editable?: boolean
@@ -126,6 +127,7 @@ export const ChatRowContent = ({
 	onFollowUpUnmount,
 	onBatchFileResponse,
 	onChatReset, // kilocode_change
+	enableCheckpoints, // kilocode_change
 	isFollowUpAnswered,
 	editable,
 }: ChatRowContentProps) => {
@@ -1203,7 +1205,7 @@ export const ChatRowContent = ({
 							</div>
 							{
 								// kilocode_change start
-								!message.partial && commitRange ? (
+								!message.partial && enableCheckpoints !== false && commitRange ? (
 									<div>
 										<VSCodeButton
 											className="w-full mt-2"

+ 3 - 0
webview-ui/src/components/chat/ChatView.tsx

@@ -123,6 +123,7 @@ const ChatViewComponent: React.ForwardRefRenderFunction<ChatViewRef, ChatViewPro
 		autoApprovalEnabled,
 		alwaysAllowModeSwitch,
 		showAutoApproveMenu, // kilocode_change
+		enableCheckpoints, // kilocode_change
 		alwaysAllowSubtasks,
 		alwaysAllowFollowupQuestions,
 		alwaysAllowUpdateTodoList,
@@ -1640,6 +1641,7 @@ const ChatViewComponent: React.ForwardRefRenderFunction<ChatViewRef, ChatViewPro
 					onSuggestionClick={handleSuggestionClickInRow} // This was already stabilized
 					onBatchFileResponse={handleBatchFileResponse}
 					highlighted={highlightedMessageIndex === index} // kilocode_change: add highlight prop
+					enableCheckpoints={enableCheckpoints} // kilocode_change
 					onFollowUpUnmount={handleFollowUpUnmount}
 					isFollowUpAnswered={messageOrGroup.isAnswered === true || messageOrGroup.ts === currentFollowUpTs}
 					editable={
@@ -1673,6 +1675,7 @@ const ChatViewComponent: React.ForwardRefRenderFunction<ChatViewRef, ChatViewPro
 			handleSuggestionClickInRow,
 			handleBatchFileResponse,
 			highlightedMessageIndex, // kilocode_change: add highlightedMessageIndex
+			enableCheckpoints, // kilocode_change
 			handleFollowUpUnmount,
 			currentFollowUpTs,
 			alwaysAllowUpdateTodoList,