make model optional in config (#7769)

- Make Config.model optional and centralize default-selection logic in
ModelsManager, including a default_model helper (with
codex-auto-balanced when available) so sessions now carry an explicit
chosen model separate from the base config.
- Resolve `model` once in `core` and `tui` from config. Then store the
state of it on other structs.
- Move refreshing models to be before resolving the default model
This commit is contained in:
Ahmed Ibrahim authored and GitHub committed 2025-12-10 11:19:00 -08:00
1 parent 8a71f8b634
commit cb9a189857
44 files changed
+838 -429

No files matched your search

@@ -140,7 +140,8 @@ impl EventProcessor for EventProcessorWithHumanOutput {
VERSION
);
let mut entries = create_config_summary_entries(config);
let mut entries =
create_config_summary_entries(config, session_configured_event.model.as_str());
entries.push((
"session id",
session_configured_event.session_id.to_string(),