mirror of
https://github.com/openai/codex.git
synced 2026-05-03 12:52:11 +03:00
Remove redundant developer-role check in compaction filter
This commit is contained in:
@@ -442,9 +442,6 @@ fn is_user_shell_command_record(item: &ResponseItem) -> bool {
|
|||||||
pub(crate) fn should_keep_compacted_history_item(item: &ResponseItem) -> bool {
|
pub(crate) fn should_keep_compacted_history_item(item: &ResponseItem) -> bool {
|
||||||
match item {
|
match item {
|
||||||
ResponseItem::Message { role, .. } => {
|
ResponseItem::Message { role, .. } => {
|
||||||
if role == "developer" {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
if role != "user" {
|
if role != "user" {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user