diff --git a/CLAUDE.md b/CLAUDE.md
index 9d48495c..0e4850a0 100644
--- a/CLAUDE.md
+++ b/CLAUDE.md
@@ -577,8 +577,8 @@ The ref is seeded from whatever is on the session at mount, which is an earlier
`start()` clears it, but this route mounts before it runs.
**Stealth mode lives on the live control bar and nowhere else.** It was in the titlebar menu and
-the command palette, both reachable from the login screen and the payment page, where hiding the
-window from a screen capture answers a question nobody is asking - the screen share it exists for
+the command palette, both reachable from the login screen and the payment page, where pulling the
+window off the taskbar and making it click-through answers a question nobody is asking - the screen share it exists for
only happens during a real call. Entering is a click; leaving is the global hotkey, because that
bar does not render in stealth mode, which is the point of it.
@@ -606,7 +606,7 @@ second one at the end of every session.
**And a session that ends takes stealth with it.** `refreshWindowSurfaces()` drops it when the
running state leaves `Running`, which is the one place in main every start and end passes through.
The renderer's stop path already asked for that, but it is one of several ways a session ends, and
-any of the others missing it leaves the window click-through, invisible to a screen capture and
+any of the others missing it leaves the window click-through, off the taskbar and
unfocusable, with no interview on screen to explain why.
### The mock interview turn
@@ -786,7 +786,11 @@ The Dock half has a failure mode of its own: **macOS drops a Dock call made with
Whether the *shell* actually acts on `setSkipTaskbar` is not something a unit test can reach, and it fails without an error. `test/manual/taskbar-probe.mjs` drives the real service in a real Electron process and reads the taskbar back through UI Automation - Windows only, run by hand (`pnpm exec electron test/manual/taskbar-probe.mjs`), deliberately not in `test/run.mjs`.
-Stealth mode hides the window from screen capture via `setContentProtection`. The main process emits `stealth-changed`; the preload script toggles a `stealth` CSS class on `document.body`. Content protection is on by default. The `allowScreenCapture` setting (Configuration, off by default) lifts it outside stealth mode, and so does `--disable-content-protection` at launch (dev/testing only). Stealth always protects, whatever either says: a window made capturable for a demo must not stay capturable on the screen share stealth exists for. `applyContentProtection()` runs inside `applySurfaceVisibility()` so the setting applies live and every stealth toggle re-evaluates it, and it skips no-op calls like the z-order does. The app's own action-suggestion screenshot goes through `withContentProtection()`, which protects the window for the capture and waits `CAPTURE_PROTECTION_SETTLE_MS` when it had to switch: the setting is about other apps seeing the window, and that screenshot exists to show the model what is behind it - with the window in it, it can cover the question and feed the model its own earlier answers. `test/content-protection.test.mjs` pins it.
+Stealth mode does **not** decide screen capture. The main process emits `stealth-changed`; the preload script toggles a `stealth` CSS class on `document.body`, and stealth means taskbar/Dock hiding, the on-top pin and click-through - nothing about capture. Whether other apps can capture the window is the `allowScreenCapture` setting alone (Configuration, off by default), applied through `setContentProtection` by `applyContentProtection()` inside `applySurfaceVisibility()`, so the setting applies live and skips no-op calls like the z-order does. Stealth used to force protection on, which implied a promise the OS does not keep: on macOS `setContentProtection` sets `NSWindowSharingNone`, and apps built on ScreenCaptureKit (newer recorders, several meeting apps) capture the window anyway, by design. The old `--disable-content-protection` launch flag is gone with it.
+
+The app is honest about it instead. `useScreenCaptureStatus()` reports `capturable` (setting on), `protected` (setting off on Windows) or `limited` (setting off anywhere else - macOS for the ScreenCaptureKit reason, Linux because Electron has no protection there at all). Anything but `protected` raises `ScreenCaptureNoticeDialog` before a live start - after the headphone notice, before the save prompt, with Cancel going home the same way - offering *Hide and start* (turns the setting off) beside *Start anyway*. During the session `ScreenCaptureBadge` sits on the control bar and in the stealth `StatusPanel` and shows all three states - red, amber, and a green "Invisible to capture" - so protection can be confirmed at a glance rather than inferred from a missing warning. Green is only ever shown where the OS honours the protection, which is why macOS reads as amber. `test/screen-capture-notice.test.mjs` pins the ordering and both badges.
+
+The app's own action-suggestion screenshot still goes through `withContentProtection()`, which protects the window for the capture and waits `CAPTURE_PROTECTION_SETTLE_MS` when it had to switch: the setting is about other apps seeing the window, and that screenshot exists to show the model what is behind it - with the window in it, it can cover the question and feed the model its own earlier answers. `test/content-protection.test.mjs` pins that stealth leaves protection alone and that the own capture still protects.
Background throttling is disabled globally (via `app.commandLine` switches and `backgroundThrottling: false` in `webPreferences`) so audio keeps running when the window is occluded.
diff --git a/README.md b/README.md
index 6bc9883a..a846cb2e 100644
--- a/README.md
+++ b/README.md
@@ -65,7 +65,7 @@ Stay on top of the conversation with live ASR:
### Staying Out of Sight
-The app keeps itself off the surfaces a screen share exposes. There is no desktop shortcut, and the window is hidden from screen capture by default. To show it in screen shares, recordings and screenshots, turn on "Allow screen capture" in Configuration; stealth mode hides it again whatever that setting says, and also removes the Windows taskbar button and the macOS Dock icon and Cmd+Tab entry. Outside stealth mode the app otherwise behaves like any other window, taskbar button and Dock icon included, unless you turn on "Hide taskbar icon during live interviews" in Configuration.
+The app keeps itself off the surfaces a screen share exposes. There is no desktop shortcut, and the window is hidden from screen capture by default. To show it in screen shares, recordings and screenshots, turn on "Allow screen capture" in Configuration. That setting alone decides capture: stealth mode does not override it, and the app warns before a live interview and shows a badge during one whenever the window can be captured. Hiding is best effort: on macOS, apps built on ScreenCaptureKit (newer recorders and some meeting apps) can capture the window even with the setting off. Stealth mode removes the Windows taskbar button and the macOS Dock icon and Cmd+Tab entry, and makes the window click-through. Outside stealth mode the app otherwise behaves like any other window, taskbar button and Dock icon included, unless you turn on "Hide taskbar icon during live interviews" in Configuration.
**Lost the window?** Launch Power Interview again. It does not start a second copy - the running app brings its window back and focuses it.
diff --git a/nodemon.show.json b/nodemon.show.json
index 2854d72f..40a08d57 100644
--- a/nodemon.show.json
+++ b/nodemon.show.json
@@ -2,5 +2,5 @@
"watch": ["electron-dist"],
"ext": "js,cjs,json",
"delay": 1000,
- "exec": "cross-env NODE_ENV=development electron . --disable-content-protection"
+ "exec": "cross-env NODE_ENV=development electron ."
}
diff --git a/src/main/services/window-control.service.ts b/src/main/services/window-control.service.ts
index c137cd2a..4566ba67 100644
--- a/src/main/services/window-control.service.ts
+++ b/src/main/services/window-control.service.ts
@@ -34,10 +34,6 @@ let _stealth = configStore.getStealth();
let _hideTaskbarWhileRunning = readHideTaskbarSetting();
let _allowScreenCapture = readAllowScreenCaptureSetting();
-// Dev/testing override, kept from before the setting existed: launching with it allows capture
-// outside stealth whatever the setting says.
-const captureForcedByFlag = process.argv.includes('--disable-content-protection');
-
// While surfaces are hidden the window is re-raised on this interval, since something else
// (a call app, a fullscreen share) can still end up above it.
let raiseTimer: NodeJS.Timeout | null = null;
@@ -200,11 +196,13 @@ export function canMinimize(): boolean {
}
/**
- * Whether the window is hidden from screen capture. Stealth always protects: it is the explicit
- * request to be invisible, and a capture setting chosen for an ordinary window must not undo it.
+ * Whether the window is hidden from other apps' screen capture. The setting alone decides it -
+ * stealth does not, because protection is not something the app can promise: on macOS,
+ * ScreenCaptureKit recorders ignore it by design. The renderer warns before a live session and
+ * shows the state during one instead of implying stealth makes the window invisible.
*/
function shouldProtectContent(): boolean {
- return _stealth || ownCaptures > 0 || !(_allowScreenCapture || captureForcedByFlag);
+ return ownCaptures > 0 || !_allowScreenCapture;
}
/**
@@ -399,7 +397,7 @@ export function refreshWindowSurfaces(): void {
// `stealthUnavailableReason()` - so a run that ends takes it with it, and this is the one place
// every ending passes through. Left to the renderer's stop path alone it would be one of
// several: the stop hotkey, a teardown decided in main, a session that ends while the window is
- // hidden. Any of those missing it leaves the app click-through, invisible to a screen capture
+ // hidden. Any of those missing it leaves the app click-through, off the taskbar
// and unfocusable, with no interview on screen to explain why and only a global hotkey out.
if (_stealth && !isAssistantRunning()) {
// Applies the surfaces itself, so returning here is not skipping that.
@@ -741,8 +739,9 @@ export function disableStealth(): void {
* Why entering stealth is refused right now, or `null` when it is available.
*
* **Stealth is a live-interview control, and this is where that is enforced.** What it does is
- * hide the window from a screen capture and pin it over the call; the screen share it hides from
- * only exists during a real interview. Everywhere else it is a mode with nothing to hide that
+ * take the window off the taskbar and pin it over the call; the screen share it stays out of
+ * the way of only exists during a real interview. Everywhere else it is a mode with nothing to
+ * hide that
* takes the taskbar button, the Dock icon, the traffic lights and mouse input away - so a hotkey
* pressed on the home screen, on the account page or on the login form left the app apparently
* gone, with the same hotkey as the only way back. The button on the control bar was already
diff --git a/src/main/store/config.store.ts b/src/main/store/config.store.ts
index b1b89cfe..5baa489d 100644
--- a/src/main/store/config.store.ts
+++ b/src/main/store/config.store.ts
@@ -51,7 +51,7 @@ export interface RuntimeConfig {
hideTaskbarWhileRunning: boolean;
// Let screen capture see the main window. Off by default: content protection is on unless the
- // user opts out here, and stealth mode protects the window whatever this says.
+ // user opts out here. This is the only input - stealth mode does not override it.
allowScreenCapture: boolean;
}
diff --git a/src/renderer/components/custom/control-panel/index.tsx b/src/renderer/components/custom/control-panel/index.tsx
index e890750e..eca5585f 100644
--- a/src/renderer/components/custom/control-panel/index.tsx
+++ b/src/renderer/components/custom/control-panel/index.tsx
@@ -10,6 +10,7 @@ import { useEndLiveSession } from '@/hooks/use-end-live-session';
import useIsStealthMode from '@/hooks/use-is-stealth-mode';
import { useLowBalanceWarning } from '@/hooks/use-low-balance-warning';
import { useSaveHistoryGuard } from '@/hooks/use-save-history-guard';
+import { useScreenCaptureStatus } from '@/hooks/use-screen-capture-status';
import { useT } from '@/i18n';
import { isMac } from '@/lib/consts';
import { canStartSession } from '@/lib/credit-gate';
@@ -19,6 +20,8 @@ import { RunningState } from '@/types/app-state';
import HeadphoneNoticeDialog from '../headphone-notice-dialog';
import PermissionGateDialog from '../permission-gate-dialog';
+import { ScreenCaptureBadge } from '../screen-capture-badge';
+import ScreenCaptureNoticeDialog from '../screen-capture-notice-dialog';
import ZoomControl from '../zoom-control';
import { AudioGroup } from './audio-group';
import { LanguageGroup } from './language-group';
@@ -39,6 +42,8 @@ export default function ControlPanel() {
const { confirmDiscard } = useSaveHistoryGuard();
const [permGateOpen, setPermGateOpen] = useState(false);
const [headphoneNoticeOpen, setHeadphoneNoticeOpen] = useState(false);
+ const [captureNoticeOpen, setCaptureNoticeOpen] = useState(false);
+ const captureStatus = useScreenCaptureStatus();
const [returnHomePending, setReturnHomePending] = useState(false);
const { devices: audioInputDevices, ready: audioDevicesReady } = useAudioInputDevices();
@@ -225,8 +230,18 @@ export default function ControlPanel() {
if (returnHomePending && runningState === RunningState.Idle) navigate('/');
}, [returnHomePending, runningState, navigate]);
- // Everything after the headphone notice. Split out so the notice can hand the start back once
- // the user acknowledges it, without duplicating what follows.
+ // Second notice, after headphones: a screen share is the other thing that can go wrong
+ // silently, and it is decided by a setting the user may have turned on and forgotten.
+ const handleHeadphonesConfirmed = () => {
+ if (captureStatus === 'protected') {
+ void startAfterNotice();
+ return;
+ }
+ setCaptureNoticeOpen(true);
+ };
+
+ // Everything after the notices. Split out so they can hand the start back once the user
+ // acknowledges them, without duplicating what follows.
const startAfterNotice = async () => {
// `startAssistant` opens with `clearAll()`, so the previous interview is gone the moment
// this goes ahead. Asked before the permission gate rather than after: a user who is about
@@ -348,6 +363,7 @@ export default function ControlPanel() {
{/* Status, then view: whether the session can hear sits beside zoom at the right edge,
apart from the controls, because it is something to glance at rather than press. */}
+
+
+ );
+}
diff --git a/src/renderer/components/custom/screen-capture-notice-dialog.tsx b/src/renderer/components/custom/screen-capture-notice-dialog.tsx
new file mode 100644
index 00000000..36b83138
--- /dev/null
+++ b/src/renderer/components/custom/screen-capture-notice-dialog.tsx
@@ -0,0 +1,103 @@
+import { ScreenShare, ShieldAlert } from 'lucide-react';
+
+import { Button } from '@/components/ui/button';
+import {
+ Dialog,
+ DialogContent,
+ DialogDescription,
+ DialogFooter,
+ DialogHeader,
+ DialogTitle,
+} from '@/components/ui/dialog';
+import { useAllowScreenCapture } from '@/hooks/use-allow-screen-capture';
+import type { ScreenCaptureStatus } from '@/hooks/use-screen-capture-status';
+import { useT } from '@/i18n';
+import { cn } from '@/lib/utils';
+
+interface ScreenCaptureNoticeDialogProps {
+ open: boolean;
+ status: Exclude;
+ onOpenChange: (open: boolean) => void;
+ onProceed: () => void;
+ /** Cancel, Esc and an overlay click. Same contract as `HeadphoneNoticeDialog.onCancel`. */
+ onCancel?: () => void;
+}
+
+/**
+ * Raised before a live session when a screen share could show the window. Asked every session
+ * rather than once, for the reason the headphone notice is: whether a share is about to happen is
+ * a property of the meeting, and the setting may have been turned on for a demo and forgotten.
+ */
+export default function ScreenCaptureNoticeDialog({
+ open,
+ status,
+ onOpenChange,
+ onProceed,
+ onCancel,
+}: ScreenCaptureNoticeDialogProps) {
+ const t = useT();
+ const { setEnabled } = useAllowScreenCapture();
+ const capturable = status === 'capturable';
+
+ const handleDismiss = () => {
+ onOpenChange(false);
+ onCancel?.();
+ };
+
+ const handleProceed = () => {
+ onOpenChange(false);
+ onProceed();
+ };
+
+ const handleHideAndProceed = () => {
+ setEnabled(false);
+ handleProceed();
+ };
+
+ const Icon = capturable ? ScreenShare : ShieldAlert;
+
+ return (
+
+ );
+}
diff --git a/src/renderer/components/custom/status-panel.tsx b/src/renderer/components/custom/status-panel.tsx
index 52986065..55d4d69e 100644
--- a/src/renderer/components/custom/status-panel.tsx
+++ b/src/renderer/components/custom/status-panel.tsx
@@ -14,6 +14,7 @@ import { RunningState } from '@/types/app-state';
import { CompactHotkeyCheatsheet } from './hotkey-cheatsheet';
import { RunningIndicator } from './running-indicator';
+import { ScreenCaptureBadge } from './screen-capture-badge';
interface StatusPanelProps {
runningState: RunningState;
@@ -96,6 +97,7 @@ export default function StatusPanel({
+
{/* Opened by hover, not click. This panel only renders in stealth, where the window ignores
clicks and cannot take focus - only forwarded mouse moves reach it. The overlay is
diff --git a/src/renderer/hooks/use-allow-screen-capture.ts b/src/renderer/hooks/use-allow-screen-capture.ts
index 914a21c8..b82035d8 100644
--- a/src/renderer/hooks/use-allow-screen-capture.ts
+++ b/src/renderer/hooks/use-allow-screen-capture.ts
@@ -5,7 +5,7 @@ import { currentTranslation } from '@/i18n';
import { useConfigStore } from './use-config-store';
-/** Whether the main window may appear in screen capture outside stealth, plus a persisting setter. */
+/** Whether the main window may appear in screen capture, plus a persisting setter. */
export function useAllowScreenCapture() {
const { config } = useConfigStore();
diff --git a/src/renderer/hooks/use-screen-capture-status.ts b/src/renderer/hooks/use-screen-capture-status.ts
new file mode 100644
index 00000000..1a679a4e
--- /dev/null
+++ b/src/renderer/hooks/use-screen-capture-status.ts
@@ -0,0 +1,22 @@
+import { isWindows } from '@/lib/consts';
+
+import { useAllowScreenCapture } from './use-allow-screen-capture';
+
+/**
+ * What other apps can see of the window.
+ *
+ * `capturable` - the user allowed capture, so screen shares and recordings show the window.
+ * `limited` - protection is requested but not fully honoured. On macOS, apps built on
+ * ScreenCaptureKit (newer recorders, several meeting apps) capture the window anyway, by design;
+ * Linux has no protection at all and is not a shipped target, so it reads the same way rather
+ * than claiming a protection it does not have.
+ * `protected` - Windows with protection on. Windows 10 builds before 2004 capture a black
+ * rectangle instead of omitting the window; those builds are out of support and not detected.
+ */
+export type ScreenCaptureStatus = 'capturable' | 'limited' | 'protected';
+
+export function useScreenCaptureStatus(): ScreenCaptureStatus {
+ const { enabled } = useAllowScreenCapture();
+ if (enabled) return 'capturable';
+ return isWindows ? 'protected' : 'limited';
+}
diff --git a/src/renderer/i18n/locales/de.ts b/src/renderer/i18n/locales/de.ts
index 34a2d8da..b7e9309c 100644
--- a/src/renderer/i18n/locales/de.ts
+++ b/src/renderer/i18n/locales/de.ts
@@ -329,7 +329,7 @@ export const de: Translation = {
allowScreenCaptureField: {
label: 'Bildschirmaufnahme erlauben',
description:
- 'Lässt Bildschirmfreigaben und Aufnahmen das App-Fenster sehen. Der Tarnmodus verbirgt es immer.',
+ 'Lässt Bildschirmfreigaben und Aufnahmen das App-Fenster sehen. Gilt auch im Tarnmodus.',
},
mockHintsField: {
label: 'Hinweise in Probeinterviews anzeigen',
@@ -380,7 +380,7 @@ export const de: Translation = {
ToggleStealth: {
title: 'Tarnmodus',
description:
- 'Verbirgt die App während eines Live-Interviews vor der Bildschirmaufnahme. Dieselben Tasten holen sie zurück.',
+ 'Macht das Fenster während eines Live-Interviews zu einem durchklickbaren Overlay ohne Taskleistensymbol. Dieselben Tasten holen es zurück.',
},
Opacity: {
title: 'Deckkraft',
@@ -575,7 +575,7 @@ export const de: Translation = {
stealthUnavailable:
'Verfügbar, sobald das Live-Interview läuft - noch gibt es nichts zu verbergen.',
stealthAvailable:
- 'Verbirgt die App vor der Bildschirmaufnahme. Dasselbe Kürzel holt sie zurück.',
+ 'Macht das Fenster zu einem durchklickbaren Overlay ohne Taskleistensymbol. Dasselbe Kürzel holt es zurück.',
captureScreenshot: 'Screenshot aufnehmen',
captureScreenshotTooltip: 'Screenshot aufnehmen',
captureFailed: 'Screenshot konnte nicht aufgenommen werden',
@@ -757,6 +757,26 @@ export const de: Translation = {
},
},
+ screenCapture: {
+ capturableLabel: 'Aufnahme sichtbar',
+ capturableHint:
+ 'Bildschirmfreigaben und Aufnahmen sehen dieses Fenster. Deaktiviere „Bildschirmaufnahme erlauben“ in den Einstellungen, um es zu verbergen.',
+ limitedLabel: 'Schutz begrenzt',
+ limitedHint:
+ 'Vor den meisten Aufnahmen verborgen, aber unter macOS können neuere Rekorder und manche Meeting-Apps dieses Fenster trotzdem sehen.',
+ protectedLabel: 'Für Aufnahmen unsichtbar',
+ protectedHint: 'Bildschirmfreigaben und Aufnahmen können dieses Fenster nicht sehen.',
+ capturableTitle: 'Bildschirmfreigaben sehen dieses Fenster',
+ capturableDescription:
+ 'Die Bildschirmaufnahme ist erlaubt. Wer deine Freigabe oder Aufnahme sieht, sieht auch die App - auch im Tarnmodus.',
+ limitedTitle: 'Verbergen ist unter macOS begrenzt',
+ limitedDescription:
+ 'Das Fenster ist vor Aufnahmen geschützt, aber macOS lässt neuere Rekorder und manche Meeting-Apps es trotzdem aufnehmen. Rechne damit, dass ein geteilter Bildschirm es zeigt.',
+ startAnyway: 'Trotzdem starten',
+ hideAndStart: 'Verbergen und starten',
+ start: 'Starten',
+ },
+
headphoneNotice: {
title: 'Kopfhörer sind Pflicht',
description:
diff --git a/src/renderer/i18n/locales/en.ts b/src/renderer/i18n/locales/en.ts
index e3806719..d3346ee1 100644
--- a/src/renderer/i18n/locales/en.ts
+++ b/src/renderer/i18n/locales/en.ts
@@ -338,7 +338,7 @@ export const en = {
allowScreenCaptureField: {
label: 'Allow screen capture',
description:
- 'Lets screen shares and recordings see the app window. Stealth mode always hides it.',
+ 'Lets screen shares and recordings see the app window. Applies in stealth mode too.',
},
mockHintsField: {
label: 'Show hints in mock interviews',
@@ -392,7 +392,7 @@ export const en = {
ToggleStealth: {
title: 'Toggle Stealth',
description:
- 'Hide from screen capture during a live interview. The same keys bring it back.',
+ 'Make the window a click-through overlay with no taskbar button during a live interview. The same keys bring it back.',
},
Opacity: { title: 'Toggle Opacity', description: 'Toggle window opacity in stealth mode' },
ToggleTranscript: {
@@ -575,7 +575,8 @@ export const en = {
stealthMode: 'Stealth Mode',
stealthUnavailable:
'Available once the live interview is running - there is nothing to hide from yet.',
- stealthAvailable: 'Hides the app from screen capture. The same shortcut brings it back.',
+ stealthAvailable:
+ 'Makes the window a click-through overlay with no taskbar button. The same shortcut brings it back.',
captureScreenshot: 'Capture screenshot',
captureScreenshotTooltip: 'Capture Screenshot',
captureFailed: 'Failed to capture screenshot',
@@ -766,6 +767,26 @@ export const en = {
},
},
+ screenCapture: {
+ capturableLabel: 'Visible to capture',
+ capturableHint:
+ 'Screen shares and recordings can see this window. Turn off "Allow screen capture" in Configuration to hide it.',
+ limitedLabel: 'Capture limited',
+ limitedHint:
+ 'Hidden from most capture, but on macOS newer recorders and some meeting apps can still see this window.',
+ protectedLabel: 'Invisible to capture',
+ protectedHint: 'Screen shares and recordings cannot see this window.',
+ capturableTitle: 'Screen shares can see this window',
+ capturableDescription:
+ 'Screen capture is allowed, so anyone watching your screen share or recording will see the app - in stealth mode too.',
+ limitedTitle: 'Hiding is limited on macOS',
+ limitedDescription:
+ 'The window is protected from capture, but macOS lets newer recorders and some meeting apps capture it anyway. Assume a shared screen may show it.',
+ startAnyway: 'Start anyway',
+ hideAndStart: 'Hide and start',
+ start: 'Start',
+ },
+
headphoneNotice: {
title: 'Headphones are required',
description:
diff --git a/src/renderer/i18n/locales/es.ts b/src/renderer/i18n/locales/es.ts
index 7a6db93c..76a082af 100644
--- a/src/renderer/i18n/locales/es.ts
+++ b/src/renderer/i18n/locales/es.ts
@@ -331,7 +331,7 @@ export const es: Translation = {
allowScreenCaptureField: {
label: 'Permitir la captura de pantalla',
description:
- 'Permite que al compartir pantalla o grabar se vea la ventana de la aplicación. El modo sigiloso siempre la oculta.',
+ 'Permite que al compartir pantalla o grabar se vea la ventana de la aplicación. También en modo sigiloso.',
},
mockHintsField: {
label: 'Mostrar pistas en las entrevistas de práctica',
@@ -383,7 +383,7 @@ export const es: Translation = {
ToggleStealth: {
title: 'Modo sigiloso',
description:
- 'Oculta la aplicación de la captura de pantalla durante una entrevista. Las mismas teclas la vuelven a mostrar.',
+ 'Durante una entrevista, convierte la ventana en una capa que deja pasar los clics, sin botón en la barra de tareas. Las mismas teclas la vuelven a mostrar.',
},
Opacity: {
title: 'Opacidad',
@@ -571,7 +571,7 @@ export const es: Translation = {
stealthUnavailable:
'Disponible cuando la entrevista en directo esté en marcha: todavía no hay nada que ocultar.',
stealthAvailable:
- 'Oculta la aplicación de la captura de pantalla. El mismo atajo la vuelve a mostrar.',
+ 'Convierte la ventana en una capa que deja pasar los clics, sin botón en la barra de tareas. El mismo atajo la vuelve a mostrar.',
captureScreenshot: 'Hacer captura de pantalla',
captureScreenshotTooltip: 'Capturar pantalla',
captureFailed: 'No se pudo hacer la captura de pantalla',
@@ -754,6 +754,26 @@ export const es: Translation = {
},
},
+ screenCapture: {
+ capturableLabel: 'Visible en capturas',
+ capturableHint:
+ 'Al compartir pantalla o grabar se ve esta ventana. Desactiva «Permitir la captura de pantalla» en Configuración para ocultarla.',
+ limitedLabel: 'Protección limitada',
+ limitedHint:
+ 'Oculta de la mayoría de capturas, pero en macOS las grabadoras más recientes y algunas apps de reuniones aún pueden verla.',
+ protectedLabel: 'Invisible en capturas',
+ protectedHint: 'Al compartir pantalla o grabar no se ve esta ventana.',
+ capturableTitle: 'Al compartir pantalla se ve esta ventana',
+ capturableDescription:
+ 'La captura de pantalla está permitida, así que quien vea lo que compartes o grabas verá la aplicación, también en modo sigiloso.',
+ limitedTitle: 'En macOS la ocultación es limitada',
+ limitedDescription:
+ 'La ventana está protegida, pero macOS permite que las grabadoras más recientes y algunas apps de reuniones la capturen igualmente. Cuenta con que una pantalla compartida puede mostrarla.',
+ startAnyway: 'Empezar igualmente',
+ hideAndStart: 'Ocultar y empezar',
+ start: 'Empezar',
+ },
+
headphoneNotice: {
title: 'Se necesitan auriculares',
description:
diff --git a/src/renderer/i18n/locales/fr.ts b/src/renderer/i18n/locales/fr.ts
index 8518e337..971d4fd3 100644
--- a/src/renderer/i18n/locales/fr.ts
+++ b/src/renderer/i18n/locales/fr.ts
@@ -335,7 +335,7 @@ export const fr: Translation = {
allowScreenCaptureField: {
label: 'Autoriser la capture d’écran',
description:
- 'Laisse les partages d’écran et les enregistrements voir la fenêtre de l’application. Le mode furtif la masque toujours.',
+ 'Laisse les partages d’écran et les enregistrements voir la fenêtre de l’application. S’applique aussi en mode furtif.',
},
mockHintsField: {
label: 'Afficher des indices pendant les entretiens d’entraînement',
@@ -388,7 +388,7 @@ export const fr: Translation = {
ToggleStealth: {
title: 'Mode furtif',
description:
- 'Masque l’application des captures d’écran pendant un entretien en direct. Les mêmes touches la font revenir.',
+ 'Pendant un entretien en direct, transforme la fenêtre en calque traversable par les clics, sans bouton dans la barre des tâches. Les mêmes touches la font revenir.',
},
Opacity: { title: 'Opacité', description: 'Bascule l’opacité de la fenêtre en mode furtif' },
ToggleTranscript: {
@@ -575,7 +575,7 @@ export const fr: Translation = {
stealthUnavailable:
'Disponible une fois l’entretien en direct lancé : il n’y a encore rien à masquer.',
stealthAvailable:
- 'Masque l’application des captures d’écran. Le même raccourci la fait revenir.',
+ 'Transforme la fenêtre en calque traversable par les clics, sans bouton dans la barre des tâches. Le même raccourci la fait revenir.',
captureScreenshot: 'Prendre une capture d’écran',
captureScreenshotTooltip: 'Capture d’écran',
captureFailed: 'Impossible de prendre la capture d’écran',
@@ -758,6 +758,26 @@ export const fr: Translation = {
},
},
+ screenCapture: {
+ capturableLabel: 'Visible en capture',
+ capturableHint:
+ 'Les partages d’écran et les enregistrements voient cette fenêtre. Désactivez « Autoriser la capture d’écran » dans la configuration pour la masquer.',
+ limitedLabel: 'Protection limitée',
+ limitedHint:
+ 'Masquée de la plupart des captures, mais sur macOS les enregistreurs récents et certaines applications de réunion peuvent encore la voir.',
+ protectedLabel: 'Invisible en capture',
+ protectedHint: 'Les partages d’écran et les enregistrements ne voient pas cette fenêtre.',
+ capturableTitle: 'Les partages d’écran voient cette fenêtre',
+ capturableDescription:
+ 'La capture d’écran est autorisée : quiconque regarde votre partage ou votre enregistrement verra l’application, y compris en mode furtif.',
+ limitedTitle: 'Le masquage est limité sur macOS',
+ limitedDescription:
+ 'La fenêtre est protégée, mais macOS laisse les enregistreurs récents et certaines applications de réunion la capturer quand même. Partez du principe qu’un écran partagé peut la montrer.',
+ startAnyway: 'Démarrer quand même',
+ hideAndStart: 'Masquer et démarrer',
+ start: 'Démarrer',
+ },
+
headphoneNotice: {
title: 'Un casque est indispensable',
description:
diff --git a/src/renderer/i18n/locales/ja.ts b/src/renderer/i18n/locales/ja.ts
index 6b96f919..b696d88c 100644
--- a/src/renderer/i18n/locales/ja.ts
+++ b/src/renderer/i18n/locales/ja.ts
@@ -321,7 +321,7 @@ export const ja: Translation = {
allowScreenCaptureField: {
label: '画面キャプチャを許可',
description:
- '画面共有や録画でアプリのウィンドウが映るようにします。ステルスモードでは常に隠れます。',
+ '画面共有や録画でアプリのウィンドウが映るようにします。ステルスモードでも同じです。',
},
mockHintsField: {
label: '模擬面接でヒントを表示',
@@ -371,7 +371,8 @@ export const ja: Translation = {
},
ToggleStealth: {
title: 'ステルス切り替え',
- description: 'ライブ面接中、画面キャプチャからアプリを隠します。同じキーで元に戻ります。',
+ description:
+ 'ライブ面接中、ウィンドウをクリックが透過するオーバーレイにし、タスクバーから隠します。同じキーで元に戻ります。',
},
Opacity: {
title: '透明度の切り替え',
@@ -558,7 +559,8 @@ export const ja: Translation = {
enterStealth: 'ステルスモードに入る',
stealthMode: 'ステルスモード',
stealthUnavailable: 'ライブ面接の実行中に使用できます - 今はまだ隠すものがありません。',
- stealthAvailable: '画面キャプチャからアプリを隠します。同じショートカットで元に戻ります。',
+ stealthAvailable:
+ 'ウィンドウをクリックが透過するオーバーレイにし、タスクバーから隠します。同じショートカットで元に戻ります。',
captureScreenshot: 'スクリーンショットを撮る',
captureScreenshotTooltip: '画面をキャプチャ',
captureFailed: 'スクリーンショットを撮れませんでした',
@@ -740,6 +742,26 @@ export const ja: Translation = {
},
},
+ screenCapture: {
+ capturableLabel: 'キャプチャに映ります',
+ capturableHint:
+ '画面共有や録画にこのウィンドウが映ります。隠すには設定で「画面キャプチャを許可」をオフにしてください。',
+ limitedLabel: '保護は限定的',
+ limitedHint:
+ 'ほとんどのキャプチャからは隠れますが、macOS では新しい録画アプリや一部の会議アプリにこのウィンドウが映ることがあります。',
+ protectedLabel: 'キャプチャに映りません',
+ protectedHint: '画面共有や録画にこのウィンドウは映りません。',
+ capturableTitle: '画面共有にこのウィンドウが映ります',
+ capturableDescription:
+ '画面キャプチャが許可されているため、画面共有や録画を見ている人にアプリが見えます。ステルスモードでも同様です。',
+ limitedTitle: 'macOS では隠す機能が限定的です',
+ limitedDescription:
+ 'ウィンドウはキャプチャから保護されていますが、macOS では新しい録画アプリや一部の会議アプリがそれでもキャプチャできます。共有画面に映る可能性があると考えてください。',
+ startAnyway: 'このまま開始',
+ hideAndStart: '隠して開始',
+ start: '開始',
+ },
+
headphoneNotice: {
title: 'ヘッドホンが必要です',
description:
diff --git a/src/renderer/i18n/locales/ko.ts b/src/renderer/i18n/locales/ko.ts
index 384534b8..c03d7e49 100644
--- a/src/renderer/i18n/locales/ko.ts
+++ b/src/renderer/i18n/locales/ko.ts
@@ -315,7 +315,7 @@ export const ko: Translation = {
},
allowScreenCaptureField: {
label: '화면 캡처 허용',
- description: '화면 공유와 녹화에서 앱 창이 보이도록 합니다. 스텔스 모드에서는 항상 숨겨집니다.',
+ description: '화면 공유와 녹화에서 앱 창이 보이도록 합니다. 스텔스 모드에도 적용됩니다.',
},
mockHintsField: {
label: '모의 면접에서 힌트 표시',
@@ -366,7 +366,7 @@ export const ko: Translation = {
ToggleStealth: {
title: '스텔스 전환',
description:
- '실시간 면접 중 화면 캡처에서 앱을 숨깁니다. 같은 키를 누르면 다시 나타납니다.',
+ '실시간 면접 중 창을 클릭이 통과하는 오버레이로 바꾸고 작업 표시줄에서 숨깁니다. 같은 키를 누르면 다시 나타납니다.',
},
Opacity: { title: '투명도 전환', description: '스텔스 모드에서 창 투명도를 전환합니다' },
ToggleTranscript: {
@@ -547,7 +547,8 @@ export const ko: Translation = {
enterStealth: '스텔스 모드 시작',
stealthMode: '스텔스 모드',
stealthUnavailable: '실시간 면접이 실행되면 사용할 수 있습니다 - 아직은 숨길 것이 없습니다.',
- stealthAvailable: '화면 캡처에서 앱을 숨깁니다. 같은 단축키를 누르면 다시 나타납니다.',
+ stealthAvailable:
+ '창을 클릭이 통과하는 오버레이로 바꾸고 작업 표시줄에서 숨깁니다. 같은 단축키를 누르면 다시 나타납니다.',
captureScreenshot: '스크린샷 찍기',
captureScreenshotTooltip: '화면 캡처',
captureFailed: '스크린샷을 찍지 못했습니다',
@@ -728,6 +729,26 @@ export const ko: Translation = {
},
},
+ screenCapture: {
+ capturableLabel: '캡처에 보임',
+ capturableHint:
+ '화면 공유와 녹화에서 이 창이 보입니다. 숨기려면 설정에서 "화면 캡처 허용"을 끄세요.',
+ limitedLabel: '보호 제한됨',
+ limitedHint:
+ '대부분의 캡처에서는 숨겨지지만, macOS에서는 최신 녹화 앱과 일부 회의 앱에서 이 창이 보일 수 있습니다.',
+ protectedLabel: '캡처에 안 보임',
+ protectedHint: '화면 공유와 녹화에서 이 창이 보이지 않습니다.',
+ capturableTitle: '화면 공유에서 이 창이 보입니다',
+ capturableDescription:
+ '화면 캡처가 허용되어 있어 화면 공유나 녹화를 보는 사람에게 앱이 보입니다. 스텔스 모드에서도 마찬가지입니다.',
+ limitedTitle: 'macOS에서는 숨기기가 제한됩니다',
+ limitedDescription:
+ '창은 캡처로부터 보호되지만, macOS에서는 최신 녹화 앱과 일부 회의 앱이 그래도 캡처할 수 있습니다. 공유 화면에 보일 수 있다고 생각하세요.',
+ startAnyway: '그냥 시작',
+ hideAndStart: '숨기고 시작',
+ start: '시작',
+ },
+
headphoneNotice: {
title: '헤드폰이 필요합니다',
description:
diff --git a/src/renderer/i18n/locales/pt.ts b/src/renderer/i18n/locales/pt.ts
index f202421c..1ec85daa 100644
--- a/src/renderer/i18n/locales/pt.ts
+++ b/src/renderer/i18n/locales/pt.ts
@@ -323,7 +323,7 @@ export const pt: Translation = {
allowScreenCaptureField: {
label: 'Permitir captura de tela',
description:
- 'Deixa compartilhamentos de tela e gravações verem a janela do app. O modo furtivo sempre a esconde.',
+ 'Deixa compartilhamentos de tela e gravações verem a janela do app. Vale também no modo furtivo.',
},
mockHintsField: {
label: 'Mostrar dicas nas entrevistas simuladas',
@@ -372,7 +372,7 @@ export const pt: Translation = {
ToggleStealth: {
title: 'Modo furtivo',
description:
- 'Esconde o app da captura de tela durante uma entrevista ao vivo. As mesmas teclas o trazem de volta.',
+ 'Durante uma entrevista ao vivo, transforma a janela numa sobreposição que deixa passar cliques, sem botão na barra de tarefas. As mesmas teclas a trazem de volta.',
},
Opacity: { title: 'Opacidade', description: 'Alterna a opacidade da janela no modo furtivo' },
ToggleTranscript: {
@@ -556,7 +556,8 @@ export const pt: Translation = {
stealthMode: 'Modo furtivo',
stealthUnavailable:
'Disponível quando a entrevista ao vivo estiver em execução: ainda não há nada a esconder.',
- stealthAvailable: 'Esconde o app da captura de tela. O mesmo atalho o traz de volta.',
+ stealthAvailable:
+ 'Transforma a janela numa sobreposição que deixa passar cliques, sem botão na barra de tarefas. O mesmo atalho a traz de volta.',
captureScreenshot: 'Tirar captura de tela',
captureScreenshotTooltip: 'Capturar tela',
captureFailed: 'Não foi possível tirar a captura de tela',
@@ -739,6 +740,26 @@ export const pt: Translation = {
},
},
+ screenCapture: {
+ capturableLabel: 'Visível na captura',
+ capturableHint:
+ 'Compartilhamentos de tela e gravações veem esta janela. Desative "Permitir captura de tela" nas configurações para escondê-la.',
+ limitedLabel: 'Proteção limitada',
+ limitedHint:
+ 'Escondida da maioria das capturas, mas no macOS gravadores mais novos e alguns apps de reunião ainda podem vê-la.',
+ protectedLabel: 'Invisível na captura',
+ protectedHint: 'Compartilhamentos de tela e gravações não veem esta janela.',
+ capturableTitle: 'Compartilhamentos de tela veem esta janela',
+ capturableDescription:
+ 'A captura de tela está permitida, então quem vir seu compartilhamento ou gravação verá o app, inclusive no modo furtivo.',
+ limitedTitle: 'Esconder é limitado no macOS',
+ limitedDescription:
+ 'A janela está protegida, mas o macOS deixa gravadores mais novos e alguns apps de reunião capturá-la mesmo assim. Conte com a possibilidade de uma tela compartilhada mostrá-la.',
+ startAnyway: 'Começar assim mesmo',
+ hideAndStart: 'Esconder e começar',
+ start: 'Começar',
+ },
+
headphoneNotice: {
title: 'Fones de ouvido são obrigatórios',
description:
diff --git a/src/renderer/i18n/locales/ru.ts b/src/renderer/i18n/locales/ru.ts
index cb6a0804..1785b6d8 100644
--- a/src/renderer/i18n/locales/ru.ts
+++ b/src/renderer/i18n/locales/ru.ts
@@ -354,7 +354,7 @@ export const ru: Translation = {
allowScreenCaptureField: {
label: 'Разрешить захват экрана',
description:
- 'Окно приложения будет видно при демонстрации экрана и в записях. В скрытом режиме оно всегда скрыто.',
+ 'Окно приложения будет видно при демонстрации экрана и в записях. Действует и в скрытом режиме.',
},
mockHintsField: {
label: 'Показывать подсказки в пробных собеседованиях',
@@ -407,7 +407,7 @@ export const ru: Translation = {
ToggleStealth: {
title: 'Скрытый режим',
description:
- 'Скрыть окно от записи экрана во время живого собеседования. Те же клавиши возвращают его.',
+ 'Во время живого собеседования окно пропускает клики насквозь и пропадает с панели задач. Те же клавиши возвращают его.',
},
Opacity: {
title: 'Переключить прозрачность',
@@ -596,7 +596,8 @@ export const ru: Translation = {
enterStealth: 'Включить скрытый режим',
stealthMode: 'Скрытый режим',
stealthUnavailable: 'Будет доступно во время живого собеседования - пока скрывать нечего.',
- stealthAvailable: 'Скрывает приложение от записи экрана. Те же клавиши возвращают его обратно.',
+ stealthAvailable:
+ 'Окно пропускает клики насквозь и пропадает с панели задач. Те же клавиши возвращают его обратно.',
captureScreenshot: 'Сделать снимок экрана',
captureScreenshotTooltip: 'Снимок экрана',
captureFailed: 'Не удалось сделать снимок экрана',
@@ -781,6 +782,26 @@ export const ru: Translation = {
},
},
+ screenCapture: {
+ capturableLabel: 'Видно в записи',
+ capturableHint:
+ 'Это окно видно при демонстрации экрана и в записях. Отключите «Разрешить захват экрана» в настройках, чтобы скрыть его.',
+ limitedLabel: 'Защита ограничена',
+ limitedHint:
+ 'Скрыто от большинства способов записи, но в macOS новые программы записи и некоторые приложения для встреч всё равно видят это окно.',
+ protectedLabel: 'Не видно в записи',
+ protectedHint: 'Это окно не видно при демонстрации экрана и в записях.',
+ capturableTitle: 'Это окно видно при демонстрации экрана',
+ capturableDescription:
+ 'Захват экрана разрешён, поэтому все, кто смотрит вашу демонстрацию или запись, увидят приложение, в том числе в скрытом режиме.',
+ limitedTitle: 'В macOS скрытие ограничено',
+ limitedDescription:
+ 'Окно защищено от захвата, но macOS позволяет новым программам записи и некоторым приложениям для встреч всё равно его захватывать. Считайте, что общий экран может его показать.',
+ startAnyway: 'Всё равно начать',
+ hideAndStart: 'Скрыть и начать',
+ start: 'Начать',
+ },
+
headphoneNotice: {
title: 'Наушники обязательны',
description:
diff --git a/src/renderer/i18n/locales/zh.ts b/src/renderer/i18n/locales/zh.ts
index 97cd8b9d..12fb49bf 100644
--- a/src/renderer/i18n/locales/zh.ts
+++ b/src/renderer/i18n/locales/zh.ts
@@ -307,7 +307,7 @@ export const zh: Translation = {
},
allowScreenCaptureField: {
label: '允许屏幕捕获',
- description: '允许屏幕共享和录屏看到应用窗口。隐身模式下始终会隐藏。',
+ description: '允许屏幕共享和录屏看到应用窗口。隐身模式下同样适用。',
},
mockHintsField: {
label: '模拟面试中显示提示',
@@ -352,7 +352,8 @@ export const zh: Translation = {
StopAll: { title: '全部停止', description: '停止助手并退出隐身模式' },
ToggleStealth: {
title: '切换隐身',
- description: '实时面试期间对屏幕捕获隐藏应用。再按一次相同按键即可恢复。',
+ description:
+ '实时面试期间将窗口变为可点击穿透的悬浮层,并从任务栏隐藏。再按一次相同按键即可恢复。',
},
Opacity: { title: '切换透明度', description: '在隐身模式下切换窗口透明度' },
ToggleTranscript: {
@@ -529,7 +530,7 @@ export const zh: Translation = {
enterStealth: '进入隐身模式',
stealthMode: '隐身模式',
stealthUnavailable: '实时面试开始后才可用 - 现在还没有需要隐藏的内容。',
- stealthAvailable: '对屏幕捕获隐藏应用。再按相同快捷键即可恢复。',
+ stealthAvailable: '将窗口变为可点击穿透的悬浮层,并从任务栏隐藏。再按相同快捷键即可恢复。',
captureScreenshot: '截取屏幕截图',
captureScreenshotTooltip: '截取屏幕',
captureFailed: '截图失败',
@@ -710,6 +711,25 @@ export const zh: Translation = {
},
},
+ screenCapture: {
+ capturableLabel: '可被捕获',
+ capturableHint: '屏幕共享和录屏可以看到此窗口。要隐藏它,请在设置中关闭“允许屏幕捕获”。',
+ limitedLabel: '保护有限',
+ limitedHint:
+ '对大多数捕获方式隐藏,但在 macOS 上,较新的录屏软件和部分会议应用仍可看到此窗口。',
+ protectedLabel: '捕获不可见',
+ protectedHint: '屏幕共享和录屏无法看到此窗口。',
+ capturableTitle: '屏幕共享可以看到此窗口',
+ capturableDescription:
+ '已允许屏幕捕获,观看你屏幕共享或录屏的人都会看到本应用,隐身模式下也一样。',
+ limitedTitle: 'macOS 上的隐藏能力有限',
+ limitedDescription:
+ '窗口已受捕获保护,但 macOS 仍允许较新的录屏软件和部分会议应用捕获它。请假设共享的屏幕可能会显示它。',
+ startAnyway: '仍然开始',
+ hideAndStart: '隐藏并开始',
+ start: '开始',
+ },
+
headphoneNotice: {
title: '必须佩戴耳机',
description: '开始前请戴上耳机。面试官的声音只能传到你的耳朵里 - 绝不能从扬声器放出来。',
diff --git a/src/renderer/lib/consts.ts b/src/renderer/lib/consts.ts
index ba19c1dd..edeab3e2 100644
--- a/src/renderer/lib/consts.ts
+++ b/src/renderer/lib/consts.ts
@@ -1,6 +1,7 @@
export const APP_NAME = 'Power Interview AI';
export const isMac = navigator.platform.toUpperCase().includes('MAC');
+export const isWindows = navigator.platform.toUpperCase().startsWith('WIN');
/**
* Fallback only, for while `AppState.creditsPerMinute` is `undefined` - before the first ping
diff --git a/src/renderer/types/config.ts b/src/renderer/types/config.ts
index 2b8c3493..f8699243 100644
--- a/src/renderer/types/config.ts
+++ b/src/renderer/types/config.ts
@@ -42,6 +42,6 @@ export interface Config {
// Hide the taskbar/Dock icon, pin on top and drop minimize while a live interview runs.
hideTaskbarWhileRunning: boolean;
- // Let screen capture see the main window. Stealth mode hides it regardless.
+ // Let screen capture see the main window. The only input; stealth mode does not override it.
allowScreenCapture: boolean;
}
diff --git a/test/content-protection.test.mjs b/test/content-protection.test.mjs
index 84754b6e..d3a42c48 100644
--- a/test/content-protection.test.mjs
+++ b/test/content-protection.test.mjs
@@ -1,7 +1,7 @@
/**
- * Content protection follows the `allowScreenCapture` setting, and stealth overrides it. The
- * override is the half a later change could quietly drop: a window the user made capturable for
- * a demo would then stay capturable in stealth mode, on the screen share stealth exists for.
+ * Content protection follows the `allowScreenCapture` setting and nothing else. Stealth used to
+ * override it, which implied a promise the OS does not keep (macOS ScreenCaptureKit ignores the
+ * protection), so the renderer now warns about a capturable window instead of stealth hiding it.
*/
import { createChecker, loadMainAs } from './helpers.mjs';
@@ -38,10 +38,10 @@ export async function run() {
check('an unchanged setting is not re-applied', protection.length === calls);
windowControl.enableStealth();
- check('stealth protects a capturable window', protection.at(-1) === true);
+ check('stealth leaves a capturable window capturable', protection.at(-1) === false);
windowControl.disableStealth();
- check('leaving stealth returns to the setting', protection.at(-1) === false);
+ check('leaving stealth leaves the setting in charge', protection.at(-1) === false);
// The app's own screenshot is of what is behind the window, so it protects the window for the
// capture even when the user allowed other apps to see it, and settles before capturing.
diff --git a/test/run.mjs b/test/run.mjs
index 102131ff..403bf9a1 100644
--- a/test/run.mjs
+++ b/test/run.mjs
@@ -95,6 +95,7 @@ for (const module of [
// Source-level and independent of everything above: it reads the renderer's navigation lock
// and the mock route off disk, so it sits with the other source-level checks.
'./interview-lock.test.mjs',
+ './screen-capture-notice.test.mjs',
'./subscription-expiry-warning.test.mjs',
// Source-level too, and next to the lock for the same reason: it reads which component owns
// the signed-out redirect off disk.
diff --git a/test/screen-capture-notice.test.mjs b/test/screen-capture-notice.test.mjs
new file mode 100644
index 00000000..4a0b6372
--- /dev/null
+++ b/test/screen-capture-notice.test.mjs
@@ -0,0 +1,51 @@
+/**
+ * The screen capture notice is renderer code, so these are source-level checks in the shape of
+ * `interview-lock.test.mjs`. Stealth no longer hides the window from capture - the
+ * `allowScreenCapture` setting alone does - so the warning before a live start and the badge
+ * during one are the only things telling the candidate a screen share can see the app. Dropping
+ * either is silent: nothing fails, the window simply shows up on the share.
+ */
+import { codeOnly, createChecker, readSource } from './helpers.mjs';
+
+export async function run() {
+ const { check, failures } = createChecker('screen-capture-notice');
+
+ const read = (path) => codeOnly(readSource(new URL(path, import.meta.url)));
+ const panel = read('../src/renderer/components/custom/control-panel/index.tsx');
+ const status = read('../src/renderer/components/custom/status-panel.tsx');
+ const hook = read('../src/renderer/hooks/use-screen-capture-status.ts');
+
+ check(
+ 'the status is capturable whenever capture is allowed',
+ /if \(enabled\) return 'capturable'/.test(hook)
+ );
+ check('only Windows is reported as protected', /isWindows \? 'protected' : 'limited'/.test(hook));
+
+ const confirmed = panel.indexOf('const handleHeadphonesConfirmed');
+ const confirmedBody = panel.slice(confirmed, panel.indexOf('const startAfterNotice'));
+ check('the headphone notice hands off to the capture check', confirmed !== -1);
+ check(
+ 'a capturable window opens the notice instead of starting',
+ confirmedBody.includes("captureStatus === 'protected'") &&
+ confirmedBody.includes('setCaptureNoticeOpen(true)')
+ );
+ check(
+ 'the headphone notice no longer starts directly',
+ /onProceed=\{handleHeadphonesConfirmed\}/.test(panel)
+ );
+ check(
+ 'cancelling the capture notice backs out of the start',
+ /