Skip to content

Commit 0bf24ee

Browse files
committed
Revert Cline.ts changes
1 parent 7425df0 commit 0bf24ee

File tree

2 files changed

+0
-12
lines changed

2 files changed

+0
-12
lines changed

src/core/Cline.ts

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@ import { HistoryItem } from "../shared/HistoryItem"
3535
import { ClineAskResponse } from "../shared/WebviewMessage"
3636
import { defaultModeSlug, getModeBySlug } from "../shared/modes"
3737
import { ToolParamName, ToolResponse, DiffStrategy } from "../shared/tools"
38-
import { getTaskDirectoryPath } from "../shared/storagePathManager"
3938

4039
// services
4140
import { UrlContentFetcher } from "../services/browser/UrlContentFetcher"
@@ -296,16 +295,6 @@ export class Cline extends EventEmitter<ClineEvents> {
296295

297296
// API Messages
298297

299-
private async ensureTaskDirectoryExists(): Promise<string> {
300-
const globalStoragePath = this.providerRef.deref()?.context.globalStorageUri.fsPath
301-
if (!globalStoragePath) {
302-
throw new Error("Global storage uri is invalid")
303-
}
304-
305-
// Use storagePathManager to retrieve the task storage directory
306-
return getTaskDirectoryPath(globalStoragePath, this.taskId)
307-
}
308-
309298
private async getSavedApiConversationHistory(): Promise<Anthropic.MessageParam[]> {
310299
return readApiMessages({ taskId: this.taskId, globalStoragePath: this.globalStoragePath })
311300
}

src/core/__tests__/Cline.test.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@ jest.mock("../ignore/RooIgnoreController")
2626

2727
// Mock storagePathManager to prevent dynamic import issues
2828
jest.mock("../../shared/storagePathManager", () => ({
29-
__esModule: true,
3029
getTaskDirectoryPath: jest
3130
.fn()
3231
.mockImplementation((globalStoragePath, taskId) => Promise.resolve(`${globalStoragePath}/tasks/${taskId}`)),

0 commit comments

Comments
 (0)