Warn when the connected Codex service is older than the CLI (#43622)

## What changed

Show an older-service notice at startup and reconnect when both versions are official stable releases. Display it in conversation history or the agents overview, with wrapping and a compact fallback for small terminals.

For the implicit local daemon, suggest `codex app-server daemon update` and warn that updating may interrupt active or queued work. Suppress repeated notices for the same service and version pair, and defer fresh-session notices until session attachment.

## Testing

Add coverage for version notice eligibility, local-only update guidance, service identity, startup ordering, reconnect deduplication, and overview rendering at narrow and short sizes.

GitOrigin-RevId: e0a5b306e0a4d405544c5f6eaa72f77df6d68e6d
This commit is contained in:
Eric Traut authored and copyberry committed 2026-09-07 23:52:29 +00:00
1 parent 4b0f44d304
commit 530383e36d
25 files changed
+605 -19

No files matched your search

+16 -1
View File
@@ -156,7 +156,22 @@ impl Renderable for AgentsOverviewView {
let [header, summary, divider, body, title, prompt, footer] = self.layout_areas(area);
let inset =
|rect: Rect| rect.inner(Margin::new(/*horizontal*/ 2, /*vertical*/ 0));
Line::from("Agent command center".bold()).render(inset(header), buf);
if let Some(notice) = &self.state().server_version_notice {
let header = inset(header);
let lines = textwrap::wrap(notice, usize::from(header.width.max(1)));
if lines.len() > usize::from(header.height) {
Line::from("Old srv".cyan()).render(header, buf);
} else {
for (offset, line) in lines.iter().enumerate() {
Line::from(line.as_ref().cyan()).render(
Rect::new(header.x, header.y + offset as u16, header.width, 1),
buf,
);
}
}
} else {
Line::from("Agent command center".bold()).render(inset(header), buf);
}
let (needs_you, working, ready) = self.rows.iter().fold((0, 0, 0), |counts, row| {
let (needs_you, working, ready) = counts;
match row.group {