H-6763: Add the voice interview experience - #9380
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
1 Skipped Deployment
|
|
|
8014db4 to
f7f2f10
Compare
Co-authored-by: Cursor <cursoragent@cursor.com>
Treat OpenAI transcript deltas as display-only so capture continues until server VAD commits the answer. Update regression coverage and user-facing documentation for the corrected behavior. Co-authored-by: Cursor <cursoragent@cursor.com>
Document natural-pause endpointing and distinguish it from pausing capture. Consolidate the partial-transcript regression coverage and remove the duplicate implementation note. Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
Define the circular microphone, waveform, icon controls, transcript states, and recovery treatment for the simplified interview surface. Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
Failed and in-flight answer deliveries previously reached the transcript strip as a green Sent status, because the view inferred success from the presence of committed text. Record the delivery outcome on the snapshot and render Sending and Not sent for the non-success cases. Co-authored-by: Cursor <cursoragent@cursor.com>
Recoverable errors cover chat delivery, synthesis, timeouts, and aborted requests, so the recovery heading now follows the error family instead of always blaming the microphone. Put the keyboard fallback first in the full stage actions, de-duplicate covered coverage labels, keep interview coverage in the same low-emphasis details row as technical details, and replace the presentation and focal-icon ternary chains with selectors. Co-authored-by: Cursor <cursoragent@cursor.com>
The realtime session emitted an unquantized RMS value on every animation frame, and the interview stage rescanned conversation messages for coverage on every one of those renders. Quantize the level to the resolution the waveform can show, skip unchanged samples, and memoize the coverage scan on the messages it reads. Co-authored-by: Cursor <cursoragent@cursor.com>
ADR-0009 and its summaries still described a generic composer seam only and a microphone that closes whenever Brunch handles a turn, which the interview stage and one-answer buffering contradict. Record the shipped seams, note that the composer control remains supported, describe the new transcript and recovery wording in the user guide, and move the shared sweep output schema out of the local-storage demo folder. Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes and found 1 potential issue.
There are 2 total unresolved issues (including 1 from previous review).
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit 1fc5e65. Configure here.
Co-authored-by: Cursor <cursoragent@cursor.com>

🌟 What is the purpose of this PR?
This PR turns the H-6763 composer microphone into a persistent, half-duplex interview experience. Domain experts can hear canonical Brunch questions, answer by voice, review finalized transcripts, correct an answer, pause or interrupt playback, fall back to typing, and end the interview without losing the surrounding conversation.
It is stacked on #9378 and keeps provider-specific OpenAI transport, transcription, and synthesis in the Petrinaut website host while exposing a provider-neutral interview stage through Petrinaut. The remaining upstream ask-emission contract and credentialed end-to-end witness are called out below rather than hidden behind the UI.
🔗 Related links
🚫 Blocked by
brunch_askbefore background sweep/settlement. The controller consumes an emitted ask immediately, but current upstream ordering can still delay emission; the UI deliberately does not claim answer readiness before a canonical ask exists.🔍 What does this change?
@apps/petrinaut-website.brunch_asktext before settlement completes, and records finalized-answer → question-visible/spoken/answer-ready latency.Pre-Merge Checklist 🚀
🚢 Has this modified a publishable library?
This PR:
📜 Does this require a change to the docs?
The changes in this PR:
🕸️ Does this require a change to the Turbo Graph?
The changes in this PR:
🐾 Next steps
🛡 What tests cover this?
yarn workspace @apps/petrinaut-website test:unit— 18 files and 130 tests covering the realtime session, turn controller, speech playback, responsive interview controls, diagnostics, and mocked integration boundary.yarn workspace @hashintel/petrinaut test:unit— 28 files and 220 tests covering the host API, conversation lifecycle, answer queue, Clear Chat protection, and panel integration.❓ How to test this?
📹 Demo
https://www.loom.com/share/4592af568cf144cd9f58c0b579da6492