codex: preserve empty developer instructions (#16964)

This commit is contained in:
Ahmed Ibrahim
2026-04-06 19:44:52 -07:00
parent 8ecfca3186
commit aafcfec146
3 changed files with 20 additions and 12 deletions
-2
View File
@@ -3664,7 +3664,6 @@ impl Session {
// stays isolated as its own top-level developer message for guardian subagents.
if !separate_guardian_developer_message
&& let Some(developer_instructions) = turn_context.developer_instructions.as_deref()
&& !developer_instructions.is_empty()
{
developer_sections.push(developer_instructions.to_string());
}
@@ -3779,7 +3778,6 @@ impl Session {
// subagent sees a distinct, easy-to-audit instruction block.
if separate_guardian_developer_message
&& let Some(developer_instructions) = turn_context.developer_instructions.as_deref()
&& !developer_instructions.is_empty()
&& let Some(guardian_developer_message) =
crate::context_manager::updates::build_developer_update_item(vec![
developer_instructions.to_string(),