File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
src/core/context-tracking Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -111,7 +111,7 @@ export class FileContextTracker {
111111
112112 // Gets task metadata from storage
113113 async getTaskMetadata ( taskId : string ) : Promise < TaskMetadata > {
114- const globalStoragePath = this . getContextProxy ( ) ! . globalStorageUri . fsPath
114+ const globalStoragePath = this . getContextProxy ( ) ? .globalStorageUri . fsPath ?? ''
115115 const taskDir = await getTaskDirectoryPath ( globalStoragePath , taskId )
116116 const filePath = path . join ( taskDir , GlobalFileNames . taskMetadata )
117117 try {
@@ -180,7 +180,7 @@ export class FileContextTracker {
180180 case "roo_edited" :
181181 newEntry . roo_read_date = now
182182 newEntry . roo_edit_date = now
183- this . checkpointPossibleFile . add ( filePath )
183+ this . checkpointPossibleFiles . add ( filePath )
184184 break
185185
186186 // read_tool/file_mentioned: Roo has read the file via a tool or file mention
@@ -205,8 +205,8 @@ export class FileContextTracker {
205205 }
206206
207207 getAndClearCheckpointPossibleFile ( ) : string [ ] {
208- const files = Array . from ( this . checkpointPossibleFile )
209- this . checkpointPossibleFile . clear ( )
208+ const files = Array . from ( this . checkpointPossibleFiles )
209+ this . checkpointPossibleFiles . clear ( )
210210 return files
211211 }
212212
You can’t perform that action at this time.
0 commit comments