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:
Joe Savona
2026-11-16 23:57:23 +00:00
committed by copyberry
parent 56e43660f8
commit 30be9534c8
5 changed files with 88 additions and 19 deletions
+6
View File
@@ -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",