Skip to content

Commit 1f94652

Browse files
committed
add messageHistoryLength to start event
1 parent b6ab213 commit 1f94652

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

backend/src/websockets/websocket-action.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -224,6 +224,8 @@ export const callMainPrompt = async (
224224
chunk: {
225225
type: 'start',
226226
agentId: action.sessionState.mainAgentState.agentType ?? undefined,
227+
messageHistoryLength:
228+
action.sessionState.mainAgentState.messageHistory.length,
227229
},
228230
})
229231

common/src/types/print-mode.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ import { toolResultOutputSchema } from './messages/content-part'
55
export const printModeStartSchema = z.object({
66
type: z.literal('start'),
77
agentId: z.string().optional(),
8+
messageHistoryLength: z.number(),
89
})
910
export type PrintModeStart = z.infer<typeof printModeStartSchema>
1011

0 commit comments

Comments
 (0)