szn

Bug 137 — session.zig — Window IDs are not unique after kills

137. session.zig — Window IDs are not unique after kills

File: src/session.zig:73 Severity: LOW Status: ✅ FIXED — added next_win_id counter; IDs are now monotonically increasing. Test added.

const win_id = self.windows.items.len;

Window ID is derived from array length. After killWindow (which uses swapRemove), a new window can receive the same ID as a previously killed window. This breaks any code that uses window IDs for identification.