Open source Loom alternative. Beautiful, shareable screen recordings.
Rust appcapcossloommacnextjsnextjs15open-sourceossreactrecordrustscreen-capturescreen-recorderscreenshotsolidjstauritauri-apptypescriptvite
Use first-person voice in AI summary guidelines
Richie McIlroy8b34fd9a9add
diff --git a/apps/web/__tests__/unit/generate-ai-title.test.ts b/apps/web/__tests__/unit/generate-ai-title.test.tsindex 1b87b1af4..c330a9749 100644--- a/apps/web/__tests__/unit/generate-ai-title.test.ts+++ b/apps/web/__tests__/unit/generate-ai-title.test.ts@@ -149,7 +149,22 @@ describe("getAiContentGuidelines", () => {expect(summary).toContain("meaning and useful information");expect(summary).toContain("minor UI actions");expect(summary).toContain("never omit information required");- expect(summary).toContain("rather than enumerating every utterance");+ });++ it("uses a personal voice for the primary speaker", () => {+ const { summary } = getAiContentGuidelines(300);++ expect(summary).toContain('use "I" and "my"');+ expect(summary).toContain(+ 'Never describe the primary voice as "the speaker"',+ );+ expect(summary).toContain("use names only when the transcript identifies");+ expect(summary).toContain('write "I review the proposal"');+ expect(summary).toContain('instead of "The speaker reviews the proposal"');+ expect(summary).toContain(+ "Do not introduce names, projects, or personal details",+ );+ expect(summary).not.toContain("robot-dealer");});it("scales summary length without padding", () => {diff --git a/apps/web/workflows/generate-ai.ts b/apps/web/workflows/generate-ai.tsindex 70a456227..63604ee19 100644--- a/apps/web/workflows/generate-ai.ts+++ b/apps/web/workflows/generate-ai.ts@@ -301,9 +301,11 @@ export function getAiContentGuidelines(videoDuration: number): {- Then include only the essential explanation, outcomes, decisions, action items, and next steps needed to understand or act on the video.- Prioritize meaning and useful information over chronological retelling.- Omit filler, greetings, reactions, apologies, repetition, incidental conversation, minor UI actions, and timestamps unless a timestamp is essential to the viewer.-- Use the speaker's perspective when it is clear, but do not invent intent, outcomes, or actions.+- Write from the primary speaker's point of view. For a single-person video, use "I" and "my". Use "we" only when the speaker clearly represents a team or several participants share the discussion.+- Never describe the primary voice as "the speaker", "the presenter", "the user", "they", or any similar detached label.+- If multiple speakers need to be distinguished, use names only when the transcript identifies them unambiguously. Otherwise summarize the discussion directly without inventing names or identities.- Be concise, but never omit information required to understand or act on the video. Do not pad the summary to reach a target length.-- For example, summarize a short drawing-feature test as "I test the drawing and highlighting tools, including how highlights behave on moving elements" rather than enumerating every utterance and interaction.+- Convert detached narration into first person. For example, write "I review the proposal" instead of "The speaker reviews the proposal". Do not introduce names, projects, or personal details that are not present in the transcript.- ${lengthInstruction}`,chapters:videoDuration < 120