From 1f13eee4a71b3cacdc1fb807ec5f301795f0efe1 Mon Sep 17 00:00:00 2001 From: Mohamed Boudra Date: Tue, 14 Apr 2026 05:52:32 +0700 Subject: [PATCH] Restore authorAgentId in chat post command The merge accidentally dropped the authorAgentId from postChatMessage, causing the CLI chat test to fail since it asserts the sender ID appears in the output. --- packages/cli/src/commands/chat/post.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/cli/src/commands/chat/post.ts b/packages/cli/src/commands/chat/post.ts index 58c63afa7..e46049d82 100644 --- a/packages/cli/src/commands/chat/post.ts +++ b/packages/cli/src/commands/chat/post.ts @@ -3,6 +3,7 @@ import type { SingleResult } from "../../output/index.js"; import { attachAgentNamesToMessages, connectChatClient, + resolveChatAuthorAgentId, toChatCommandError, type ChatCommandOptions, } from "./shared.js"; @@ -23,6 +24,7 @@ export async function runPostCommand( const payload = await client.postChatMessage({ room, body, + authorAgentId: resolveChatAuthorAgentId(), replyToMessageId: options.replyTo, }); const [message] = await attachAgentNamesToMessages(client, [