Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion agents-run-api/src/app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -199,8 +199,10 @@ function createExecutionHono(
// Extract conversation ID from JSON body if present
let conversationId: string | undefined;
if (c.req.header('content-type')?.includes('application/json')) {
//look into
try {
const body = await c.req.json();
const cloned = c.req.raw.clone();
const body = await cloned.json().catch(() => null);
conversationId = body?.conversationId;
} catch (_) {
logger.debug('Conversation ID not found in JSON body');
Expand Down