这是indexloc提供的服务,不要输入任何密码
Skip to content

Conversation

@homanp
Copy link
Contributor

@homanp homanp commented Jul 22, 2025

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 ConfirmationService to support session-level flags for operation types.

New Feature: Auto-Edit Mode

  • Added a new state variable autoEditEnabled in useInputHandler to track the auto-edit mode, initialized based on session flags from ConfirmationService.
  • Implemented a keyboard shortcut (Shift+Tab) to toggle auto-edit mode, updating session flags in ConfirmationService accordingly.
  • Updated command list to include the new keyboard shortcut for toggling auto-edit mode.

UI Enhancements

  • Modified ChatHistory to filter out "Executing..." messages when confirmation is active, using a new isConfirmationActive prop. [1] [2]
  • Updated ChatInterfaceWithAgent to display the current state of auto-edit mode (on/off) in the UI.
  • Added a log message in ChatInterfaceWithAgent to inform users about the auto-edit mode toggle shortcut.

Updates to ConfirmationService

  • Added a setSessionFlag method to dynamically update session flags (fileOperations, bashCommands, allOperations).
  • Refactored methods to consistently use double quotes and improve readability. [1] [2] [3] [4]

Fixes #1

Checklist

  • I tested my changes
  • I reviewed my own code

@homanp homanp self-assigned this Jul 22, 2025
@homanp homanp changed the title add support for auto-edit toggle feat: add support for auto-edit toggle Jul 22, 2025
@homanp homanp merged commit 5183e4d into main Jul 22, 2025
2 checks passed
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.

Add support for toggling auto edits with shift+tabs

2 participants