File: src/server/render.zig:276–292
Severity: MEDIUM
Status: ✅ FIXED — loop now continues when pb.y == 0 and only draws on the split border row pb.y - 1.
const top_y = if (pb.y > 0) pb.y - 1 else pb.y;
The branch is inverted. drawLayoutBorders only draws borders at split boundaries, never at the outer top edge, so the topmost pane’s content genuinely starts at pb.y == 0. For that pane the else pb.y branch writes border_format into row 0 — its first content line — corrupting it. Border text should only be written on the row above a pane (pb.y - 1), and the topmost pane has no such row, so it must be skipped.
Fix: if (pb.y == 0) continue; const top_y = pb.y - 1;