Condense TUI startup warnings (#42609)

## What changed

- Coalesce configuration, skill, sandbox, and MCP startup diagnostics into a single summary below the session header, including MCP and sign-in counts.
- Keep the complete warning text in the transcript and update the summary's transcript shortcut when key bindings change.
- Continue rendering warnings that arrive after work begins as inline history entries.
- Hide the MCP startup status row before a turn while preserving the configured interrupt shortcut.

## Testing

- Add coverage for warning ordering and deduplication, transcript details, MCP sign-in counts, resumed sessions, runtime warnings, reflow, backtracking, and interruption without a visible status row.

GitOrigin-RevId: 009657cf04f1d3a52270cf096eebf9db7513c040
This commit is contained in:
Ian MacLeod authored and copyberry committed 2026-09-03 20:25:59 +00:00
1 parent ed391d4dd2
commit 32c303c197
31 files changed
+728 -69

No files matched your search

@@ -935,6 +935,29 @@ async fn live_app_server_strict_review_required_notification_renders_message() {
assert!(chat.bottom_pane.is_task_running());
}
#[tokio::test]
async fn config_warning_during_turn_remains_inline() {
let (mut chat, mut rx, _op_rx) = make_chatwidget_manual(/*model_override*/ None).await;
handle_turn_started(&mut chat, "turn-1");
chat.handle_server_notification(
ServerNotification::ConfigWarning(ConfigWarningNotification {
summary: "Invalid configuration; using defaults.".into(),
details: Some("Check the project configuration.".into()),
path: None,
range: None,
}),
/*replay_kind*/ None,
);
let cells = drain_insert_history(&mut rx);
insta::assert_snapshot!(
"runtime_config_warning",
cells
.iter()
.map(|lines| lines_to_single_string(lines))
.collect::<String>()
);
}
#[tokio::test]
async fn live_app_server_config_warning_prefixes_summary() {
let (mut chat, mut rx, _op_rx) = make_chatwidget_manual(/*model_override*/ None).await;
@@ -949,7 +972,7 @@ async fn live_app_server_config_warning_prefixes_summary() {
/*replay_kind*/ None,
);
let cells = drain_insert_history(&mut rx);
let cells = drain_insert_history_transcript(&mut rx);
assert_eq!(cells.len(), 1, "expected one warning history cell");
let rendered = lines_to_single_string(&cells[0]);
assert!(