Extract shared footer hint wrapping in the TUI (#44354)

## What changed

Replace duplicated footer wrapping in the MCP elicitation and request-user-input overlays with `wrap_hint_rows`. Preserve whole-hint grouping, display-width and separator accounting, oversized hints, and the single empty row for empty input.

## Testing

Add unit tests for Unicode display widths, whole-hint wrapping, oversized hints at zero width, and empty input.

GitOrigin-RevId: 4d8ead0acbfa3bf9241baedb86d2476566d26ebc
This commit is contained in:
Eric Traut authored and copyberry committed 2026-09-10 00:57:33 +00:00
1 parent 0447e4a1fd
commit e2a9ee05f4
5 files changed
+92 -76

No files matched your search

+1
View File
@@ -155,6 +155,7 @@ mod ide_context;
mod inline_visualization;
pub(crate) mod insert_history;
pub use insert_history::insert_history_lines;
mod footer_hint;
mod key_hint;
mod keymap;
mod keymap_setup;