fix: callsites to list conversation messages (#1311)
This commit is contained in:
@@ -243,11 +243,11 @@ export function ConversationSelector({
|
||||
if (!afterCursor) {
|
||||
try {
|
||||
const defaultMessages = await client.conversations.messages.list(
|
||||
// Default conversation is represented by the agent id at the conversations endpoint.
|
||||
agentId,
|
||||
"default",
|
||||
{
|
||||
limit: 20,
|
||||
order: "desc",
|
||||
agent_id: agentId,
|
||||
},
|
||||
);
|
||||
const defaultMsgItems = defaultMessages.getPaginatedItems();
|
||||
|
||||
@@ -159,12 +159,12 @@ export async function runMessagesSubcommand(argv: string[]): Promise<number> {
|
||||
return 1;
|
||||
}
|
||||
|
||||
// Default conversation is represented by the agent id at the conversations endpoint.
|
||||
const response = await client.conversations.messages.list(agentId, {
|
||||
const response = await client.conversations.messages.list("default", {
|
||||
limit: parseLimit(parsed.values.limit, 20),
|
||||
after: parsed.values.after,
|
||||
before: parsed.values.before,
|
||||
order,
|
||||
agent_id: agentId,
|
||||
});
|
||||
|
||||
const messages = response.getPaginatedItems() ?? [];
|
||||
|
||||
Reference in New Issue
Block a user