File tree Expand file tree Collapse file tree 2 files changed +4
-16
lines changed Expand file tree Collapse file tree 2 files changed +4
-16
lines changed Original file line number Diff line number Diff line change @@ -428,23 +428,14 @@ export class TaskManager {
428428 await this . ensureInitialized ( ) ;
429429 // Reload from disk to ensure we have the latest data
430430 await this . reloadFromDisk ( ) ;
431-
431+
432432 for ( const proj of this . data . projects ) {
433433 const target = proj . tasks . find ( ( t ) => t . id === taskId ) ;
434434 if ( target ) {
435+ // Return only projectId and the full task object
435436 return createSuccessResponse ( {
436437 projectId : proj . projectId ,
437- initialPrompt : proj . initialPrompt ,
438- projectPlan : proj . projectPlan ,
439- completed : proj . completed ,
440- task : {
441- id : target . id ,
442- title : target . title ,
443- description : target . description ,
444- status : target . status ,
445- approved : target . approved ,
446- completedDetails : target . completedDetails ,
447- } ,
438+ task : { ...target } , // Return all fields from the found task
448439 } ) ;
449440 }
450441 }
Original file line number Diff line number Diff line change @@ -111,10 +111,7 @@ export interface ApproveProjectSuccessData {
111111
112112export interface OpenTaskSuccessData {
113113 projectId : string ;
114- initialPrompt : string ;
115- projectPlan : string ;
116- completed : boolean ;
117- task : Task ; // Use the full Task type
114+ task : Task ;
118115}
119116
120117export interface ListProjectsSuccessData {
You can’t perform that action at this time.
0 commit comments