Skip to content

Conversation

@Githubguy132010
Copy link
Contributor

Context

Fixes #4485. The file deletion auto-approve checkbox in the AutoApproveDropdown was not clickable because the setAlwaysAllowDelete handler was not being called when users tried to toggle the checkbox. Additionally, the default value for alwaysAllowDelete has been set to true for consistency with other auto-approve settings.

Implementation

The fix involved adding the missing setAlwaysAllowDelete state setter to the following components:

  1. AutoApproveDropdown.tsx: Added setAlwaysAllowDelete to the destructured context values and implemented the case handler in the toggle switch statement. Also added it to the useCallback dependency array.

  2. AutoApproveSettings.tsx: Added alwaysAllowDelete prop to the component interface and passed it to the AutoApproveToggle component.

  3. SettingsView.tsx: Added alwaysAllowDelete to the destructured state and passed it through to AutoApproveSettings.

  4. ExtensionStateContext.tsx: Set the default value of alwaysAllowDelete to true for consistency with alwaysAllowReadOnly and alwaysAllowWrite defaults.

All changes are marked with // kilocode_change comments as per project guidelines.

Screenshots

N/A

How to Test

  1. Open Kilo Code extension in VS Code
  2. Navigate to settings or open the auto-approve dropdown from the chat interface
  3. Try to toggle the "Delete files and directories" checkbox
  4. The checkbox should now respond to clicks and persist the setting

Get in Touch

Discord: thomas07374

Kilo Code added 3 commits January 31, 2026 11:31
Change the default value of alwaysAllowDelete from false to true
to be consistent with other auto-approve settings like alwaysAllowWrite
and alwaysAllowReadOnly.
@changeset-bot
Copy link

changeset-bot bot commented Jan 31, 2026

🦋 Changeset detected

Latest commit: b44e285

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
kilo-code Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@Githubguy132010 Githubguy132010 changed the title fix: make file deletion auto-approve checkbox clickable ( #4485) fix: make file deletion auto-approve checkbox clickable (#4485) Jan 31, 2026
@Githubguy132010
Copy link
Contributor Author

Thanks for the review. Anything else?

Copy link
Collaborator

@kevinvandijk kevinvandijk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I added some small changes but lgtm for the rest!

@kevinvandijk kevinvandijk merged commit 49df63f into Kilo-Org:main Feb 13, 2026
12 checks passed
@Githubguy132010 Githubguy132010 deleted the fix/4485-file-deletion-auto-approve branch February 13, 2026 13:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Auto-approve option for file deletion tool is not clickable

2 participants