Skip to content

Conversation

@KJ7LNW
Copy link
Contributor

@KJ7LNW KJ7LNW commented Jul 22, 2025

Context

When editing a message, the user is shown a warning dialog. Currently, this dialog appears every time a message is edited, even if the user has already seen it in the current session. This creates a frustrating user experience when editing multiple messages.

Implementation

This change fixes the issue by:

  1. Using a React ref (hasSeenEditWarningRef) to store the preference in memory during the session
  2. Bypassing the dialog if the user has already seen it once
  3. Adding double-click functionality to user messages for quick editing

The preference is reset when the VS Code window is reloaded, ensuring users are reminded of the warning after a restart.

How to Test

  1. Edit a message by clicking the edit button (hidden but accessible via double-click)
  2. Confirm the warning dialog appears and click 'Confirm'
  3. Edit another message - the dialog should not appear this time
  4. Double-click on a user message - it should immediately enter edit mode without showing the dialog

Fixes #6058

Get in Touch

Discord: KJ7LNW

@KJ7LNW KJ7LNW requested review from cte, jr and mrubens as code owners July 22, 2025 08:34
@KJ7LNW KJ7LNW moved this from Triage to PR [Needs Prelim Review] in Roo Code Roadmap Jul 22, 2025
@dosubot dosubot bot added size:M This PR changes 30-99 lines, ignoring generated files. UI/UX UI/UX related or focused labels Jul 22, 2025
Eric Wheeler and others added 3 commits July 24, 2025 18:05
This change fixes the issue where the edit warning dialog appears on every edit, even after the user has already seen it once. The solution:

1. Uses a React ref to store the preference in memory during the session
2. Bypasses the dialog if the user has already seen it
3. Adds double-click functionality to user messages for quick editing

The preference is reset when the VS Code window is reloaded, ensuring users are reminded of the warning after a restart.

Fixes: #6058

Signed-off-by: Eric Wheeler <[email protected]>
@daniel-lxs daniel-lxs moved this from PR [Needs Prelim Review] to PR [Needs Review] in Roo Code Roadmap Jul 24, 2025
@mrubens mrubens added the Conflict Cleanup Needed Awaiting final review. Minor merge conflicts. Maintainers to resolve. No contributor action needed. label Jul 31, 2025
@daniel-lxs daniel-lxs marked this pull request as draft August 18, 2025 16:52
@daniel-lxs daniel-lxs moved this from PR [Needs Review] to PR [Draft / In Progress] in Roo Code Roadmap Aug 18, 2025
@KJ7LNW KJ7LNW closed this by deleting the head repository Sep 4, 2025
@hannesrudolph hannesrudolph moved this from PR [Draft / In Progress] to Done in Roo Code Roadmap Sep 23, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Conflict Cleanup Needed Awaiting final review. Minor merge conflicts. Maintainers to resolve. No contributor action needed. PR - Draft / In Progress size:M This PR changes 30-99 lines, ignoring generated files. UI/UX UI/UX related or focused

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

Edit warning dialog appears on every edit

4 participants