mirror of
https://github.com/openai/codex.git
synced 2026-11-18 23:02:23 +00:00
Respect rendered width when adding TUI history (#38075)
## What changed - Initialize new chat widgets with the current terminal width. - Determine whether an added history cell is visible using the active history render mode and the width available after ambient-pet reservations. - Saturate diff-summary width calculations so extremely narrow terminals remain renderable. ## Testing - Cover width-sensitive history insertion with an ambient pet, raw-output mode, and a diff summary narrower than its indentation. GitOrigin-RevId: 82d20900e0637431be7646b4f4aba61810ff74c1
This commit is contained in:
1 parent
a817d9424d
commit
33aaf91366
7 files changed
+84
-12
No files matched your search
@@ -1019,6 +1019,7 @@ impl App {
|
||||
(ChatWidget::new_with_app_event(init), Some(forked))
|
||||
}
|
||||
};
|
||||
chat_widget.note_rendered_width(tui.terminal.last_known_screen_size.width);
|
||||
chat_widget.remote_connection = remote_connection;
|
||||
let thread_and_widget_ms = thread_and_widget_started_at.elapsed().as_millis();
|
||||
chat_widget
|
||||
|
||||
Reference in new issue
Block a user