Repository navigation
fix(capture): follow allowScreenCapture only, warn when the window is visible - #160
Merged
Merged
Conversation
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>
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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #159
What changes
shouldProtectContent()is nowownCaptures > 0 || !allowScreenCapture. Stealth no longer forces protection on, and the dev-only--disable-content-protectionflag is removed (also dropped fromnodemon.show.json). The app's own action-suggestion screenshot still hides the window for its own capture.useScreenCaptureStatus):capturablewhen the setting is on;protectedwhen it is off on Windows;limitedwhen it is off anywhere else (macOS, where ScreenCaptureKit apps ignore the protection by design, and Linux, which has none).ScreenCaptureNoticeDialogopens after the headphone notice unless the status isprotected:capturable: Hide and start (turns the setting off) or Start anyway.limited: explains that the window may still be captured.ScreenCaptureBadgeshows 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).Tests
test/content-protection.test.mjs: stealth now leaves protection alone; the own-capture checks are unchanged.test/screen-capture-notice.test.mjs(source-level): status mapping, notice ordering, cancel path, protected state rendered, both badges.pnpm lint, bothtscconfigs,pnpm build,pnpm test:mainpass locally and in CI.Not verified
🤖 Generated with Claude Code