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.
This commit is contained in:
@@ -3,6 +3,7 @@ import type { SingleResult } from "../../output/index.js";
|
|||||||
import {
|
import {
|
||||||
attachAgentNamesToMessages,
|
attachAgentNamesToMessages,
|
||||||
connectChatClient,
|
connectChatClient,
|
||||||
|
resolveChatAuthorAgentId,
|
||||||
toChatCommandError,
|
toChatCommandError,
|
||||||
type ChatCommandOptions,
|
type ChatCommandOptions,
|
||||||
} from "./shared.js";
|
} from "./shared.js";
|
||||||
@@ -23,6 +24,7 @@ export async function runPostCommand(
|
|||||||
const payload = await client.postChatMessage({
|
const payload = await client.postChatMessage({
|
||||||
room,
|
room,
|
||||||
body,
|
body,
|
||||||
|
authorAgentId: resolveChatAuthorAgentId(),
|
||||||
replyToMessageId: options.replyTo,
|
replyToMessageId: options.replyTo,
|
||||||
});
|
});
|
||||||
const [message] = await attachAgentNamesToMessages(client, [
|
const [message] = await attachAgentNamesToMessages(client, [
|
||||||
|
|||||||
Reference in New Issue
Block a user