Persona T7 fix: the retry's call record compiles

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Meta Vens 2026-11-27 20:06:53 +01:00
commit f9a0e1ef2d

View file

@ -840,7 +840,7 @@ pub(crate) fn decide_in(model: &dyn Model, segment_id: &str, packet: &Packet, na
if let Some(reason) = failed {
call["failed"] = json!(reason);
}
decision["calls"].as_array_mut().into_iter().for_each(|calls| calls.push(call));
decision["calls"].as_array_mut().into_iter().for_each(|calls| calls.push(call.clone()));
decision["memory_retried"] = json!(again.iter().map(|(text, reason)| json!({ "text": text, "reason": reason })).collect::<Vec<_>>());
match second {
Some(second) => {