Skip to content

feat(transcription): long recordings, transcripts and notes in projects - #1080

Draft
yaacovcorcos wants to merge 1 commit into
mainfrom
codex/transcription-integration-20261122
Draft

yaacovcorcos wants to merge 1 commit into
mainfrom
codex/transcription-integration-20261122

Conversation

@yaacovcorcos

Copy link
Copy Markdown
Contributor

Draft for collaborator testing. It is large (one integration branch); it can be split into reviewed parts before merge.

What Changed

Long recordings can now be transcribed, read, searched and summarised inside a project, in any language, including long Hebrew maths lessons.

  • Recordings (rail icon and per-project tab): add audio or video files, record from the microphone, or import an existing transcript (.srt, .vtt, .ass, .docx). Search across all transcripts; filter by project or status.
  • Transcription jobs on the server: resumable long-form transcription with checkpoints, pause/resume, batches of up to 20 files, versions per recording, and progress while it runs.
  • Engines: local models from the speech catalog (ivrit.ai Whisper turbo recommended for Hebrew), ChatGPT through the user's sign-in, and cloud engines (OpenAI, xAI, OpenRouter, compatible endpoints) through keys saved in Accounts. Recommendations per language, cost and time estimates.
  • Correction: Off / Quick / Thorough passes with a chosen model, and a review flow for uncertain words (Accept / Keep original, with replay).
  • Words: personal, project and per-recording vocabulary for names and terms.
  • Recording view: player (audio and video, theater, full screen, captions), transcript that follows playback, find, versions, export (.md, .txt, .srt, .vtt), Ask about this recording (opens a chat with the transcript), and Notes (Summary, Study notes, Action items saved as project documents).
  • Agents: Transcripts skill and transcription tools for Scient agents.
  • Transcription settings: one page for microphone, dictation, recording defaults, speech models, cloud engines and Words. The legacy voice runtime is retired; dictation runs through the shared speech service.

Latest pass in this PR (UI quality and fixes):

  • One toolbar under the player; find opens in place; Follow sits with the transcript; versions read "Version 3" with time and engine.
  • Right-to-left paragraphs put their timestamp on the reading side.
  • Notes without a nested card; one-click Summary / Study notes / Action items.
  • Fix: an expired media link (links last one hour) no longer ends in "Could not play the recording"; the player gets a fresh link and resumes in place.
  • Fix: Back returns to Recordings instead of leaving an empty maximized tab.
  • Fix: sliders fill to their value.
  • Settings: one "Dictate with" menu instead of four controls, compact recording defaults, model list without nested scroll or cache paths, tidier cloud engine rows.
  • Cloud audio is treated like any cloud model: agents may use cloud speech engines by default, and "audio is sent to…" warnings are gone.

Why

Users ask to give Scient long lecture recordings (for example maths lessons in Hebrew), get a full transcript, and summarise or question it. That needs long-form, resumable transcription with good Hebrew models, a reader built for checking the text against the audio, and notes that live in the project.

Documentation Impact

Documentation impact: Updated — docs/internals/transcription.md, docs/user/voice-dictation.md, apps/server/src/scient/skills/built-ins/transcripts/SKILL.md

Platforms

Platform Expected behavior Checks run Unproven
macOS Full feature, local models on Apple Silicon Typecheck, lint, Knip, web unit + browser tests, server and contracts tests; live use in a dev app (local Hebrew transcription, video lecture, find, notes, settings, expired-link recovery) Microphone recording on a fresh install; Intel Mac speed
Windows Same feature; local models run on CPU (slower) CI tests and Windows packaging test of the speech runtime Live use, microphone permission, model speed
Linux Same feature; local models run on CPU CI tests and Linux packaging test Live use, microphone access

Verification

  • pnpm run typecheck — pass. vp lint, vp fmt, Knip — pass.
  • Web unit project — 12,328 pass (includes the React Compiler coverage and :has() guard tests; this PR fixes eleven transcription files the compiler had skipped).
  • Web browser tests for recordings, voice and settings — 378 pass.
  • Contracts tests — pass. Server speech and transcription tests — 223 pass.
  • Full server suite on this Mac (Node 26): a few failures outside this feature (McpHttpServer 2026-07-28 discovery and deferred listing, PortScanner process groups, Git lanes, file watch). The MCP ones still fail with the transcription tools removed, and main's CI passes them, so they look machine-specific; this PR's CI is the check.
  • Live dev app (macOS): opened Hebrew audio and English video recordings, played, searched, switched tabs and versions, exported, went Back and reopened, checked dark mode and a narrow panel, broke the media link mid-playback (playback resumed at the same point), and walked Transcription settings and the Transcribe and Record dialogs.

UI Changes

Before/after screenshots of the recording view, find, notes, list, Transcribe dialog, Record dialog and Transcription settings were reviewed in light and dark and at a narrow width. They will be attached here.

Review

Review: Not yet — draft for collaborator testing; Codex high review and a live test in a built app run before it leaves draft.

Model and harness: Claude Opus 5.5 in Claude Code (Scient), with earlier parts built with Codex.

🤖 Generated with Claude Code

@github-actions github-actions Bot added vouch:trusted Author is trusted by repo permissions or the VOUCHED list. size:XXL labels Nov 23, 2026
@github-actions

Copy link
Copy Markdown
Contributor

This PR changes the test suite by +44 test cases (browser +21, unit -105, server +128).

New browser test files: apps/web/src/components/settings/CustomModelsCredentials.browser.test.tsx, apps/web/src/scient/recordings/ImportTranscriptDialog.browser.test.tsx, apps/web/src/scient/recordings/RecordingCapture.browser.test.tsx, apps/web/src/scient/recordings/RecordingPlayer.browser.test.tsx, apps/web/src/scient/recordings/RecordingsPage.browser.test.tsx, apps/web/src/scient/transcription/WordsPanel.browser.test.tsx, apps/web/src/scient/voice/ScientVoiceEvidence.browser.test.tsx.
Each browser test file costs CI seconds of module loading before its first test runs; a unit test costs milliseconds.

Keep tests that would fail for a real reason, and test logic below the UI where it can be. See Testing.

@github-actions

github-actions Bot commented Nov 23, 2026 •

Copy link
Copy Markdown
Contributor

Thread transfer impact

✅ Thread transfer remains within every enforced ceiling.

Provider Metric Main baseline This PR Impact PR ceiling
Codex Total thread wire 5.5 KiB 5.5 KiB 0 B (0.0%) 6.8 KiB ✅
Codex Thread snapshot wire 4.2 KiB 4.2 KiB 0 B (0.0%) 4.9 KiB ✅
Codex Live turn WebSocket wire 1.3 KiB 1.3 KiB 0 B (0.0%) 2.0 KiB ✅
Codex Live turn WebSocket decoded 22.3 KiB 22.3 KiB 0 B (0.0%) 24.4 KiB ✅
Codex Live turn messages 1 1 0 (0.0%) 8 ✅
Claude Total thread wire 5.5 KiB 5.5 KiB 0 B (0.0%) 6.8 KiB ✅
Claude Thread snapshot wire 4.2 KiB 4.2 KiB 0 B (0.0%) 4.9 KiB ✅
Claude Live turn WebSocket wire 1.3 KiB 1.3 KiB 0 B (0.0%) 2.0 KiB ✅
Claude Live turn WebSocket decoded 22.7 KiB 22.7 KiB 0 B (0.0%) 24.4 KiB ✅
Claude Live turn messages 1 1 0 (0.0%) 8 ✅

Other scenarios

All 64 scenario measurements match main.

All 64 scenario measurements
Provider Scenario Metric Main baseline This PR Impact PR ceiling
Codex short turn resume WebSocket decoded 12.0 KiB 12.0 KiB 0 B (0.0%) 12.7 KiB ✅
Codex short turn resume WebSocket messages 2 2 0 (0.0%) 2 ✅
Codex long turn running, cold open HTTP decoded 281.7 KiB 281.7 KiB 0 B (0.0%) 302.7 KiB ✅
Codex long turn running, cold open rows 75 75 0 (0.0%) 75 ✅
Codex long turn running, history page HTTP decoded 92.4 KiB 92.4 KiB 0 B (0.0%) 107.4 KiB ✅
Codex long turn running, history page rows 75 75 0 (0.0%) 75 ✅
Codex long turn finished, cold open HTTP decoded 381.5 KiB 381.5 KiB 0 B (0.0%) 410.2 KiB ✅
Codex long turn finished, cold open rows 151 151 0 (0.0%) 151 ✅
Codex long turn finished, socket cold open WebSocket decoded 381.6 KiB 381.6 KiB 0 B (0.0%) 410.2 KiB ✅
Codex long turn finished, socket cold open WebSocket messages 2 2 0 (0.0%) 2 ✅
Codex long turn finished, socket cold open rows 151 151 0 (0.0%) 151 ✅
Codex long turn finished, work page HTTP decoded 186.2 KiB 186.2 KiB 0 B (0.0%) 200.2 KiB ✅
Codex long turn finished, work page rows 150 150 0 (0.0%) 150 ✅
Codex idle thread resume WebSocket decoded 65 B 65 B 0 B (0.0%) 200 B ✅
Codex idle thread resume WebSocket messages 1 1 0 (0.0%) 1 ✅
Codex fleet shell snapshot HTTP decoded 45.5 KiB 45.5 KiB 0 B (0.0%) 53.7 KiB ✅
Codex fleet shell snapshot rows 27 27 0 (0.0%) 27 ✅
Codex fleet shell subscribe WebSocket decoded 65 B 65 B 0 B (0.0%) 200 B ✅
Codex fleet shell subscribe WebSocket messages 1 1 0 (0.0%) 1 ✅
Codex fleet shell resume check HTTP decoded 18 B 18 B 0 B (0.0%) 100 B ✅
Codex fleet shell resume check rows 0 0 0 0 ✅
Codex stale shell reload HTTP decoded 45.5 KiB 45.5 KiB 0 B (0.0%) 53.7 KiB ✅
Codex stale shell reload rows 27 27 0 (0.0%) 27 ✅
Codex stale shell resume WebSocket decoded 140 B 140 B 0 B (0.0%) 400 B ✅
Codex stale shell resume WebSocket messages 2 2 0 (0.0%) 2 ✅
Codex stale todo list cold open HTTP decoded 72.4 KiB 72.4 KiB 0 B (0.0%) 83.0 KiB ✅
Codex stale todo list cold open rows 75 75 0 (0.0%) 75 ✅
Codex stale todo list cold open nodes 2 2 0 (0.0%) 4 ✅
Codex stale todo list cold open subagents 2 2 0 (0.0%) 4 ✅
Codex stale todo list cold open plans 1 1 0 (0.0%) 2 ✅
Codex stale todo list cold open providerTurns 1 1 0 (0.0%) 2 ✅
Codex stale todo list cold open checkpoints 1 1 0 (0.0%) 2 ✅
Claude short turn resume WebSocket decoded 12.2 KiB 12.2 KiB 0 B (0.0%) 12.7 KiB ✅
Claude short turn resume WebSocket messages 2 2 0 (0.0%) 2 ✅
Claude long turn running, cold open HTTP decoded 283.3 KiB 283.3 KiB 0 B (0.0%) 302.7 KiB ✅
Claude long turn running, cold open rows 75 75 0 (0.0%) 75 ✅
Claude long turn running, history page HTTP decoded 93.4 KiB 93.4 KiB 0 B (0.0%) 107.4 KiB ✅
Claude long turn running, history page rows 75 75 0 (0.0%) 75 ✅
Claude long turn finished, cold open HTTP decoded 384.1 KiB 384.1 KiB 0 B (0.0%) 410.2 KiB ✅
Claude long turn finished, cold open rows 151 151 0 (0.0%) 151 ✅
Claude long turn finished, socket cold open WebSocket decoded 384.3 KiB 384.3 KiB 0 B (0.0%) 410.2 KiB ✅
Claude long turn finished, socket cold open WebSocket messages 2 2 0 (0.0%) 2 ✅
Claude long turn finished, socket cold open rows 151 151 0 (0.0%) 151 ✅
Claude long turn finished, work page HTTP decoded 188.1 KiB 188.1 KiB 0 B (0.0%) 200.2 KiB ✅
Claude long turn finished, work page rows 150 150 0 (0.0%) 150 ✅
Claude idle thread resume WebSocket decoded 66 B 66 B 0 B (0.0%) 200 B ✅
Claude idle thread resume WebSocket messages 1 1 0 (0.0%) 1 ✅
Claude fleet shell snapshot HTTP decoded 46.1 KiB 46.1 KiB 0 B (0.0%) 53.7 KiB ✅
Claude fleet shell snapshot rows 27 27 0 (0.0%) 27 ✅
Claude fleet shell subscribe WebSocket decoded 66 B 66 B 0 B (0.0%) 200 B ✅
Claude fleet shell subscribe WebSocket messages 1 1 0 (0.0%) 1 ✅
Claude fleet shell resume check HTTP decoded 18 B 18 B 0 B (0.0%) 100 B ✅
Claude fleet shell resume check rows 0 0 0 0 ✅
Claude stale shell reload HTTP decoded 46.1 KiB 46.1 KiB 0 B (0.0%) 53.7 KiB ✅
Claude stale shell reload rows 27 27 0 (0.0%) 27 ✅
Claude stale shell resume WebSocket decoded 140 B 140 B 0 B (0.0%) 400 B ✅
Claude stale shell resume WebSocket messages 2 2 0 (0.0%) 2 ✅
Claude stale todo list cold open HTTP decoded 73.4 KiB 73.4 KiB 0 B (0.0%) 83.0 KiB ✅
Claude stale todo list cold open rows 75 75 0 (0.0%) 75 ✅
Claude stale todo list cold open nodes 2 2 0 (0.0%) 4 ✅
Claude stale todo list cold open subagents 2 2 0 (0.0%) 4 ✅
Claude stale todo list cold open plans 1 1 0 (0.0%) 2 ✅
Claude stale todo list cold open providerTurns 1 1 0 (0.0%) 2 ✅
Claude stale todo list cold open checkpoints 1 1 0 (0.0%) 2 ✅

Baseline: 4494426 · PR result: a671612 · Source CI: success

Scenario and decoded snapshot size

10 historical turns, 5 command tools per turn, 878.9 KiB retained MCP result per historical turn, and a 1.05 MiB retained result in the measured turn.
Bounded compact HTTP snapshot with live cursor.

  • Codex decoded thread snapshot: 88.2 KiB
  • Claude decoded thread snapshot: 88.4 KiB

Updated in place by a trusted workflow. PR artifacts are strictly validated and never executed.

@yaacovcorcos
yaacovcorcos force-pushed the codex/transcription-integration-20261122 branch 2 times, most recently from b3d4e91 to 0f967dd Compare November 23, 2026 09:31
Recordings can be added, recorded or imported into a project, transcribed
in any language, read against the audio, searched, corrected and turned
into notes, and agents can run the same work through their own tools.

- Server: resumable long-form transcription jobs with checkpoints, pause
  and resume, batches, versions, subtitle import and correction passes
  (Off, Quick, Thorough) with review items; Words vocabularies at
  personal, project and recording scope.
- Engines: speech-catalog models on this computer (ivrit.ai Whisper for
  Hebrew), ChatGPT through the user's sign-in, and cloud engines through
  keys in Accounts; recommendations, time and cost estimates.
- Recordings page and recording view: player, transcript that follows
  playback, find, versions, export, Ask about this recording, and Notes
  (summary, study notes, action items) saved as project documents.
- Transcription settings rebuilt on the Voice page's design; dictation
  runs through the shared speech service and the legacy voice runtime is
  retired.
- Agents: a Transcripts skill and transcription tools under their own
  grant. Cloud speech engines are available to agents by default.
- CI installs ffmpeg for the server tests.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@yaacovcorcos
yaacovcorcos force-pushed the codex/transcription-integration-20261122 branch from 0f967dd to a671612 Compare November 23, 2026 09:44

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size:XXL vouch:trusted Author is trusted by repo permissions or the VOUCHED list.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant