File tree Expand file tree Collapse file tree 3 files changed +3
-3
lines changed
src/core/task-persistence Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ export async function readApiMessages({
1818 globalStoragePath : string
1919} ) : Promise < ApiMessage [ ] > {
2020 const taskDir = await getTaskDirectoryPath ( globalStoragePath , taskId )
21- const filePath = path . join ( taskDir , GlobalFileNames . uiMessages )
21+ const filePath = path . join ( taskDir , GlobalFileNames . apiConversationHistory )
2222
2323 if ( await fileExistsAtPath ( filePath ) ) {
2424 return JSON . parse ( await fs . readFile ( filePath , "utf8" ) )
Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ export async function readTaskMessages({
1717 globalStoragePath,
1818} : ReadTaskMessagesOptions ) : Promise < ClineMessage [ ] > {
1919 const taskDir = await getTaskDirectoryPath ( globalStoragePath , taskId )
20- const filePath = path . join ( taskDir , GlobalFileNames . apiConversationHistory )
20+ const filePath = path . join ( taskDir , GlobalFileNames . uiMessages )
2121 const fileExists = await fileExistsAtPath ( filePath )
2222
2323 if ( fileExists ) {
Original file line number Diff line number Diff line change @@ -35,7 +35,7 @@ export async function taskMetadata({
3535 taskDirSize = await getFolderSize . loose ( taskDir )
3636 } catch ( error ) {
3737 console . error (
38- `[saveTaskMessages ] getFolderSize.loose failed -> ${ error instanceof Error ? error . message : String ( error ) } ` ,
38+ `[taskMetadata ] getFolderSize.loose failed -> ${ error instanceof Error ? error . message : String ( error ) } ` ,
3939 )
4040 }
4141
You can’t perform that action at this time.
0 commit comments