feat: include compaction messages and handle new summary message types (#756)

This commit is contained in:
jnjpng
2026-01-30 18:19:51 -08:00
committed by GitHub
parent bb6ce1f2c8
commit 37a237ad0f
10 changed files with 497 additions and 27 deletions

View File

@@ -159,7 +159,10 @@ export async function getResumeData(
try {
const backfill = await client.conversations.messages.list(
conversationId,
{ limit: MESSAGE_HISTORY_LIMIT, order: "desc" },
{
limit: MESSAGE_HISTORY_LIMIT,
order: "desc",
},
);
return {
pendingApproval: null,

View File

@@ -72,6 +72,7 @@ export async function sendMessageStream(
stream_tokens: opts.streamTokens ?? true,
background: opts.background ?? true,
client_tools: getClientToolsFromRegistry(),
include_compaction_messages: true,
},
requestOptions,
);
@@ -81,10 +82,11 @@ export async function sendMessageStream(
conversationId,
{
messages: messages,
stream: true,
streaming: true,
stream_tokens: opts.streamTokens ?? true,
background: opts.background ?? true,
client_tools: getClientToolsFromRegistry(),
include_compaction_messages: true,
},
requestOptions,
);