@@ -323,6 +323,7 @@ describe('convertCbToModelMessages', () => {
323323 text: 'Second user message',
324324 },
325325 ],
326+ sentAt: expect.any(Number),
326327 },
327328 ])
328329 })
@@ -351,6 +352,7 @@ describe('convertCbToModelMessages', () => {
351352 text: 'Second assistant message',
352353 },
353354 ],
355+ sentAt: expect.any(Number),
354356 },
355357 ])
356358 })
@@ -530,6 +532,7 @@ describe('convertCbToModelMessages', () => {
530532 expect.objectContaining({ role: 'assistant' }),
531533 {
532534 role: 'user',
535+ sentAt: expect.any(Number),
533536 content: [
534537 {
535538 type: 'text',
@@ -571,6 +574,7 @@ describe('convertCbToModelMessages', () => {
571574 expect.objectContaining({ role: 'assistant' }),
572575 {
573576 role: 'user',
577+ sentAt: expect.any(Number),
574578 content: [
575579 {
576580 type: 'text',
@@ -609,6 +613,7 @@ describe('convertCbToModelMessages', () => {
609613 expect.objectContaining({ role: 'assistant' }),
610614 {
611615 role: 'user',
616+ sentAt: expect.any(Number),
612617 content: [
613618 {
614619 type: 'text',
@@ -648,6 +653,7 @@ describe('convertCbToModelMessages', () => {
648653 expect.objectContaining({ role: 'assistant' }),
649654 {
650655 role: 'user',
656+ sentAt: expect.any(Number),
651657 content: [
652658 { type: 'text', text: 'More context' },
653659 {
@@ -717,6 +723,7 @@ describe('convertCbToModelMessages', () => {
717723 expect.objectContaining({ role: 'system' }),
718724 {
719725 role: 'user',
726+ sentAt: expect.any(Number),
720727 content: [
721728 {
722729 type: 'text',
@@ -759,6 +766,7 @@ describe('convertCbToModelMessages', () => {
759766 expect.objectContaining({ role: 'system' }),
760767 {
761768 role: 'user',
769+ sentAt: expect.any(Number),
762770 content: [
763771 { type: 'text', text: 'Longer text' },
764772 {
@@ -807,6 +815,7 @@ describe('convertCbToModelMessages', () => {
807815 expect(result).toEqual([
808816 {
809817 role: 'assistant',
818+ sentAt: expect.any(Number),
810819 content: [
811820 {
812821 type: 'tool-call',
@@ -815,7 +824,7 @@ describe('convertCbToModelMessages', () => {
815824 input: { param: 'value' },
816825 },
817826 ],
818- } satisfies AssistantModelMessage ,
827+ },
819828 ])
820829 })
821830
0 commit comments