Print warning when config does not meet requirements (#10792)

<img width="1019" height="284" alt="Screenshot 2026-02-05 at 23 34 08"
src="https://github.com/user-attachments/assets/19ec3ce1-3c3b-40f5-b251-a31d964bf3bb"
/>

Currently, if a config value is set that fails the requirements, we exit
Codex.

Now, instead of this, we print a warning and default to a
requirements-permitting value.
This commit is contained in:
gt-oai
2026-02-06 01:12:44 +00:00
committed by GitHub
Unverified
parent 0d8b2b74c4
commit d74fa8edd1
3 changed files with 112 additions and 24 deletions
+8
View File
@@ -961,6 +961,14 @@ impl Session {
}),
});
}
for message in &config.startup_warnings {
post_session_configured_events.push(Event {
id: "".to_owned(),
msg: EventMsg::Warning(WarningEvent {
message: message.clone(),
}),
});
}
maybe_push_unstable_features_warning(&config, &mut post_session_configured_events);
let auth = auth.as_ref();