Roo-Code/e2e
google-labs-jules[bot] dbf1c83e33 Fix: Preserve chat history on task cancellation
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.
2025-05-21 03:39:27 +00:00
..
src Fix: Preserve chat history on task cancellation 2025-05-21 03:39:27 +00:00
.env.local.sample ContextProxy fix - constructor should not be async 2025-03-11 14:24:21 -07:00
.vscode-test.mjs Fix linter warning + run prettier on everything (#3581) 2025-05-13 15:16:24 -07:00
package-lock.json Get package publisher and name from package.json + command type safety (#3766) 2025-05-20 16:41:03 -07:00
package.json Get package publisher and name from package.json + command type safety (#3766) 2025-05-20 16:41:03 -07:00
tsconfig.json Rename ClineAPI to RooCodeAPI and improve types 2025-03-10 11:16:38 -07:00
VSCODE_INTEGRATION_TESTS.md Allow processes to access the Roo Code API via a unix socket (#2232) 2025-04-02 12:42:00 -07:00