H-6763: Add the voice interview experience - #9380
Merged
Merged
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
kostandinang
force-pushed
the
kostandin/h-6763-voice-interview-ux
branch
from
August 27, 2026 14:59
8014db4 to
f7f2f10
Compare
This was referenced Aug 27, 2026
Co-authored-by: Cursor <cursoragent@cursor.com>
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>
Co-authored-by: Cursor <cursoragent@cursor.com>
Keep answered questions from replaying after reconnect and clear correction drafts when an interview ends or advances. 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>
lunelson
previously approved these changes
Sep 1, 2026
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes and found 1 potential issue.
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit 7a716d2. Configure here.
`submitCorrection` latched `#questionAnswered` before the interview accepted the text, so a rejected correction left the ask marked as settled. `reconnect` then skipped re-queueing it and the stage came back without a current question. Leave the latch to `#deliver`, which already sets it only once delivery succeeds, matching the spoken-answer path.
lunelson
approved these changes
Sep 2, 2026
This was referenced Sep 2, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

🌟 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