mirror of
https://github.com/RooVetGit/Roo-Code.git
synced 2026-08-28 05:27:24 +00:00
Previously, canceling a running task could lead to the loss of the most recent chat history if it hadn't been saved immediately prior to cancellation. This commit addresses the issue by ensuring that both the Cline messages (user-facing chat) and the API conversation history are explicitly saved at the beginning of the `abortTask` method in `src/core/task/Task.ts`. This guarantees that the latest state of the conversation is persisted before the task is fully terminated and its resources are released. An automated E2E test has been added to `e2e/src/suite/task.test.ts` to specifically verify this fix. The test simulates starting a task, sending messages, canceling the task, and then resuming it to assert that the chat history remains intact. Manual testing also confirmed that the chat history is correctly preserved after canceling and resuming a task. |
||
|---|---|---|
| .. | ||
| __mocks__ | ||
| __tests__ | ||
| activate | ||
| api | ||
| core | ||
| exports | ||
| i18n | ||
| integrations | ||
| schemas | ||
| services | ||
| shared | ||
| utils | ||
| workers | ||
| extension.ts | ||