Skip to content

"Approve" or "Reject" buttons clears textarea and does not send text to the chat/modelΒ #5756

@sawka

Description

@sawka

App Version

v3.23.12

API Provider

Anthropic

Model Used

Claude 3.7 Sonnet

Roo Code Task Links (Optional)

πŸ” Steps to Reproduce

So normally when using Roo, when it is applying a diff to a file i get "Save" and "Cancel" buttons. I often write feedback in the textarea about the diff (or tell it how to continue with the task), then when I hit either "Save" or "Cancel" that text gets added to the chat and sent to the model (this is great, and what I'd expect).

But in certain cases... most notably when using the "search_and_replace" tool, i get two buttons "Approve" and "Reject"... if i add text into the textarea then hit either of those buttons the textarea is cleared and the contents do not get added to the chat πŸ˜“


Here's simple repo steps (just tested with the newest version):

  1. Open any source code file (I was using TypeScript, but I don't think the type of code matters).
  2. Prompt it with something like:
can you edit @/frontend/appmodel.ts using the search_and_replace tool... to change isDev to isDev2
  1. It will then use the search_and_replace tool, and you'll be presented with the two buttons "Approve" and "Reject"
  2. Write some text in the textarea, like "great, lets update it again to isDev3".
  3. Click either button (tried with both).
  4. Notice that the textarea is cleared and what ever you wrote into the textarea is not added to the chat. It isn't just a UI bug as the agent will not follow the new instructions that were typed.

πŸ’₯ Outcome Summary

Expected the content typed into the textarea before hitting Approve or Reject (when using the search_and_replace tool) would be added to the chat and sent to the model.

πŸ“„ Relevant Logs or Errors (Optional)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Issue - Unassigned / ActionableClear and approved. Available for contributors to pick up.UI/UXUI/UX related or focusedbugSomething isn't working

    Type

    No type

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions