diff --git a/container/agent-runner/src/ipc-mcp-stdio.ts b/container/agent-runner/src/ipc-mcp-stdio.ts index d95abb6..9de0138 100644 --- a/container/agent-runner/src/ipc-mcp-stdio.ts +++ b/container/agent-runner/src/ipc-mcp-stdio.ts @@ -41,7 +41,7 @@ const server = new McpServer({ server.tool( 'send_message', - "Send a message to the user or group immediately while you're still running. Use this for progress updates or to send multiple messages. You can call this multiple times. Note: when running as a scheduled task, your final output is NOT sent to the user — use this tool if you need to communicate with the user or group.", + "Send a message to the user or group immediately while you're still running. Use this for progress updates or to send multiple messages. You can call this multiple times.", { text: z.string().describe('The message text to send'), sender: z.string().optional().describe('Your role/identity name (e.g. "Researcher"). When set, messages appear from a dedicated bot in Telegram.'), diff --git a/src/task-scheduler.ts b/src/task-scheduler.ts index 8c533c7..f216e12 100644 --- a/src/task-scheduler.ts +++ b/src/task-scheduler.ts @@ -203,7 +203,7 @@ async function runTask( if (output.status === 'error') { error = output.error || 'Unknown error'; } else if (output.result) { - // Messages are sent via MCP tool (IPC), result text is just logged + // Result was already forwarded to the user via the streaming callback above result = output.result; }