From 043a44665f06fd254826da80846831983d8cdf8c Mon Sep 17 00:00:00 2001 From: Lotus CI Date: Thu, 22 Oct 2026 21:07:55 -0400 Subject: [PATCH] ci(windows-smoke): control check that a hidden window can be shown (#8) Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_017PCb59uY3UKqDqt7B6hzd5 --- scripts/windows-smoke.mjs | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/scripts/windows-smoke.mjs b/scripts/windows-smoke.mjs index d94c0a6..552eb45 100644 --- a/scripts/windows-smoke.mjs +++ b/scripts/windows-smoke.mjs @@ -228,6 +228,19 @@ for (const [state, put] of [ record(name, 'fail', String(e).slice(0, 200)); } } +// Control for #8: can this machine show a hidden window at all? (A runner +// without an interactive desktop can't, and that isn't the app's fault.) +try { + await win('hide'); + await new Promise((r) => setTimeout(r, 1000)); + await win('show'); + await new Promise((r) => setTimeout(r, 1000)); + const shown = await win('is_visible'); + record('control: a hidden window can be shown again', shown ? 'pass' : 'info', `visible after show(): ${shown}`); +} catch (e) { + record('control: a hidden window can be shown again', 'info', String(e).slice(0, 160)); +} + // 9. System-wide voice hotkeys (#2): register PTT on F9, press and release F9 // through Windows (keybd_event, as a game in front would see it), expect a // pressed and a released `lotus-global-hotkey`; after clearing the bindings