fix: OS-aware startup workflow and cross-browser audio recording#7
Merged
Conversation
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.
Summary
The run-project.md agent workflow was restructured from a loosely ordered single-platform guide into an 8-step OS-aware sequence: OS and terminal detection now runs first, followed by per-platform prerequisite checks for Python, Node.js, pnpm, ffmpeg, and Homebrew (macOS only), before any project-level setup is attempted. The MediaRecorder initialization in InterviewClient.tsx was fixed to use
MediaRecorder.isTypeSupported()with a fallback chain instead of hardcodingaudio/webm, which caused Groq Whisper to receive a mismatched or undecodable audio file on Safari and Firefox, resulting in hallucinated "Thank you" transcription output.Issues fixed
audio/webmunsupported on Safari; mislabeled blob caused Whisper format mismatchFile-by-file changes
Documentation
docs/agent-workflows/run-project.md: Rewrote the workflow as an 8-step OS-aware sequence — Step 1 detects the OS viauname -sand asks the user if the result is unrecognized; Steps 2–3 check and fix OS-level prerequisites (Python, Node.js, pnpm, ffmpeg, Homebrew on macOS) before touching the venv; Steps 4–5 handle project-level state; Steps 6–8 start backend and frontend and report URLs; every step now provides platform-specific commands for Windows PowerShell, Windows Git Bash, macOS, and Linux separately.Frontend
frontend/app/InterviewClient.tsx: Replaced the hardcoded{ mimeType: "audio/webm" }MediaRecorder option with aisTypeSupported()fallback chain that selectsaudio/webm;codecs=opus,audio/webm,audio/mp4, or the browser default in that order; the detected mimeType is passed to both the MediaRecorder constructor and the final Blob so the uploaded filename extension matches the actual container format Groq Whisper receives.