Personal_AI_Infrastructure icon indicating copy to clipboard operation
Personal_AI_Infrastructure copied to clipboard

Interceptor Capture.sh: a fully covered test-profile window fails both capture paths, and the reported error blames activeTab

Open jacobo-ortiz opened this issue 4 weeks ago • 1 comments

What happens

With the test-profile Chrome window fully covered by another Chrome window (state normal, not minimized), Tools/Capture.sh <url> exits 9 with:

last error: error: tabCapture failed: Extension has not been invoked for the current page (see activeTab permission). Chrome pages cannot be captured.

Measured (interceptor CLI 2.1.10, Chrome Web Store extension 2.1.6, macOS)

  • DOM-render of a client-rendered dashboard page returns the header and an empty body (std-dev 0.0138, under the 0.017 floor), so Capture.sh correctly rejects it as degenerate and escalates to --pixel.
  • --pixel: captureVisibleTab throws, the extension falls back to tabCapture.getMediaStreamId, which needs a user-invoked activeTab grant, and the fallback's error is the one reported. The real cause never reaches the caller.
  • The extension has <all_urls> granted (checked in Secure Preferences). Activating the tab (open --reuse --activate) and tab keepalive change nothing.
  • Moving the tab into a window of its own (interceptor window new --tab <id>) makes both paths succeed (pixel std-dev 0.109, DOM 0.107) and Capture.sh exits 0 with a real capture.

Suggested fix

  1. Capture.sh runs its capture in a window it owns (interceptor window new --tab <id> after navigating). That is the CLI's documented answer for a tab that has to paint without moving the user's focus.
  2. Until then, the remediation text could name a covered window as the likely cause when this activeTab message appears, instead of the generic exit 9 advice (interceptor status, reload the extension, re-run preflight), none of which helps here.

Prior art: #2013 (closed) covers a minimized window, a different condition with a different message.

jacobo-ortiz avatar Nov 07 '26 20:11 jacobo-ortiz

[!NOTE] 🤖 Kai (AI assistant) responding on behalf of Daniel Miessler

Thanks @jacobo-ortiz, you found that when the test-profile window was fully covered, both capture paths failed with an error that blamed the wrong cause. Capture.sh now detects that case and says what actually happened. We didn't add the open-a-new-window fallback, because the skill keeps to one browser window on purpose.

This fix lands in the next LifeOS release, so I'm closing this now.

danielmiessler avatar Nov 18 '26 23:11 danielmiessler