Problem
This is broader than one destructive approval modal. CodeWhale still has systemic TUI layout and text containment failures across modals and UI surfaces: text can overflow, bottom action rows can be clipped, important context can disappear below the visible frame, and long labels/commands/content can cross borders or push controls out of view.
The screenshot from June 29, 2026 shows one concrete symptom: the DESTRUCTIVE approval - exec_shell modal does not fully display its lower command/action area. Treat that screenshot as evidence of the broader class, not as the only failing surface.
The implementation agent needs to figure out the shared root causes and fix the UI/UX layout model once, instead of patching individual modal instances.
Scope
- All modal surfaces: destructive approvals, standard approvals, config/help/pickers, sub-agent views, command palettes, settings, confirmations, and list/detail modals.
- All text-heavy UI regions likely to overflow: command previews, policy explanations, intent text, labels, footers, action rows, status lines, sidebar rows, cards, tables, and wrapped paragraphs.
- All relevant terminal sizes, especially narrow and short viewports.
Required approach
- Audit the TUI layout/rendering primitives and identify where dimensions, wrapping, scrolling, and footer/action reservation are handled inconsistently.
- Establish shared layout contracts so containers reserve title/border/footer/action space first, constrain body content to the remaining area, and handle overflow explicitly.
- Replace ad hoc height guesses and one-off truncation with reusable helpers/components where possible.
- Make long text safe by default: wrap, truncate with clear affordance, or scroll depending on the surface.
- Ensure controls/actions remain visible and reachable even when body content is long.
Acceptance criteria
- No modal can hide its bottom action row or render content outside its border at supported terminal sizes.
- Long command text, policy/explanation text, labels, and footer/actions do not overflow their containers.
- Destructive approval, standard approval, config/help/picker, sub-agent/list-style, and command-palette-style modals have regression coverage at narrow, normal, and short terminal sizes.
- Representative non-modal UI text surfaces are audited and fixed where they share the same overflow/layout failure class.
- Tests or deterministic fixtures cover the shared primitives so future modal additions inherit the fix.
- The final PR documents the central layout contract and calls out any intentionally deferred edge cases.
Non-goals
- Do not patch only
exec_shell or only the screenshot case.
- Do not solve this by making every modal larger. The fix should make overflow behavior correct at constrained sizes.
Repro signal
Observed in the TUI destructive approval modal for exec_shell with a multi-line command and long intent text: the modal bottom content/action area is not fully visible inside the frame. Similar failures should be assumed possible anywhere long text enters a modal or fixed-width UI region.
Notes for the implementation agent
This is a v0.8.66 release-blocking UI/UX reliability task. Start from the shared layout/rendering code and test fixtures, not from the single screenshot. The goal is a systemic fix for all modal/text overflow behavior.
Problem
This is broader than one destructive approval modal. CodeWhale still has systemic TUI layout and text containment failures across modals and UI surfaces: text can overflow, bottom action rows can be clipped, important context can disappear below the visible frame, and long labels/commands/content can cross borders or push controls out of view.
The screenshot from June 29, 2026 shows one concrete symptom: the
DESTRUCTIVE approval - exec_shellmodal does not fully display its lower command/action area. Treat that screenshot as evidence of the broader class, not as the only failing surface.The implementation agent needs to figure out the shared root causes and fix the UI/UX layout model once, instead of patching individual modal instances.
Scope
Required approach
Acceptance criteria
Non-goals
exec_shellor only the screenshot case.Repro signal
Observed in the TUI destructive approval modal for
exec_shellwith a multi-line command and long intent text: the modal bottom content/action area is not fully visible inside the frame. Similar failures should be assumed possible anywhere long text enters a modal or fixed-width UI region.Notes for the implementation agent
This is a v0.8.66 release-blocking UI/UX reliability task. Start from the shared layout/rendering code and test fixtures, not from the single screenshot. The goal is a systemic fix for all modal/text overflow behavior.