mirror of
https://github.com/openai/codex.git
synced 2026-10-26 18:38:47 +00:00
core: fix fork snapshot helper borrow
Co-authored-by: Codex <noreply@openai.com>
This commit is contained in:
co-authored by
Codex
parent
c42549daab
commit
20bb569628
@@ -1154,8 +1154,8 @@ async fn fork_startup_context_then_first_turn_diff_snapshot() {
|
||||
.map(|(idx, item)| match item {
|
||||
ResponseItem::Message { role, .. } => format!("{idx:02}:message/{role}"),
|
||||
other => {
|
||||
let item_type = serde_json::to_value(other)
|
||||
.expect("serialize snapshot item")
|
||||
let item = serde_json::to_value(other).expect("serialize snapshot item");
|
||||
let item_type = item
|
||||
.get("type")
|
||||
.and_then(serde_json::Value::as_str)
|
||||
.unwrap_or("<missing_type>");
|
||||
|
||||
Reference in New Issue
Block a user