feat: add support for auto-edit toggle #24
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
What does this PR do?
This pull request introduces a new "auto-edit mode" feature to streamline user interactions by bypassing confirmation dialogs for all operations when enabled. It also enhances the user interface to reflect this new functionality and updates the
ConfirmationServiceto support session-level flags for operation types.New Feature: Auto-Edit Mode
autoEditEnabledinuseInputHandlerto track the auto-edit mode, initialized based on session flags fromConfirmationService.ConfirmationServiceaccordingly.UI Enhancements
ChatHistoryto filter out "Executing..." messages when confirmation is active, using a newisConfirmationActiveprop. [1] [2]ChatInterfaceWithAgentto display the current state of auto-edit mode (on/off) in the UI.ChatInterfaceWithAgentto inform users about the auto-edit mode toggle shortcut.Updates to
ConfirmationServicesetSessionFlagmethod to dynamically update session flags (fileOperations,bashCommands,allOperations).Fixes #1
Checklist