Skip to content

Commit 293a439

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 f8d5cc4 commit 293a439

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
@@ -78,7 +78,7 @@ import { truncateConversationIfNeeded } from "../sliding-window"
7878
import { ClineProvider } from "../webview/ClineProvider"
7979
import { MultiSearchReplaceDiffStrategy } from "../diff/strategies/multi-search-replace"
8080
import { MultiFileSearchReplaceDiffStrategy } from "../diff/strategies/multi-file-search-replace"
81-
import { readApiMessages, readTaskMessages, taskMetadata } from "../task-persistence"
81+
import { readApiMessages, taskMetadata } from "../task-persistence"
8282
import { getEnvironmentDetails } from "../environment/getEnvironmentDetails"
8383
import {
8484
type CheckpointDiffOptions,

0 commit comments

Comments
 (0)