mirror of
https://github.com/openai/codex.git
synced 2026-11-23 23:10:47 +00:00
Prioritize draft space when allocating composer footer rows (#60681)
## Why Status content and footer hints need to fit within the composer's height budget while preserving room for editing and active search controls. ## What changed - Share row allocation between composer measurement and rendering. Cap status and hints at two rows in inline scrollback, and scale the fullscreen cap from two to four rows with the available budget. - Reserve space for active footer controls, give suggestions and image previews priority over additional status rows, and avoid reserving an empty hints row when status is enabled. - Keep textarea row counts and scroll offsets as `usize`, saturating only the terminal height so very tall drafts remain scrollable with a visible caret. ## Testing Add layout and snapshot coverage for constrained height budgets, status and hints, image previews, slash suggestions, and transcript search cursors. Add a regression test for rendering a draft beyond the `u16` row limit. GitOrigin-RevId: 20fb0384ffc976dfd12e648004763feff0597dda
This commit is contained in:
@@ -605,6 +605,7 @@ async fn clipped_voice_composer_keeps_the_draft_and_cursor_visible() {
|
||||
|
||||
insta::assert_snapshot!(layouts.join("\n\n"), @"
|
||||
5 rows:
|
||||
voice ● listening f9 mute /voice stop
|
||||
› typed
|
||||
|
||||
6 rows:
|
||||
|
||||
Reference in New Issue
Block a user