mirror of
https://github.com/openai/codex.git
synced 2026-05-03 04:42:20 +03:00
fix: disable review rollout filtering (#7371)
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user