fix: disable review rollout filtering (#7371)

This commit is contained in:
jif-oai
2025-12-01 09:04:13 +00:00
committed by GitHub
parent 40006808a3
commit a421eba31f
2 changed files with 18 additions and 23 deletions

View File

@@ -71,7 +71,6 @@ impl ContextManager {
// With extra response items filtered out and GhostCommits removed.
pub(crate) fn get_history_for_prompt(&mut self) -> Vec<ResponseItem> {
let mut history = self.get_history();
history.retain(|item| !is_review_rollout_item(item));
Self::remove_ghost_snapshots(&mut history);
history
}
@@ -250,15 +249,6 @@ fn is_api_message(message: &ResponseItem) -> bool {
}
}
fn is_review_rollout_item(item: &ResponseItem) -> bool {
matches!(item,
ResponseItem::Message {
id: Some(id),
..
} if id.starts_with("review:rollout:")
)
}
fn estimate_reasoning_length(encoded_len: usize) -> usize {
encoded_len
.saturating_mul(3)