Keep the shouldQuitOnLastChatClosed decision matrix and the activateWindow restore -> show -> focus test. The two scenario tests rebuilt main.ts state in local variables and then asserted it (tautological), and the remaining activateWindow cases only pin no-op paths.