mirror of
https://github.com/RooVetGit/Roo-Code.git
synced 2026-08-28 05:27:24 +00:00
fix: preserve draft message when switching tasks
The draft should persist at the workspace level regardless of which task you're viewing. Removed the clearDraftMessage() call from showTaskWithId() so the draft is only cleared when the message is actually sent, not when switching between tasks.
This commit is contained in:
parent
50d40f260b
commit
841aa4057e
1 changed files with 0 additions and 3 deletions
|
|
@ -1660,9 +1660,6 @@ export class ClineProvider
|
|||
}
|
||||
|
||||
async showTaskWithId(id: string) {
|
||||
// Clear draft when switching tasks
|
||||
await this.clearDraftMessage()
|
||||
|
||||
if (id !== this.getCurrentTask()?.taskId) {
|
||||
// Non-current task.
|
||||
const { historyItem } = await this.getTaskWithId(id)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue