mirror of
https://github.com/openai/codex.git
synced 2026-11-01 19:33:35 +00:00
co-authored by
Codex
parent
0be022063b
commit
73ee483833
@@ -327,7 +327,11 @@ async fn resume_includes_initial_messages_and_sends_prior_items() {
|
||||
.expect("permissions message");
|
||||
let pos_user_instructions = messages
|
||||
.iter()
|
||||
.position(|(role, text)| role == "user" && text.contains("be nice"))
|
||||
.position(|(role, text)| {
|
||||
role == "user"
|
||||
&& text.contains("be nice")
|
||||
&& (text.starts_with("# AGENTS.md instructions for "))
|
||||
})
|
||||
.expect("user instructions");
|
||||
let pos_environment = messages
|
||||
.iter()
|
||||
|
||||
Reference in New Issue
Block a user