File tree Expand file tree Collapse file tree 2 files changed +0
-12
lines changed
Expand file tree Collapse file tree 2 files changed +0
-12
lines changed Original file line number Diff line number Diff line change @@ -35,7 +35,6 @@ import { HistoryItem } from "../shared/HistoryItem"
3535import { ClineAskResponse } from "../shared/WebviewMessage"
3636import { defaultModeSlug , getModeBySlug } from "../shared/modes"
3737import { ToolParamName , ToolResponse , DiffStrategy } from "../shared/tools"
38- import { getTaskDirectoryPath } from "../shared/storagePathManager"
3938
4039// services
4140import { 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 }
Original file line number Diff line number Diff line change @@ -26,7 +26,6 @@ jest.mock("../ignore/RooIgnoreController")
2626
2727// Mock storagePathManager to prevent dynamic import issues
2828jest . mock ( "../../shared/storagePathManager" , ( ) => ( {
29- __esModule : true ,
3029 getTaskDirectoryPath : jest
3130 . fn ( )
3231 . mockImplementation ( ( globalStoragePath , taskId ) => Promise . resolve ( `${ globalStoragePath } /tasks/${ taskId } ` ) ) ,
You can’t perform that action at this time.
0 commit comments