Skip to content

fix(capture): follow allowScreenCapture only, warn when the window is visible - #160

Merged
alpha5611331 merged 3 commits into
mainfrom
fix/screen-capture-flag-only
Nov 27, 2026
Merged

alpha5611331 merged 3 commits into
mainfrom
fix/screen-capture-flag-only

Conversation

@alpha5611331

@alpha5611331 alpha5611331 commented Nov 27, 2026 •

Copy link
Copy Markdown
Member

Closes #159

What changes

  • Capture follows one flag. shouldProtectContent() is now ownCaptures > 0 || !allowScreenCapture. Stealth no longer forces protection on, and the dev-only --disable-content-protection flag is removed (also dropped from nodemon.show.json). The app's own action-suggestion screenshot still hides the window for its own capture.
  • Capture status (useScreenCaptureStatus): capturable when the setting is on; protected when it is off on Windows; limited when it is off anywhere else (macOS, where ScreenCaptureKit apps ignore the protection by design, and Linux, which has none).
  • Warning before a live start. ScreenCaptureNoticeDialog opens after the headphone notice unless the status is protected:
    • capturable: Hide and start (turns the setting off) or Start anyway.
    • limited: explains that the window may still be captured.
    • Cancel goes home, the same as the headphone notice.
  • Status during the session. ScreenCaptureBadge shows all three states (red / amber / green "Invisible to capture") on the control bar (icon only) and in the stealth status panel (label from 1000px up).
  • Copy. Removed every claim that stealth hides the app from capture (stealth hotkey, stealth tooltip, setting description) in all 9 locales, plus README and CLAUDE.md.

Tests

  • test/content-protection.test.mjs: stealth now leaves protection alone; the own-capture checks are unchanged.
  • New test/screen-capture-notice.test.mjs (source-level): status mapping, notice ordering, cancel path, protected state rendered, both badges.
  • pnpm lint, both tsc configs, pnpm build, pnpm test:main pass locally and in CI.

Not verified

  • Not run in a real Electron session or screen share.
  • Control bar fit at the 840px minimum width with the badge added.
  • The new locale strings were written by Claude and want a native-speaker pass.

🤖 Generated with Claude Code

Stealth no longer forces content protection. On macOS ScreenCaptureKit
ignores it anyway, so the app now warns before a live start and shows
a badge on the control bar and in stealth when the window is capturable
or protection is limited.

Closes #159

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@gitar-bot

gitar-bot Bot commented Nov 27, 2026 •

Copy link
Copy Markdown

Gitar is working

Verification

Rules No rules evaluated

Functional validation Not enabled

Set up

Auto-approval Not enabled

Set up

Gitar

alpha5611331 and others added 2 commits November 27, 2026 12:32
Show the stealth badge label only from 1000px so the status row fits
at 840px, and drop comments that still said stealth forces protection.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The badge now renders a green "Invisible to capture" state too. Only
Windows reports protected; macOS and Linux read as limited, so the
green state never claims protection the OS does not give.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@alpha5611331
alpha5611331 merged commit ddf4ce3 into main Nov 27, 2026
1 check passed
@alpha5611331
alpha5611331 deleted the fix/screen-capture-flag-only branch November 27, 2026 18:53
@alpha5611331 alpha5611331 self-assigned this Nov 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Screen capture should follow allowScreenCapture only, and warn when the window is capturable

1 participant