mirror of
https://github.com/openai/codex.git
synced 2026-11-16 22:00:36 +00:00
Preserve multiline status lines in unfocused chat panes (#61141)
## Why Unfocused chat panes reduced status content to a single dim line, hiding rows that were visible while focused. ## What changed - Share status measurement, wrapping, rendering, and footer row allocation between the main conversation and side chats. - Retain structured status content in inactive side chats so native and extension status lines can use the available rows and reflow when resized. - Keep unfocused status content dimmed with hyperlinks suppressed, while respecting space reserved for the draft and footer hints. ## Testing Add regression coverage for status reflow across split-pane focus switches and resizing, and update extension status coverage to verify multiple dimmed rows when unfocused. GitOrigin-RevId: f4def37259fe106d6a3fac9fe4c6cc2d4972f244
This commit is contained in:
@@ -581,10 +581,7 @@ impl App {
|
||||
// Painting those rows tells us whether newer activity is still hidden,
|
||||
// which can change the footer hint and the composer's measured height.
|
||||
let footer = view.footer_with_navigation(footer_width, motion, latest_navigation);
|
||||
// Allow up to two-thirds of the pane, or eight rows on short panes when they fit.
|
||||
let max_composer_height = ((u32::from(area.height) * 2 / 3) as u16)
|
||||
.max(8)
|
||||
.min(area.height);
|
||||
let max_composer_height = side_pane::composer_height_limit(area.height);
|
||||
let unfocused = matches!(
|
||||
self.conversation_frame.sidebar,
|
||||
Some(sidebar::SidebarLayout::Chooser {
|
||||
|
||||
Reference in New Issue
Block a user