@@ -307,41 +307,50 @@ export function registerFsIpc(): void {
307307 } > ,
308308 ) : Promise < void > => {
309309 try {
310- const questionsPath = path . join (
310+ const researchPath = path . join (
311311 repoPath ,
312312 ".posthog" ,
313313 taskId ,
314- "questions .json" ,
314+ "research .json" ,
315315 ) ;
316316
317- // Read existing questions.json
318- let questionsData : {
319- answered : boolean ;
320- answers : Array < {
317+ // Read existing research.json
318+ let researchData : {
319+ actionabilityScore : number ;
320+ context : string ;
321+ keyFiles : string [ ] ;
322+ blockers ?: string [ ] ;
323+ questions ?: Array < {
324+ id : string ;
325+ question : string ;
326+ options : string [ ] ;
327+ } > ;
328+ answered ?: boolean ;
329+ answers ?: Array < {
321330 questionId : string ;
322331 selectedOption : string ;
323332 customInput ?: string ;
324333 } > ;
325334 } ;
326335 try {
327- const content = await fsPromises . readFile ( questionsPath , "utf-8" ) ;
328- questionsData = JSON . parse ( content ) ;
336+ const content = await fsPromises . readFile ( researchPath , "utf-8" ) ;
337+ researchData = JSON . parse ( content ) ;
329338 } catch {
330- throw new Error ( `questions .json not found for task ${ taskId } ` ) ;
339+ throw new Error ( `research .json not found for task ${ taskId } ` ) ;
331340 }
332341
333342 // Update with answers
334- questionsData . answered = true ;
335- questionsData . answers = answers ;
343+ researchData . answered = true ;
344+ researchData . answers = answers ;
336345
337346 // Write back to file
338347 await fsPromises . writeFile (
339- questionsPath ,
340- JSON . stringify ( questionsData , null , 2 ) ,
348+ researchPath ,
349+ JSON . stringify ( researchData , null , 2 ) ,
341350 "utf-8" ,
342351 ) ;
343352
344- console . log ( `Saved answers to questions .json for task ${ taskId } ` ) ;
353+ console . log ( `Saved answers to research .json for task ${ taskId } ` ) ;
345354
346355 // Commit the answers (local mode - no push)
347356 try {
0 commit comments