mirror of
https://github.com/openai/codex.git
synced 2026-11-27 23:50:52 +00:00
Fall back to the built-in status line for invalid providers (#61915)
## Why An invalid `tui.status_line_provider` should not prevent startup in normal mode. ## What changed Use the built-in status line when the effective provider selection is invalid and emit a startup warning identifying its source. Keep the invalid selection's precedence so it overrides lower-priority providers, while preserving the original configuration for diagnostics and `config/read`. With `--strict-config`, reject invalid provider selections in every configuration source. ## Testing Update coverage for malformed user settings and incomplete profile selections, and add a CLI case verifying strict provider validation before terminal checks. GitOrigin-RevId: 797d1c71dd4803db59ca91880a07e2e2118ce097
This commit is contained in:
@@ -91,6 +91,12 @@ fn interactive_validates_config_before_requiring_terminal() -> Result<()> {
|
||||
"",
|
||||
"unknown configuration field",
|
||||
),
|
||||
(
|
||||
&["--strict-config", "-c", "tui.status_line_provider=42"],
|
||||
"config.toml",
|
||||
"",
|
||||
"Invalid `tui.status_line_provider` in session-flags",
|
||||
),
|
||||
(
|
||||
&["--profile", "work"],
|
||||
"work.config.toml",
|
||||
|
||||
Reference in New Issue
Block a user