mirror of
https://github.com/openai/codex.git
synced 2026-11-26 23:40:43 +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:
@@ -113,17 +113,6 @@ impl HyperlinkLine {
|
||||
self.mark_cells(area, buf);
|
||||
}
|
||||
|
||||
/// Reserve the last visible grapheme for an unlinked overflow marker.
|
||||
pub(crate) fn render_with_ellipsis(mut self, area: Rect, buf: &mut Buffer) {
|
||||
if area.is_empty() {
|
||||
return;
|
||||
}
|
||||
self.line =
|
||||
crate::line_truncation::truncate_line_with_ellipsis(self.line, usize::from(area.width));
|
||||
self.clip_hyperlinks_to_width(self.width().saturating_sub(1));
|
||||
self.render_fitted(area, buf);
|
||||
}
|
||||
|
||||
fn mark_cells(&self, area: Rect, buf: &mut Buffer) {
|
||||
if area.is_empty() {
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user