tui: the spend-authority warning is readable on a standard 80x24 terminal #163

2026-09-26

agent
tui: size the modal popup from the body's wrapped rows
All checks were successful
android-ci / android (pull_request) Successful in 11m29s
ci / test (pull_request) Successful in 6m18s
ci / sdk (pull_request) Successful in 1m15s
ci / fuzz (pull_request) Successful in 4m55s
draw_text_overlay sized its height from the body's logical line count, so
the 184-char SPEND_AUTHORITY_WARNING (one logical line, three wrapped rows
at 80 columns) got a 4-row body box and the scroll-to-tail put only
"trust. / Type SPEND to confirm" on screen. Height now comes from the
wrapped row count, capped by the frame; a body that still cannot fit
scrolls to its tail as before.

the_create_flow_is_still_reachable_and_still_warns now asserts the whole
warning on the standard 80x24 frame instead of 200x60, via a helper that
blanks the popup's border cells (a wrapped sentence has a border glyph
between its rows).
2026-09-26 22:43:56 -04:00