fix(harness): REFUTES task #252, the two window resize defect I reported was my own Command M master
I opened #252 an hour ago saying a resize with a second window open leaves iTerm2 main window with no title bar and no menu bar, with an A/B that looked clean. IT WAS NOT A DEFECT. I minimised the window myself and then filed the consequence. WHAT ACTUALLY HAPPENED. The shortcut I sent was "raw:-M,logo,comma,-m,logo". A bare word in a wtype argument list is TEXT, not a key name, so wtype typed the five letters c, o, m, m, a with Command held. The application received Command C, Command O, Command M, Command M and Command A. Command M is Minimize. Command O is what opened the Profiles window I thought Command comma had opened. WHY A MINIMISED WINDOW LOOKS LIKE A RESIZE DEFECT, which is the part worth keeping. -platformWindow:frameChanged:didSize: does not assign the new frame when the window is miniaturized. So every later resize reads the frame back as the PREVIOUS size, the insist mechanism concludes the application is demanding a bigger window, the backing bitmap is grown to hold it, and the presented buffer then takes the wrong rows of that bitmap because it bottom anchors a window that is no longer that tall. Title bar and menu bar fall outside the buffer. None of that is wrong on its own; the premise was. MEASURED, with a real Command comma via -k: wrong form window 9 created, frame read back 1256x684 after a 1000x600 resize, 1 oversize correct form NO second window at all, frame 1000x600, ZERO oversize backings So there is no two window resize defect to fix, and iTerm2 does not bind Command comma. WHAT SURVIVES AS A REAL OBSERVATION: iTerm2 Profiles opens and renders correctly, and clicking the Default row selects it with a full width highlight and enables Split Horizontally and Split Vertically. That was all LOOKED AT and it was opened by Command O. THREE THINGS KEPT, because each of them answered a question and will answer it again: app-drive.sh now documents that a named key needs -k and a bare word is typed as text, with this failure as the reason. A CIDER_WAYLAND_TRACE_GEOMETRY line prints the frame a window reads back against the size it was given, which is what turned an inference about insist into a direct reading. cocotron patch 0077 prints a BACKTRACE when a window is asked to miniaturize. That is what named the caller in one run: NSMenu performKeyEquivalent: matching the Minimize item. The trace earned its place by exonerating the port rather than by finding a defect in it. GATES: darling-testsuite 69 of 69, patch record PASS at 77 cocotron patches, roster sweep all seven LOOKED AT, roster input 7 of 7 LOOKED AT.