fix(chat): Cancel auto-approve timer when editing follow-up suggestion (#6226)

Co-authored-by: Chris Hasson <noreply@example.com>
This commit is contained in:
Chris Hasson 2025-07-25 15:27:40 -07:00 committed by GitHub
parent 490538f9df
commit 912d795358
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 8 additions and 0 deletions

View file

@ -0,0 +1,5 @@
---
"kilo-code": patch
---
Cancel auto-approve timer when editing follow-up suggestion

View file

@ -134,6 +134,9 @@ export const FollowUpSuggest = ({
className="absolute top-0 right-0 opacity-0 group-hover:opacity-100 transition-opacity"
onClick={(e) => {
e.stopPropagation()
// Cancel the auto-approve timer when edit button is clicked
setSuggestionSelected(true)
onCancelAutoApproval?.()
// Simulate shift-click by directly calling the handler with shiftKey=true.
onSuggestionClick?.(suggestion, { ...e, shiftKey: true })
}}>