144db33d0b
Replace three `stdout.columns ?? 80` / `stdout.rows ?? 24` spots in render.ts with `resolveSize(stdout).columns/rows`. The `??` guard only falls back on null/undefined, not on 0 — so non-TTY environments where stdout reports 0 columns would collapse Yoga layout to width 0. Ink's `getWindowSize` (utils.ts:8-23) uses a truthy guard (`if (columns && rows)`) and a fallback chain through terminal-size → 80/24 defaults. `resolveSize()` in useTerminalSize.ts already implements this chain; now exported and used by the renderer. The non-TTY viewportRows → 24 branch is preserved (Ink-aligned). Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>