feat(ipc): merge consecutive send_message updates into one live message
Repeated send_message progress updates each posted a new Discord message, so a long run left a stack of separate status posts. While the role's previous send_message is still the newest message in the chat, append the new text to it by editing it (rendered like a fresh send). A message from anyone in between, a status verdict, an attachment, or the 2000-char limit starts a new message; a failed edit falls back to sending a new one. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -79,7 +79,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.",
|
||||
"Send a message to the user or group immediately while you're still running. Use this for progress updates. You can call this multiple times: while your previous message is still the newest one in the chat, each call is appended to it by editing it, so send only the new update and do not repeat earlier ones.",
|
||||
{
|
||||
text: z.string().describe('The message text to send'),
|
||||
sender: z
|
||||
|
||||
Reference in New Issue
Block a user