Skip to content

Message edit/delete overhaul #5538

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 16 commits into
base: main
Choose a base branch
from
Open

Conversation

liwilliam2021
Copy link
Collaborator

@liwilliam2021 liwilliam2021 commented Jul 10, 2025

Four big changes (note this feature is still disabled until checkpoints are overhauled)

  1. Made the edit interface a variation of the Chat Area
  2. Use our own modal instead of native vscode modal for delete/edit warnings
  3. Removed the option to "delete just this message" and replaced with a warning
    4. Added an option to stop showing edit/delete warnings
Screenshot 2025-07-09 at 3 25 11 PM

Partially addresses #4703


Important

Overhauls message edit/delete functionality with custom modals, removes individual delete option, and updates edit interface to resemble chat area.

  • Behavior:
    • Overhauls message edit/delete functionality with a custom modal for confirmations in webviewMessageHandler.ts.
    • Removes "delete just this message" option, replacing it with a warning.
    • Adds option to stop showing edit/delete warnings.
  • UI Changes:
    • Updates edit interface to resemble chat area in App.tsx.
    • Introduces DeleteMessageDialog and EditMessageDialog components in App.tsx.
  • Testing:
    • Updates tests in ClineProvider.spec.ts to reflect new delete/edit behavior.
    • Adds tests for edit mode integration in ChatTextArea.spec.tsx and EditModeControls.spec.tsx.

This description was created by Ellipsis for cf53be7. You can customize this summary. It will automatically update as commits are pushed.

@liwilliam2021 liwilliam2021 requested review from mrubens, cte and jr as code owners July 10, 2025 00:11
@dosubot dosubot bot added size:XXL This PR changes 1000+ lines, ignoring generated files. UI/UX UI/UX related or focused labels Jul 10, 2025
Copy link

delve-auditor bot commented Jul 10, 2025

No security or compliance issues detected. Reviewed everything up to 7031254.

Security Overview
  • 🔎 Scanned files: 69 changed file(s)
Detected Code Changes

The diff is too large to display a summary of code changes.

Reply to this PR with @delve-auditor followed by a description of what change you want and we'll auto-submit a change to this PR to implement it.

@hannesrudolph hannesrudolph added the Issue/PR - Triage New issue. Needs quick review to confirm validity and assign labels. label Jul 10, 2025
@daniel-lxs daniel-lxs moved this from Triage to PR [Needs Prelim Review] in Roo Code Roadmap Jul 10, 2025
@hannesrudolph hannesrudolph added PR - Needs Preliminary Review and removed Issue/PR - Triage New issue. Needs quick review to confirm validity and assign labels. labels Jul 10, 2025
@daniel-lxs
Copy link
Collaborator

Hey @liwilliam2021, I gave the implementation a try and noticed a couple of issues. It looks like editing a message and attaching a new image doesn’t work as expected right now.

Also, I think we could simplify the UI a bit by removing the codebase indexing status indicator, and adjust the styles so the edit message text area feels more integrated. Right now it looks a bit like a box inside a box.

Let me know if anything's unclear or if you’d like to talk through any of this.

@daniel-lxs daniel-lxs moved this from PR [Needs Prelim Review] to PR [Draft / In Progress] in Roo Code Roadmap Jul 10, 2025
@daniel-lxs daniel-lxs marked this pull request as draft July 10, 2025 23:10
@liwilliam2021
Copy link
Collaborator Author

Hey @liwilliam2021, I gave the implementation a try and noticed a couple of issues. It looks like editing a message and attaching a new image doesn’t work as expected right now.

Also, I think we could simplify the UI a bit by removing the codebase indexing status indicator, and adjust the styles so the edit message text area feels more integrated. Right now it looks a bit like a box inside a box.

Let me know if anything's unclear or if you’d like to talk through any of this.

hmmm weird-- they seemed to work locally on my end? thanks for the feedback will check it out!

@liwilliam2021
Copy link
Collaborator Author

Thanks @daniel-lxs -- those are great catches!

I also removed the skip warning dialog option bc it will be replaced in the next PR anyways.
Screenshot 2025-07-10 at 8 26 25 PM
Screenshot 2025-07-10 at 7 32 41 PM

@daniel-lxs daniel-lxs moved this from PR [Draft / In Progress] to PR [Needs Prelim Review] in Roo Code Roadmap Jul 11, 2025
@daniel-lxs daniel-lxs moved this from PR [Needs Prelim Review] to PR [Draft / In Progress] in Roo Code Roadmap Jul 11, 2025
@daniel-lxs
Copy link
Collaborator

Hey Will, thank you for addressing the suggestions.

I noticed that the model doesn't seem to be aware of the images being sent:

image

Maybe I'm doing something wrong here?

Also, I think the padding around the text area could be a bit smaller:

image

@liwilliam2021
Copy link
Collaborator Author

liwilliam2021 commented Jul 15, 2025

Hey Will, thank you for addressing the suggestions.

I noticed that the model doesn't seem to be aware of the images being sent:

image Maybe I'm doing something wrong here?

Also, I think the padding around the text area could be a bit smaller:

image

I just addressed the padding issues :)

hmmm-- the image issue doesn't seem to appear on my end, check out this loom

https://www.loom.com/share/156cd936f3bf432887408f53e717789c

@daniel-lxs daniel-lxs moved this from PR [Draft / In Progress] to PR [Needs Prelim Review] in Roo Code Roadmap Jul 15, 2025
@daniel-lxs daniel-lxs marked this pull request as ready for review July 15, 2025 16:47
@dosubot dosubot bot added the enhancement New feature or request label Jul 15, 2025
Copy link
Collaborator

@daniel-lxs daniel-lxs left a comment

Choose a reason for hiding this comment

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

I think this is working correctly. I'll leave a few minor suggestions, but I think it's close to being done.

@daniel-lxs daniel-lxs moved this from PR [Needs Prelim Review] to PR [Needs Review] in Roo Code Roadmap Jul 15, 2025
@dosubot dosubot bot added the lgtm This PR has been approved by a maintainer label Jul 15, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request lgtm This PR has been approved by a maintainer PR - Needs Review size:XXL This PR changes 1000+ lines, ignoring generated files. UI/UX UI/UX related or focused
Projects
Status: PR [Needs Review]
Development

Successfully merging this pull request may close these issues.

3 participants