Merge branch 'rhan/oob-turn-metadata' into rhan/oob-queue

This commit is contained in:
rhan-oai
2026-03-25 13:52:56 -07:00
committed by GitHub
6 changed files with 152 additions and 1 deletions
+8
View File
@@ -2271,6 +2271,14 @@ pub enum InitialHistory {
}
impl InitialHistory {
pub fn scan_rollout_items(&self, mut predicate: impl FnMut(&RolloutItem) -> bool) -> bool {
match self {
InitialHistory::New => false,
InitialHistory::Resumed(resumed) => resumed.history.iter().any(&mut predicate),
InitialHistory::Forked(items) => items.iter().any(predicate),
}
}
pub fn forked_from_id(&self) -> Option<ThreadId> {
match self {
InitialHistory::New => None,