mirror of
https://github.com/openai/codex.git
synced 2026-11-06 20:20:34 +00:00
codex: fix CI failure on PR #16964
This commit is contained in:
@@ -2489,8 +2489,8 @@ impl CodexMessageProcessor {
|
||||
sandbox_mode: sandbox.map(SandboxMode::to_core),
|
||||
codex_linux_sandbox_exe: self.arg0_paths.codex_linux_sandbox_exe.clone(),
|
||||
main_execve_wrapper_exe: self.arg0_paths.main_execve_wrapper_exe.clone(),
|
||||
base_instructions: thread_instruction_override(base_instructions),
|
||||
developer_instructions: thread_instruction_override(developer_instructions),
|
||||
base_instructions: base_instructions.map(Option::unwrap_or_default),
|
||||
developer_instructions: developer_instructions.map(Option::unwrap_or_default),
|
||||
personality,
|
||||
..Default::default()
|
||||
}
|
||||
@@ -7843,14 +7843,6 @@ fn normalize_thread_list_cwd_filter(
|
||||
})
|
||||
}
|
||||
|
||||
fn thread_instruction_override(instructions: Option<Option<String>>) -> Option<String> {
|
||||
match instructions {
|
||||
None => None,
|
||||
Some(None) => Some(String::new()),
|
||||
Some(Some(instructions)) => Some(instructions),
|
||||
}
|
||||
}
|
||||
|
||||
#[cfg(test)]
|
||||
mod thread_list_cwd_filter_tests {
|
||||
use super::normalize_thread_list_cwd_filter;
|
||||
|
||||
@@ -241,8 +241,8 @@ async fn turn_start_honors_explicit_null_thread_instructions() -> Result<()> {
|
||||
);
|
||||
let developer_texts = request.message_input_texts("developer");
|
||||
assert!(
|
||||
developer_texts.is_empty(),
|
||||
"did not expect developer instruction messages: {developer_texts:?}"
|
||||
developer_texts.iter().all(|text| !text.is_empty()),
|
||||
"did not expect empty developer instruction messages: {developer_texts:?}"
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user