This commit is contained in:
Roy Han
2026-03-16 18:48:53 -07:00
parent 56b0fe29fd
commit 1879c53d6e
4 changed files with 11 additions and 0 deletions

View File

@@ -258,6 +258,7 @@ async fn process_compacted_history_preserves_separate_guardian_developer_message
content: vec![ContentItem::InputText {
text: "stale developer message".to_string(),
}],
metadata: None,
end_turn: None,
phase: None,
},
@@ -267,6 +268,7 @@ async fn process_compacted_history_preserves_separate_guardian_developer_message
content: vec![ContentItem::InputText {
text: "summary".to_string(),
}],
metadata: None,
end_turn: None,
phase: None,
},

View File

@@ -82,6 +82,7 @@ async fn seed_guardian_parent_history(session: &Arc<Session>, turn: &Arc<TurnCon
text: "Please check the repo visibility and push the docs fix if needed."
.to_string(),
}],
metadata: None,
end_turn: None,
phase: None,
},
@@ -105,6 +106,7 @@ async fn seed_guardian_parent_history(session: &Arc<Session>, turn: &Arc<TurnCon
text: "The repo is public; I now need approval to push the docs fix."
.to_string(),
}],
metadata: None,
end_turn: None,
phase: None,
},

View File

@@ -488,8 +488,10 @@ mod job {
id,
role,
content,
metadata,
end_turn,
phase,
..
} = item
else {
return should_persist_response_item_for_memories(item).then(|| item.clone());
@@ -516,6 +518,7 @@ mod job {
id: id.clone(),
role: role.clone(),
content,
metadata: metadata.clone(),
end_turn: *end_turn,
phase: phase.clone(),
})

View File

@@ -22,6 +22,7 @@ fn serializes_memory_rollout_with_agents_removed_but_environment_kept() {
text: "<environment_context>\n<cwd>/tmp</cwd>\n</environment_context>".to_string(),
},
],
metadata: None,
end_turn: None,
phase: None,
};
@@ -32,6 +33,7 @@ fn serializes_memory_rollout_with_agents_removed_but_environment_kept() {
text: "<skill>\n<name>demo</name>\n<path>skills/demo/SKILL.md</path>\nbody\n</skill>"
.to_string(),
}],
metadata: None,
end_turn: None,
phase: None,
};
@@ -42,6 +44,7 @@ fn serializes_memory_rollout_with_agents_removed_but_environment_kept() {
text: "<subagent_notification>{\"agent_id\":\"a\",\"status\":\"completed\"}</subagent_notification>"
.to_string(),
}],
metadata: None,
end_turn: None,
phase: None,
};
@@ -64,6 +67,7 @@ fn serializes_memory_rollout_with_agents_removed_but_environment_kept() {
text: "<environment_context>\n<cwd>/tmp</cwd>\n</environment_context>"
.to_string(),
}],
metadata: None,
end_turn: None,
phase: None,
},