Skip to content

Desktop app that records your on-screen work session and uses the GitHub Copilot SDK to reconstruct it as an intent + ordered steps, then builds a reusable Skill or Automation for Microsoft Autopilots like Scout, Microsoft Copilot Cowork, or Copilot Studio.

Add recording privacy warning (#41)

Giorgio Ughini764df2cae31a
diff --git a/README.md b/README.md
index 7401b7f..e3f6e71 100644
--- a/README.md
+++ b/README.md
@@ -19,9 +19,9 @@ can repeat.
2. **Control** — while recording, a movable always-on-top bar shows capture and
microphone state. Use its split microphone control to mute, unmute, or change
inputs, then finish or discard the recording; discard always asks for confirmation.
-3. **Analyze** — on stop, it correlates the signals and a Copilot agent reconstructs
- *what you did*: one overall intent plus an ordered list of steps. You can review
- and edit the result.
+3. **Analyze** — when you choose Analyze, relevant recording data is sent to GitHub's
+ cloud service and processed by GitHub Copilot to reconstruct *what you did*: one
+ overall intent plus an ordered list of steps. You can review and edit the result.
4. **Create** — from an approved analysis, generalize the one run into a:
- **Skill** — a `SKILL.md` procedure an agent runs on demand, and
- **Automation** — the same procedure on a schedule/trigger.
@@ -32,15 +32,23 @@ can repeat.
## What's captured
-Everything is captured and processed **locally**. The in-app "Records your screen and
-activity" panel shows exactly what's collected:
+Recording, storage, frame extraction, and optional narration transcription happen
+**locally**, and nothing leaves your computer while you record. When you choose
+Analyze, the event timeline (including window/document titles, URLs, and clipboard
+previews), extracted screen images, narration text, and other content you provide are
+sent to GitHub's cloud service and processed by GitHub Copilot.
+
+Do not record, type, paste, display, copy, or narrate passwords, access tokens, API
+keys, credentials, secrets, or other sensitive or confidential information. The app
+shows a reminder before recording and its "Records your screen and activity" panel
+explains exactly what's collected:
- **Window tracking** — active-app / window switches (Koffi/Win32 on Windows,
`get-windows` elsewhere).
- **Browser URLs** — the page you're on (macOS, via AppleScript).
- **Screen video** — recorded by Chromium; low-rate snapshots are captured alongside
it and retained only when the screen changes or a heartbeat is due.
-- **Clipboard** — copy/paste content that ties steps together.
+- **Clipboard** — short previews of copied text that tie steps together.
- **Narration** *(optional)* — turn on **Narrate** before capture or toggle the
microphone from the floating recording bar. Narrate shows the active input and
remembers a selected microphone, with an explicit **System default** fallback.
diff --git a/common/ipc.ts b/common/ipc.ts
index 3fb913a..f80e332 100644
--- a/common/ipc.ts
+++ b/common/ipc.ts
@@ -201,6 +201,8 @@ export interface AutomationCreateResult {
export interface StartResult {
ok: boolean;
sessionId?: string;
+ /** The recording has not started; the renderer must show the pre-recording warning. */
+ privacyWarningRequired?: boolean;
error?: string;
}
@@ -316,6 +318,7 @@ export interface DoctorReport {
/** IPC channel names — the single source of truth shared by main + preload. */
export const IPC = {
start: "recorder:start",
+ startConfirmed: "recorder:start-confirmed",
stop: "recorder:stop",
discard: "recorder:discard",
microphone: "recorder:microphone",
@@ -328,6 +331,8 @@ export const IPC = {
marker: "recorder:marker",
doctor: "doctor:check",
statusChanged: "recorder:status-changed",
+ recordingPrivacyReviewed: "recorder:privacy-reviewed",
+ recordingPrivacyWarningRequested: "recorder:privacy-warning-requested",
narrationStatus: "narration:status",
narrationDownload: "narration:download",
narrationTranscribe: "narration:transcribe",
@@ -359,7 +364,12 @@ export const IPC = {
/** Shape exposed on `window.skillRecorder` by the preload bridge. */
export interface SkillRecorderApi {
+ /** Request a start; may require the pre-recording privacy warning first. */
start(): Promise<StartResult>;
+ /** Start once after the user explicitly proceeds through the privacy warning. */
+ confirmStart(): Promise<StartResult>;
+ markRecordingPrivacyReviewed(): Promise<void>;
+ onRecordingPrivacyWarningRequested(cb: () => void): () => void;
stop(): Promise<StopResult>;
discard(): Promise<DiscardResult>;
setMicrophoneEnabled(enabled: boolean): Promise<MicrophoneResult>;
diff --git a/electron/ipc.ts b/electron/ipc.ts
index 6852296..2c6bf9e 100644
--- a/electron/ipc.ts
+++ b/electron/ipc.ts
@@ -42,10 +42,6 @@ export function registerIpc(
narration: NarrationManager,
microphones: AudioRecorder,
): void {
- ipcMain.handle(IPC.start, async () => {
- await microphones.whenSettingsSettled();
- return recorder.start(microphones.startOptions());
- });
ipcMain.handle(IPC.stop, () => recorder.stop());
ipcMain.handle(IPC.discard, () => recorder.discard());
ipcMain.handle(IPC.microphone, (_event, enabled: boolean) =>
diff --git a/electron/main.ts b/electron/main.ts
index 790179e..ef407e0 100644
--- a/electron/main.ts
+++ b/electron/main.ts
@@ -1,7 +1,7 @@
import { app, BrowserWindow, globalShortcut, ipcMain, Menu, screen } from "electron";
import { FULL_CAPTURE } from "../common/config";
-import { IPC, type RecorderStatus } from "../common/ipc";
+import { IPC, type RecorderStatus, type StartResult } from "../common/ipc";
import { createCollectors } from "./collectors";
import { Describer } from "./describer/describer";
import { processSession } from "./pipeline";
@@ -9,6 +9,7 @@ import { registerIpc } from "./ipc";
import { createLogger } from "./logger";
import { NarrationManager } from "./narration/manager";
import { RecorderController } from "./recorder/controller";
+import { RecordingPrivacySession } from "./recording-privacy";
import { deleteSession } from "./sessions";
import { SkillBuilder } from "./skillbuilder/builder";
import { AutomationBuilder } from "./automationbuilder/builder";
@@ -33,6 +34,7 @@ let recorderHome: Electron.Rectangle | null = null;
let controlsExpanded = false;
let quitReady = false;
let quitTask: Promise<void> | null = null;
+const recordingPrivacy = new RecordingPrivacySession();
const narration = new NarrationManager((status) =>
broadcast(IPC.narrationStatusChanged, status),
);
@@ -56,7 +58,7 @@ const recorder = new RecorderController({
},
});
-async function startRecording(): Promise<unknown> {
+async function startRecording(): Promise<StartResult> {
await microphones.whenSettingsSettled();
return recorder.start(microphones.startOptions());
}
@@ -120,12 +122,31 @@ function showRecordingControls(): void {
win.moveTop();
}
-function showRecorderWindow(): void {
+function showRecorderWindow(): BrowserWindow {
if (!recorderWindow || recorderWindow.isDestroyed()) {
recorderWindow = createRecorderWindow();
}
recorderWindow.show();
recorderWindow.focus();
+ return recorderWindow;
+}
+
+function showRecordingPrivacyWarning(): void {
+ const win = showRecorderWindow();
+ const notify = () => {
+ if (!win.isDestroyed()) win.webContents.send(IPC.recordingPrivacyWarningRequested);
+ };
+ if (win.webContents.isLoading()) {
+ win.webContents.once("did-finish-load", notify);
+ } else {
+ notify();
+ }
+}
+
+async function requestStartRecording(): Promise<StartResult> {
+ if (recordingPrivacy.startDecision() === "start") return startRecording();
+ showRecordingPrivacyWarning();
+ return { ok: false, privacyWarningRequired: true };
}
/** Keep the full HUD and compact overlay mutually exclusive. */
@@ -192,6 +213,9 @@ app.whenReady().then(async () => {
narration,
microphones,
);
+ ipcMain.handle(IPC.start, () => requestStartRecording());
+ ipcMain.handle(IPC.startConfirmed, () => startRecording());
+ ipcMain.handle(IPC.recordingPrivacyReviewed, () => recordingPrivacy.markReviewed());
log.info("Capture: recording all sources");
ipcMain.handle(IPC.openLibrary, () => openLibrary());
@@ -226,7 +250,7 @@ app.whenReady().then(async () => {
try {
createTray(
recorder,
- startRecording,
+ requestStartRecording,
showRecorderWindow,
showRecordingControls,
);
@@ -237,7 +261,7 @@ app.whenReady().then(async () => {
const toggle = () => {
const status = recorder.status();
if (status.transition !== "none") return;
- void (status.state === "recording" ? recorder.stop() : startRecording());
+ void (status.state === "recording" ? recorder.stop() : requestStartRecording());
};
if (!globalShortcut.register("CommandOrControl+Shift+R", toggle)) {
log.warn("Global shortcut registration failed");
diff --git a/electron/preload.cjs b/electron/preload.cjs
index 3b654c9..0829233 100644
--- a/electron/preload.cjs
+++ b/electron/preload.cjs
@@ -4,6 +4,7 @@ const { contextBridge, ipcRenderer } = require("electron");
const IPC = {
start: "recorder:start",
+ startConfirmed: "recorder:start-confirmed",
stop: "recorder:stop",
discard: "recorder:discard",
microphone: "recorder:microphone",
@@ -16,6 +17,8 @@ const IPC = {
marker: "recorder:marker",
doctor: "doctor:check",
statusChanged: "recorder:status-changed",
+ recordingPrivacyReviewed: "recorder:privacy-reviewed",
+ recordingPrivacyWarningRequested: "recorder:privacy-warning-requested",
narrationStatus: "narration:status",
narrationDownload: "narration:download",
narrationTranscribe: "narration:transcribe",
@@ -45,8 +48,30 @@ const IPC = {
recordingControlsExpanded: "ui:recording-controls-expanded",
};
+let recordingPrivacyWarningPending = false;
+let recordingPrivacyWarningCallback = null;
+ipcRenderer.on(IPC.recordingPrivacyWarningRequested, () => {
+ if (recordingPrivacyWarningCallback) {
+ recordingPrivacyWarningCallback();
+ return;
+ }
+ recordingPrivacyWarningPending = true;
+});
+
contextBridge.exposeInMainWorld("skillRecorder", {
start: () => ipcRenderer.invoke(IPC.start),
+ confirmStart: () => ipcRenderer.invoke(IPC.startConfirmed),
+ markRecordingPrivacyReviewed: () => ipcRenderer.invoke(IPC.recordingPrivacyReviewed),
+ onRecordingPrivacyWarningRequested: (cb) => {
+ recordingPrivacyWarningCallback = cb;
+ if (recordingPrivacyWarningPending) {
+ recordingPrivacyWarningPending = false;
+ cb();
+ }
+ return () => {
+ if (recordingPrivacyWarningCallback === cb) recordingPrivacyWarningCallback = null;
+ };
+ },
stop: () => ipcRenderer.invoke(IPC.stop),
discard: () => ipcRenderer.invoke(IPC.discard),
setMicrophoneEnabled: (enabled) => ipcRenderer.invoke(IPC.microphone, enabled),
diff --git a/electron/recording-privacy.test.ts b/electron/recording-privacy.test.ts
new file mode 100644
index 0000000..391306a
--- /dev/null
+++ b/electron/recording-privacy.test.ts
@@ -0,0 +1,22 @@
+import assert from "node:assert/strict";
+import test from "node:test";
+
+import { RecordingPrivacySession } from "./recording-privacy";
+
+test("warns before every start until the detailed disclosure is reviewed", () => {
+ const privacy = new RecordingPrivacySession();
+
+ assert.equal(privacy.startDecision(), "show-warning");
+ assert.equal(privacy.startDecision(), "show-warning");
+
+ privacy.markReviewed();
+ assert.equal(privacy.startDecision(), "start");
+});
+
+test("review acknowledgement does not survive a new app process", () => {
+ const firstLaunch = new RecordingPrivacySession();
+ firstLaunch.markReviewed();
+
+ const nextLaunch = new RecordingPrivacySession();
+ assert.equal(nextLaunch.startDecision(), "show-warning");
+});
diff --git a/electron/recording-privacy.ts b/electron/recording-privacy.ts
new file mode 100644
index 0000000..d3b431c
--- /dev/null
+++ b/electron/recording-privacy.ts
@@ -0,0 +1,14 @@
+export type RecordingStartDecision = "show-warning" | "start";
+
+/** App-lifetime privacy acknowledgement; a new process creates a fresh session. */
+export class RecordingPrivacySession {
+ private reviewed = false;
+
+ startDecision(): RecordingStartDecision {
+ return this.reviewed ? "start" : "show-warning";
+ }
+
+ markReviewed(): void {
+ this.reviewed = true;
+ }
+}
diff --git a/package.json b/package.json
index 00a3b46..8908079 100644
--- a/package.json
+++ b/package.json
@@ -14,7 +14,7 @@
"build": "tsc --noEmit && vite build",
"typecheck": "tsc --noEmit",
"typecheck:evals": "tsc --noEmit -p evals/tsconfig.json",
- "test": "node --experimental-transform-types --no-warnings --import ./evals/register.mjs --test common/audio.test.ts common/microphone.test.ts common/narration.test.ts electron/recording-controls-bounds.test.ts electron/recorder/controller.test.ts electron/frames/extractor.test.ts electron/narration/audio-analysis.test.ts electron/narration/analyze-gate.test.ts electron/narration/transcribe.test.ts electron/narration/whisper.test.ts electron/sessions.test.ts",
+ "test": "node --experimental-transform-types --no-warnings --import ./evals/register.mjs --test common/audio.test.ts common/microphone.test.ts common/narration.test.ts electron/recording-controls-bounds.test.ts electron/recording-privacy.test.ts electron/recorder/controller.test.ts electron/frames/extractor.test.ts electron/narration/audio-analysis.test.ts electron/narration/analyze-gate.test.ts electron/narration/transcribe.test.ts electron/narration/whisper.test.ts electron/sessions.test.ts",
"eval": "node --experimental-transform-types --no-warnings --import ./evals/register.mjs evals/run.ts",
"eval:builder": "node --experimental-transform-types --no-warnings --import ./evals/register.mjs evals/builder/run.ts",
"eval:skill": "node --experimental-transform-types --no-warnings --import ./evals/register.mjs evals/skillbuilder/run.ts",
diff --git a/src/App.css b/src/App.css
index 375f11f..313c03c 100644
--- a/src/App.css
+++ b/src/App.css
@@ -701,6 +701,73 @@ button:focus-visible,
transform: translateX(2px);
}
+/* Pre-recording privacy warning */
+.recording-warning {
+ display: flex;
+ flex-direction: column;
+ gap: 13px;
+ width: 100%;
+ max-width: 344px;
+ background: var(--surface);
+ border: 1px solid var(--line);
+ border-radius: 14px;
+ padding: 18px;
+ box-shadow: 0 24px 60px -18px rgba(0, 0, 0, 0.4);
+ animation: sheet-rise 0.18s ease;
+}
+
+.recording-warning-head {
+ display: flex;
+ align-items: center;
+ gap: 10px;
+}
+
+.recording-warning-icon {
+ display: flex;
+ align-items: center;
+ justify-content: center;
+ flex: none;
+ width: 32px;
+ height: 32px;
+ border-radius: 9px;
+ background: rgba(var(--warn-rgb), 0.14);
+ color: #8a5d00;
+}
+
+.recording-warning-head h2 {
+ margin: 0;
+ font-size: 15px;
+ font-weight: 700;
+}
+
+.recording-warning-copy,
+.recording-warning-detail {
+ margin: 0;
+ font-size: 12px;
+ line-height: 1.5;
+}
+
+.recording-warning-copy {
+ color: var(--text);
+}
+
+.recording-warning-detail {
+ color: var(--muted);
+ background: var(--surface-2);
+ border-radius: 9px;
+ padding: 9px 11px;
+}
+
+.recording-warning-actions {
+ display: grid;
+ gap: 8px;
+}
+
+.recording-warning-actions button {
+ width: 100%;
+ min-height: 38px;
+}
+
/* What's-recorded disclosure sheet */
.sheet-backdrop {
position: fixed;
@@ -840,6 +907,7 @@ button:focus-visible,
@media (prefers-reduced-motion: reduce) {
.sheet-backdrop,
+ .recording-warning,
.sheet {
animation: none;
}
@@ -1667,6 +1735,30 @@ button:focus-visible,
font-size: 13px;
}
+.cloud-analysis-note {
+ display: flex;
+ flex-direction: column;
+ gap: 6px;
+ max-width: 610px;
+ margin: 0;
+ padding: 12px 14px;
+ border: 1px solid var(--line);
+ border-radius: 10px;
+ background: var(--surface-2);
+ color: var(--muted);
+ font-size: 12px;
+ line-height: 1.45;
+}
+
+.cloud-analysis-note strong {
+ color: var(--text);
+ font-size: 12.5px;
+}
+
+.cloud-analysis-caution {
+ color: var(--brand-ink);
+}
+
.voice-card {
display: flex;
align-items: center;
diff --git a/src/Library.tsx b/src/Library.tsx
index 879fada..2ff6d72 100644
--- a/src/Library.tsx
+++ b/src/Library.tsx
@@ -503,6 +503,18 @@ function AnalysisWorkspace({
{summary.processed && !analysis && !analyzing && (
<div className="ws-empty">
<p>See what you did in this recording, step by step.</p>
+ <div className="cloud-analysis-note">
+ <strong>GitHub Copilot cloud analysis</strong>
+ <span>
+ Analyze sends the event timeline—including window and document titles, URLs,
+ and clipboard previews—plus extracted screen images, narration text, and other
+ content you provide to GitHub&apos;s cloud service for processing by GitHub Copilot.
+ </span>
+ <span className="cloud-analysis-caution">
+ Do not analyze a recording that may contain passwords, access tokens, API keys,
+ credentials, secrets, or other sensitive or confidential information.
+ </span>
+ </div>
{voicePending && (
<p className="voice-analysis-note">
{narrationStatus?.model === "ready"
diff --git a/src/Recorder.tsx b/src/Recorder.tsx
index 88a1945..74eff02 100644
--- a/src/Recorder.tsx
+++ b/src/Recorder.tsx
@@ -15,11 +15,13 @@ import {
type NarrationLanguage,
} from "../common/narration";
import { formatMs } from "./format";
+import { RecordingPrivacyWarning } from "./RecordingPrivacyWarning";
import { WhatsRecorded } from "./WhatsRecorded";
const IS_MAC = typeof navigator !== "undefined" && /Mac/i.test(navigator.userAgent);
/** Mirrors the main-process global shortcut "CommandOrControl+Shift+R", per OS. */
const TOGGLE_SHORTCUT = IS_MAC ? "⌘⇧R" : "Ctrl+Shift+R";
+type PrivacyReviewOrigin = "home" | "warning";
export function Recorder() {
const [status, setStatus] = useState<RecorderStatus | null>(null);
@@ -27,7 +29,10 @@ export function Recorder() {
const [narrationStatus, setNarrationStatus] = useState<NarrationStatus | null>(null);
const [microphoneSettings, setMicrophoneSettings] =
useState<MicrophoneSettingsStatus | null>(null);
- const [showPrivacy, setShowPrivacy] = useState(false);
+ const [privacyReviewOrigin, setPrivacyReviewOrigin] =
+ useState<PrivacyReviewOrigin | null>(null);
+ const [showRecordingWarning, setShowRecordingWarning] = useState(false);
+ const [warningStarting, setWarningStarting] = useState(false);
const [showNarrationSettings, setShowNarrationSettings] = useState(false);
const [narrationLanguage, setSelectedNarrationLanguage] =
useState<NarrationLanguage>(DEFAULT_NARRATION_LANGUAGE);
@@ -66,6 +71,13 @@ export function Recorder() {
};
}, [applyRecorderStatus, refreshCount]);
+ useEffect(() => {
+ return window.skillRecorder.onRecordingPrivacyWarningRequested(() => {
+ setShowNarrationSettings(false);
+ setShowRecordingWarning(true);
+ });
+ }, []);
+
// The analyze step happens in the library window, so re-check how many
// recordings still need analysis whenever the recorder regains focus.
useEffect(() => {
@@ -119,13 +131,52 @@ export function Recorder() {
}, [recording, startedAt]);
const toggle = useCallback(async () => {
- const res = recording
- ? await window.skillRecorder.stop()
- : await window.skillRecorder.start();
+ if (recording) {
+ const res = await window.skillRecorder.stop();
+ if (!res.ok) window.alert(res.error ?? "Action failed");
+ applyRecorderStatus(await window.skillRecorder.status());
+ return;
+ }
+
+ const res = await window.skillRecorder.start();
+ if (res.privacyWarningRequired) {
+ setShowRecordingWarning(true);
+ return;
+ }
if (!res.ok) window.alert(res.error ?? "Action failed");
applyRecorderStatus(await window.skillRecorder.status());
}, [applyRecorderStatus, recording]);
+ const startAfterWarning = useCallback(async () => {
+ setWarningStarting(true);
+ const res = await window.skillRecorder.confirmStart();
+ if (!res.ok) {
+ setWarningStarting(false);
+ window.alert(res.error ?? "Could not start recording.");
+ return;
+ }
+ setShowRecordingWarning(false);
+ setWarningStarting(false);
+ applyRecorderStatus(await window.skillRecorder.status());
+ }, [applyRecorderStatus]);
+
+ const openPrivacyReview = useCallback((origin: PrivacyReviewOrigin) => {
+ setShowRecordingWarning(false);
+ setPrivacyReviewOrigin(origin);
+ }, []);
+
+ const closePrivacyReview = useCallback(() => {
+ const returnToWarning = privacyReviewOrigin === "warning";
+ setPrivacyReviewOrigin(null);
+ if (returnToWarning) setShowRecordingWarning(true);
+ }, [privacyReviewOrigin]);
+
+ const completePrivacyReview = useCallback(async () => {
+ await window.skillRecorder.markRecordingPrivacyReviewed();
+ setPrivacyReviewOrigin(null);
+ setShowRecordingWarning(false);
+ }, []);
+
const selectNarrationLanguage = useCallback(
async (value: string) => {
if (!isNarrationLanguage(value)) {
@@ -366,7 +417,7 @@ export function Recorder() {
)}
</section>
- <button className="privacy-note" onClick={() => setShowPrivacy(true)}>
+ <button className="privacy-note" onClick={() => openPrivacyReview("home")}>
<span className="privacy-note-icon" aria-hidden>
<svg width="18" height="18" viewBox="0 0 20 20" fill="none">
<path
@@ -481,7 +532,20 @@ export function Recorder() {
<p className="hint">{TOGGLE_SHORTCUT} toggles from anywhere</p>
- {showPrivacy && <WhatsRecorded onClose={() => setShowPrivacy(false)} />}
+ {showRecordingWarning && (
+ <RecordingPrivacyWarning
+ starting={warningStarting}
+ onStart={() => void startAfterWarning()}
+ onReview={() => openPrivacyReview("warning")}
+ onClose={() => setShowRecordingWarning(false)}
+ />
+ )}
+ {privacyReviewOrigin && (
+ <WhatsRecorded
+ onClose={closePrivacyReview}
+ onReviewed={() => void completePrivacyReview()}
+ />
+ )}
</div>
);
}
diff --git a/src/RecordingPrivacyWarning.tsx b/src/RecordingPrivacyWarning.tsx
new file mode 100644
index 0000000..38c7649
--- /dev/null
+++ b/src/RecordingPrivacyWarning.tsx
@@ -0,0 +1,81 @@
+import { useEffect, useRef } from "react";
+
+export function RecordingPrivacyWarning({
+ starting,
+ onStart,
+ onReview,
+ onClose,
+}: {
+ starting: boolean;
+ onStart: () => void;
+ onReview: () => void;
+ onClose: () => void;
+}) {
+ const startRef = useRef<HTMLButtonElement>(null);
+
+ useEffect(() => {
+ startRef.current?.focus({ preventScroll: true });
+ const onKeyDown = (event: KeyboardEvent) => {
+ if (event.key === "Escape" && !starting) onClose();
+ };
+ window.addEventListener("keydown", onKeyDown);
+ return () => window.removeEventListener("keydown", onKeyDown);
+ }, [onClose, starting]);
+
+ return (
+ <div className="sheet-backdrop" onClick={starting ? undefined : onClose}>
+ <div
+ className="recording-warning"
+ role="dialog"
+ aria-modal="true"
+ aria-labelledby="recording-warning-title"
+ aria-describedby="recording-warning-copy recording-warning-detail"
+ aria-busy={starting}
+ onClick={(event) => event.stopPropagation()}
+ >
+ <header className="recording-warning-head">
+ <span className="recording-warning-icon" aria-hidden>
+ <svg width="19" height="19" viewBox="0 0 20 20" fill="none">
+ <path
+ d="M10 2.5 4 4.8v4.3c0 3.4 2.4 6.2 6 7.4 3.6-1.2 6-4 6-7.4V4.8L10 2.5Z"
+ stroke="currentColor"
+ strokeWidth="1.4"
+ strokeLinejoin="round"
+ />
+ <path
+ d="M10 6.4v4.1M10 13.4h.01"
+ stroke="currentColor"
+ strokeWidth="1.5"
+ strokeLinecap="round"
+ />
+ </svg>
+ </span>
+ <h2 id="recording-warning-title">Before you record</h2>
+ </header>
+
+ <p id="recording-warning-copy" className="recording-warning-copy">
+ Keep passwords, access tokens, API keys, and other sensitive or confidential
+ information off screen and out of narration.
+ </p>
+ <p id="recording-warning-detail" className="recording-warning-detail">
+ For complete transparency, review exactly what&apos;s captured and what may later be
+ sent to GitHub Copilot for cloud analysis.
+ </p>
+
+ <div className="recording-warning-actions">
+ <button className="secondary" onClick={onReview} disabled={starting}>
+ See exactly what&apos;s captured
+ </button>
+ <button
+ ref={startRef}
+ className="record-cta"
+ onClick={onStart}
+ disabled={starting}
+ >
+ {starting ? "Starting…" : "Start recording"}
+ </button>
+ </div>
+ </div>
+ </div>
+ );
+}
diff --git a/src/WhatsRecorded.tsx b/src/WhatsRecorded.tsx
index 7d61266..f9194c2 100644
--- a/src/WhatsRecorded.tsx
+++ b/src/WhatsRecorded.tsx
@@ -5,7 +5,13 @@ import { useEffect, useRef } from "react";
* and what leaves the machine on analysis. Every claim here is grounded in the
* actual collectors and describer behavior, so it must be kept in sync with them.
*/
-export function WhatsRecorded({ onClose }: { onClose: () => void }) {
+export function WhatsRecorded({
+ onClose,
+ onReviewed,
+}: {
+ onClose: () => void;
+ onReviewed: () => void;
+}) {
const sheetRef = useRef<HTMLDivElement>(null);
useEffect(() => {
@@ -64,8 +70,10 @@ export function WhatsRecorded({ onClose }: { onClose: () => void }) {
<li>A silent video of your screen at a low frame rate.</li>
</ul>
<p className="sheet-caution">
- If you copy something sensitive like a password while recording, its preview is captured.
- Stop the recording or avoid copying secrets during a session.
+ Do not type, paste, display, copy, or narrate passwords, access tokens, API keys,
+ credentials, secrets, or other sensitive or confidential information. Anything visible
+ on screen can appear in the recording, and copied text previews and narration are
+ captured too.
</p>
</section>
@@ -108,9 +116,9 @@ export function WhatsRecorded({ onClose }: { onClose: () => void }) {
<ul>
<li>Nothing leaves your computer while you record.</li>
<li>
- When you choose Analyze, the timeline, the recorded events, screenshots from your
- video, and your narration text (if you recorded any) are sent to a Copilot AI model so
- it can describe what you did.
+ When you choose Analyze, the event timeline—including window and document titles,
+ URLs, and clipboard previews—plus extracted screen images and narration text (if
+ recorded) are sent to GitHub&apos;s cloud service and processed by GitHub Copilot.
</li>
</ul>
</section>
@@ -123,7 +131,7 @@ export function WhatsRecorded({ onClose }: { onClose: () => void }) {
</ul>
</section>
- <button className="sheet-close" onClick={onClose}>
+ <button className="sheet-close" onClick={onReviewed}>
Got it
</button>
</div>