Skip to content

Commit d007f23

Browse files
Return all task details from read_task tool
1 parent 489ea71 commit d007f23

File tree

2 files changed

+4
-16
lines changed

2 files changed

+4
-16
lines changed

src/server/TaskManager.ts

Lines changed: 3 additions & 12 deletions
Original file line numberDiff line numberDiff 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
}

src/types/index.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -111,10 +111,7 @@ export interface ApproveProjectSuccessData {
111111

112112
export 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

120117
export interface ListProjectsSuccessData {

0 commit comments

Comments
 (0)