mirror of
https://github.com/openai/codex.git
synced 2026-09-13 11:47:17 +00:00
fix missing metadata fields in protocol tests
This commit is contained in:
@@ -1286,6 +1286,7 @@ mod tests {
|
||||
item: CoreTurnItem::UserMessage(CoreUserMessageItem {
|
||||
id: "user-item-id".to_string(),
|
||||
content: Vec::new(),
|
||||
metadata: None,
|
||||
}),
|
||||
}),
|
||||
EventMsg::TurnComplete(TurnCompleteEvent {
|
||||
|
||||
@@ -7409,6 +7409,7 @@ mod tests {
|
||||
path: "app://demo-app".to_string(),
|
||||
},
|
||||
],
|
||||
metadata: None,
|
||||
});
|
||||
|
||||
assert_eq!(
|
||||
@@ -7449,6 +7450,7 @@ mod tests {
|
||||
},
|
||||
],
|
||||
phase: None,
|
||||
metadata: None,
|
||||
});
|
||||
|
||||
assert_eq!(
|
||||
@@ -7466,6 +7468,7 @@ mod tests {
|
||||
text: "final".to_string(),
|
||||
}],
|
||||
phase: Some(MessagePhase::FinalAnswer),
|
||||
metadata: None,
|
||||
});
|
||||
|
||||
assert_eq!(
|
||||
@@ -7481,6 +7484,7 @@ mod tests {
|
||||
id: "reasoning-1".to_string(),
|
||||
summary_text: vec!["line one".to_string(), "line two".to_string()],
|
||||
raw_content: vec![],
|
||||
metadata: None,
|
||||
});
|
||||
|
||||
assert_eq!(
|
||||
@@ -7499,6 +7503,7 @@ mod tests {
|
||||
query: Some("docs".to_string()),
|
||||
queries: None,
|
||||
},
|
||||
metadata: None,
|
||||
});
|
||||
|
||||
assert_eq!(
|
||||
|
||||
Reference in New Issue
Block a user