mirror of
https://github.com/openai/codex.git
synced 2026-11-27 23:31:09 +00:00
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:
1 parent
ed391d4dd2
commit
32c303c197
31 files changed
+728
-69
No files matched your search
+9
@@ -0,0 +1,9 @@
|
||||
---
|
||||
source: tui/src/app/tests/startup_warnings_tests.rs
|
||||
expression: lines_to_single_string(&warnings.transcript_lines(40))
|
||||
---
|
||||
⚠ MCP alpha: connection unavailable
|
||||
⚠ MCP beta: connection unavailable
|
||||
⚠ MCP gamma: connection unavailable
|
||||
⚠ MCP startup incomplete (failed: alpha,
|
||||
beta, gamma)
|
||||
+7
@@ -0,0 +1,7 @@
|
||||
---
|
||||
source: tui/src/app/tests/startup_warnings_tests.rs
|
||||
expression: warnings.display_lines(100)
|
||||
---
|
||||
[
|
||||
Line::from(Span::from("⚠ 3 MCP startup issues (2 need sign-in) · ctrl + t for details").yellow().dim()),
|
||||
]
|
||||
+7
@@ -0,0 +1,7 @@
|
||||
---
|
||||
source: tui/src/app/tests/startup_warnings_tests.rs
|
||||
expression: "app.transcript_cells[1].display_lines(100)"
|
||||
---
|
||||
[
|
||||
Line::from(Span::from("⚠ 4 startup issues (3 MCP; 2 need sign-in) · ctrl + t for details").yellow().dim()),
|
||||
]
|
||||
Reference in new issue
Block a user