Open
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
This PR extends the app’s real-time messaging/transcription flow to support idempotency and multi-user project-wide updates by adding a transcription_id to transcript chunks and broadcasting certain events to all active sessions within a project.
Changes:
- Add
transcription_idto transcript chunks across backend + frontend message schemas and update catchup/transcription handlers to dedupe/order by that id. - Broadcast project-wide events (transcriptions, AI results, and dismissals) to all active sessions in a project.
- UI adjustments to transcript/insights panels to improve scrolling/layout.
Reviewed changes
Copilot reviewed 10 out of 10 changed files in this pull request and generated 5 comments.
Show a summary per file
| File | Description |
|---|---|
| frontend/src/lib/message.ts | Adds transcription_id to transcript chunk typing. |
| frontend/src/components/AudioSender.tsx | Dedupes and orders transcript chunks by transcription_id; UI layout/scrolling improvements; handles dismissal broadcast updates. |
| frontend/src/App.tsx | Removes container horizontal padding to better fit full-width layout. |
| backend/src/main.py | Includes transcription_id in catchup payload; broadcasts dismissals; simplifies teardown/logging behavior. |
| backend/src/interview_helper/context_manager/tests/test_concurrent_websocket.py | Updates test data to include required transcription_id. |
| backend/src/interview_helper/context_manager/session_context_manager.py | Introduces broadcast_to_project and uses it for AI-result fanout. |
| backend/src/interview_helper/context_manager/messages.py | Makes transcription_id required in TranscriptChunkToSend. |
| backend/src/interview_helper/audio_stream_handler/transcription/common.py | Broadcasts transcription messages to project; includes transcription_id. |
| backend/src/interview_helper/audio_stream_handler/transcription/vosk_transcriber.py | Updates accept_transcript calls after signature change (no ws arg). |
| backend/src/interview_helper/audio_stream_handler/transcription/azure_transcriber.py | Updates accept_transcript calls after signature change (no ws arg). |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
backend/src/interview_helper/audio_stream_handler/transcription/common.py
Show resolved
Hide resolved
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
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.
No description provided.