Problem
Scrollback captured from a very narrow terminal can contain hard wraps that split words, making scroll mode hard to read on mobile.
Proposal
In scroll mode, attempt a reflow/readability pass so lines render for the current viewport width where feasible, instead of preserving narrow-pane visual wraps verbatim.
Notes
This should be best-effort and must avoid corrupting semantics for cases where exact spacing/alignment is important (tables/code blocks).
Scope
- Investigate whether reflow can be derived from available scrollback format
- Apply reflow only in scroll mode presentation layer
- Provide fallback to raw rendering when safe reflow is not possible
Acceptance Criteria
- Plain prose output becomes more readable in wider scroll mode views
- Mid-word narrow-wrap artifacts are reduced when feasible
- Raw rendering fallback remains available for non-reflow-safe content
- Tests cover at least one reflowed case and one fallback case
Problem
Scrollback captured from a very narrow terminal can contain hard wraps that split words, making scroll mode hard to read on mobile.
Proposal
In scroll mode, attempt a reflow/readability pass so lines render for the current viewport width where feasible, instead of preserving narrow-pane visual wraps verbatim.
Notes
This should be best-effort and must avoid corrupting semantics for cases where exact spacing/alignment is important (tables/code blocks).
Scope
Acceptance Criteria