We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c42549d commit 20bb569Copy full SHA for 20bb569
codex-rs/core/src/codex_tests.rs
@@ -1154,8 +1154,8 @@ async fn fork_startup_context_then_first_turn_diff_snapshot() {
1154
.map(|(idx, item)| match item {
1155
ResponseItem::Message { role, .. } => format!("{idx:02}:message/{role}"),
1156
other => {
1157
- let item_type = serde_json::to_value(other)
1158
- .expect("serialize snapshot item")
+ let item = serde_json::to_value(other).expect("serialize snapshot item");
+ let item_type = item
1159
.get("type")
1160
.and_then(serde_json::Value::as_str)
1161
.unwrap_or("<missing_type>");
0 commit comments