.? on active_window/active_pane without guard in cmdNewSession.? on active_window/active_pane without guard in cmdNewSessionFile: src/cmd/cmd.zig:27
Severity: MEDIUM
Status: ✅ FIXED — replaced .? with orelse return .err. Test extended to verify window/pane invariants.
const session = server.newSession(name, 80, 24) catch return .err;
const pane = session.active_window.?.active_pane.?;
Currently safe by invariant (newSession always creates a window with a pane). If the invariant is broken by a future code change, this panics.