Skip to content

Commit c2223d1

Browse files
Enhance reminder message
1 parent 464745a commit c2223d1

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/server/TaskManager.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -548,7 +548,7 @@ export class TaskManager {
548548
// Generate message if needed
549549
let message: string | undefined = undefined;
550550
if (updates.status === 'done' && proj.autoApprove === false) {
551-
message = `Task marked as done but requires approval.\nTo approve, run: npx taskqueue approve-task -- ${projectId} ${taskId}`;
551+
message = `Task marked as done but requires human approval.\nTo approve, user should run: npx taskqueue approve-task -- ${projectId} ${taskId}`;
552552
}
553553

554554
await this.saveTasks();

tests/mcp/tools/update-task.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -110,10 +110,10 @@ describe('update_task Tool', () => {
110110
const responseText = (result.content[0] as { text: string }).text;
111111
// Parse the JSON response
112112
const responseData = JSON.parse(responseText);
113-
113+
114114
// Check the message property
115115
expect(responseData).toHaveProperty('message');
116-
const expectedMessage = `Task marked as done but requires approval.\nTo approve, run: npx taskqueue approve-task -- ${project.projectId} ${task.id}`;
116+
const expectedMessage = `Task marked as done but requires human approval.\nTo approve, user should run: npx taskqueue approve-task -- ${project.projectId} ${task.id}`;
117117
expect(responseData.message).toBe(expectedMessage);
118118

119119
// Check that the core task data is present under the 'task' key

0 commit comments

Comments
 (0)