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 {
428
428
await this . ensureInitialized ( ) ;
429
429
// Reload from disk to ensure we have the latest data
430
430
await this . reloadFromDisk ( ) ;
431
-
431
+
432
432
for ( const proj of this . data . projects ) {
433
433
const target = proj . tasks . find ( ( t ) => t . id === taskId ) ;
434
434
if ( target ) {
435
+ // Return only projectId and the full task object
435
436
return createSuccessResponse ( {
436
437
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
448
439
} ) ;
449
440
}
450
441
}
Original file line number Diff line number Diff line change @@ -111,10 +111,7 @@ export interface ApproveProjectSuccessData {
111
111
112
112
export interface OpenTaskSuccessData {
113
113
projectId : string ;
114
- initialPrompt : string ;
115
- projectPlan : string ;
116
- completed : boolean ;
117
- task : Task ; // Use the full Task type
114
+ task : Task ;
118
115
}
119
116
120
117
export interface ListProjectsSuccessData {
You can’t perform that action at this time.
0 commit comments