Skip to content

The history navigation function can cause input lost by mistakeΒ #6249

@adamhj

Description

@adamhj

App Version

3.23.19

API Provider

Google Gemini

Model Used

Gemini Pro

Roo Code Task Links (Optional)

No response

πŸ” Steps to Reproduce

  1. Input multi-line of command, for example:
aaa
bbb
ccc

now your input cursor is after the last c
2. I want to add something at the beginning of the whole command, so I press home, then press up key by 3 times by mistake(in fact I should only press 2 times) and press any key to insert the new command text I want to insert.
As I pressed the up key for the 3rd time, the history navigation function replaced the whole input area with the command I have sent last time. If I find the mistake fast enough, I can press the down key back to the command I was editing. But if I input any text before I find the mistake, the command I write in step 1 is lost forever, I can't navigate back by press down key any more.

πŸ’₯ Outcome Summary

the command I write in step 1 is lost

I think we should have some mechanism to prevent this kind of loss. Either allow user to navigate back with down key in this situation, or prevent navigation when the input area is not empty

πŸ“„ Relevant Logs or Errors (Optional)

Metadata

Metadata

Assignees

Labels

Issue - In ProgressSomeone is actively working on this. Should link to a PR soon.bugSomething isn't working

Type

No type

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions