Interceptor Capture.sh misclassifies a minimized test window as a daemon wedge; SKILL.md says DOM-render needs no visible window
Files: LifeOS/install/skills/Interceptor/Tools/Capture.sh (failure classification, lines 333–411 at ce046f26), SKILL.md line 419
A minimized test-profile window is refused by both capture paths, but Capture.sh treats it as a daemon wedge and SKILL.md says it works
On a current Interceptor (verified 0.23.25), if the test-profile Chrome window is minimized (not merely behind other windows or on another Space), both capture paths refuse immediately:
$ interceptor screenshot --context <ctx> --save
error: window <id> is minimized — DOM-render requires the window to be non-minimized
$ interceptor screenshot --context <ctx> --save --pixel
error: window <id> is minimized — captureVisibleTab cannot capture minimized windows
Capture.sh has no branch for this. Its classifier only knows stale-extension and wedge signatures (timeout|timed out|native port disconnected|not reachable), so the minimized error falls to the generic pixel retry, then:
Capture.sh: FAIL — capture did not succeed after recovery.
last error: [..] →ws screenshot
error: window 454123726 is minimized — captureVisibleTab cannot capture minimized windows
REMEDIATION:
1. interceptor status # daemon + bridge health
2. If browser verbs hang but status/contexts answer: reload the extension.
3. Re-run Tools/PreflightIsolation.sh and resolve any UUID-rot remediation.
Every remediation line points at the daemon/extension/pin; none of them is the cause, and an agent following them will "fix" a healthy daemon. Meanwhile SKILL.md line 419 says DOM-render:
does NOT require a foreground/visible tab — a backgrounded tab on another macOS Space is fine, and it's fail-fast
which is true for backgrounded/occluded/other-Space windows and false for minimized ones, so the agent has doc support for not suspecting the window.
Two constraints make this worth its own exit code: the skill's Hard Prohibitions forbid the agent from changing window state (no un-minimizing), and no retry, respawn, or path swap can help — it is an operator action.
Suggested fix
In Capture.sh, before the stale-extension / wedge classification:
if printf '%s' "$err" | grep -qi 'is minimized'; then
cat >&2 <<EOF
Capture.sh: test-profile window is MINIMIZED (exit 13) — neither DOM-render nor --pixel can capture a minimized window.
last error: $(printf '%s' "$err" | grep -i 'minimized' | head -1)
REMEDIATION (operator): un-minimize the test-profile Chrome window (behind other windows or on another Space is fine — only minimized is refused). Do NOT drive it with osascript or move it; re-run after.
EOF
exit 13
fi
and document exit 13 in the header. In SKILL.md line 419, qualify the sentence: backgrounded/occluded/other-Space is fine; a minimized window is refused by both paths.
Verified: with the change, a capture against a minimized window returns exit 13 with the operator message in under a second instead of running the recovery ladder and blaming the daemon.
Environment: macOS, Interceptor 0.23.25 signed-pkg install, skill version 4.3.18.
Landed: a minimized window is its own branch (exit 13 with an operator message) and SKILL.md is qualified. Next release. Thanks.