@@ -569,7 +569,7 @@ NOTE: At any point in time through this workflow you should feel free to ask the
569569 sessionID,
570570 mode : task . agent ,
571571 agent : task . agent ,
572- variant : lastUser . variant ,
572+ variant : lastUser . model . variant ,
573573 path : { cwd : ctx . directory , root : ctx . worktree } ,
574574 cost : 0 ,
575575 tokens : { input : 0 , output : 0 , reasoning : 0 , cache : { read : 0 , write : 0 } } ,
@@ -967,17 +967,20 @@ NOTE: At any point in time through this workflow you should feel free to ask the
967967 : undefined
968968 const variant = input . variant ?? ( ag . variant && full ?. variants ?. [ ag . variant ] ? ag . variant : undefined )
969969
970- const info : MessageV2 . Info = {
970+ const info : MessageV2 . User = {
971971 id : input . messageID ?? MessageID . ascending ( ) ,
972972 role : "user" ,
973973 sessionID : input . sessionID ,
974974 time : { created : Date . now ( ) } ,
975975 tools : input . tools ,
976976 agent : ag . name ,
977- model,
977+ model : {
978+ providerID : model . providerID ,
979+ modelID : model . modelID ,
980+ variant,
981+ } ,
978982 system : input . system ,
979983 format : input . format ,
980- variant,
981984 }
982985
983986 yield * Effect . addFinalizer ( ( ) =>
@@ -1436,7 +1439,7 @@ NOTE: At any point in time through this workflow you should feel free to ask the
14361439 role : "assistant" ,
14371440 mode : agent . name ,
14381441 agent : agent . name ,
1439- variant : lastUser . variant ,
1442+ variant : lastUser . model . variant ,
14401443 path : { cwd : ctx . directory , root : ctx . worktree } ,
14411444 cost : 0 ,
14421445 tokens : { input : 0 , output : 0 , reasoning : 0 , cache : { read : 0 , write : 0 } } ,
0 commit comments