Skip to content

Commit 8ad5443

Browse files
author
Eric Wheeler
committed
cleanup: remove unused readTaskMessages helper
The `readTaskMessages` function and its corresponding file have been removed. This function is now redundant because all access to the cline message history is handled by the atomic `modifyClineMessages` method. This method reads the message file within its `safeWriteJson` transaction, performs the modification, and writes the result. A separate, non-transactional read function is therefore unnecessary and has been removed to simplify the codebase. Signed-off-by: Eric Wheeler <[email protected]>
1 parent 601bbf7 commit 8ad5443

File tree

3 files changed

+1
-32
lines changed

3 files changed

+1
-32
lines changed

src/core/task-persistence/index.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,2 @@
11
export { readApiMessages } from "./apiMessages"
2-
export { readTaskMessages } from "./taskMessages"
32
export { taskMetadata } from "./taskMetadata"

src/core/task-persistence/taskMessages.ts

Lines changed: 0 additions & 30 deletions
This file was deleted.

src/core/task/Task.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ import { truncateConversationIfNeeded } from "../sliding-window"
7676
import { ClineProvider } from "../webview/ClineProvider"
7777
import { MultiSearchReplaceDiffStrategy } from "../diff/strategies/multi-search-replace"
7878
import { MultiFileSearchReplaceDiffStrategy } from "../diff/strategies/multi-file-search-replace"
79-
import { readApiMessages, readTaskMessages, taskMetadata } from "../task-persistence"
79+
import { readApiMessages, taskMetadata } from "../task-persistence"
8080
import { getEnvironmentDetails } from "../environment/getEnvironmentDetails"
8181
import {
8282
type CheckpointDiffOptions,

0 commit comments

Comments
 (0)