Skip to content

enhancePrompt should be cancellable through cmd + zΒ #5741

@teleginzhenya

Description

@teleginzhenya

What specific problem does this solve?

After using Enhance prompt with additional context function the initial prompt is lost. It is impossible to undo changes (using cmd + z) after.

Nice to have possibility to undo changes using common undo shortcut

Additional context (optional)

No response

Roo Code Task Links (Optional)

No response

Request checklist

  • I've searched existing Issues and Discussions for duplicates
  • This describes a specific problem with clear impact and context

Interested in implementing this?

  • Yes, I'd like to help implement this feature

Implementation requirements

  • I understand this needs approval before implementation begins

How should this be solved? (REQUIRED if contributing, optional otherwise)

Didn't take a look at the implementation yet. But it should "memorize" previous value, to make it possible to undo changes

How will we know it works? (Acceptance Criteria - REQUIRED if contributing, optional otherwise)

Given I have prompt in message field
When I click "Enhance prompt"
Then I'm getting new prompt
And I can undo changes and return to my prompt before "Enhance prompt" clicked

Technical considerations (REQUIRED if contributing, optional otherwise)

tbd

Trade-offs and risks (REQUIRED if contributing, optional otherwise)

tbd

Metadata

Metadata

Assignees

No one assigned

    Labels

    Issue/PR - TriageNew issue. Needs quick review to confirm validity and assign labels.enhancementNew feature or requestproposal

    Type

    No type

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions