Fix transcript speaker assignment#5447
Merged
Merged
Conversation
Let transcript speakers be assigned from session participants, contacts, or new contacts, and render saved assignments with order-independent speaker hints.
✅ Deploy Preview for old-char canceled.
|
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
Tests
Fixes #4860
Fixes #4960
Note
Medium Risk
Changes local-store writes for humans/session participants and transcript hint normalization, which affects how speakers render but stays within desktop STT UI—not auth or billing.
Overview
Transcript speaker assignment is reworked so the segment header popover is a searchable picker instead of a session-participants-only list that could show nothing useful.
Users can pick session participants or contacts, filter by name/email, and add a new contact from the search string. Selecting someone links them to the session (
mapping_session_participant, manual) when needed, then saves the speaker assignment. Assignments anchor on the first word in the segment that has an id, not blindlywords[0].Rendering applies
provider_speaker_indexhints on words before building user assignment scopes, so assignment channel/speaker scope stays correct even when hints are stored in the wrong order.Segment headers use a
divinstead ofpso the assign control is not a button inside a paragraph.Unit tests cover grouping, create-option deduping, anchor word id, and hint ordering.
Reviewed by Cursor Bugbot for commit 84c4567. Bugbot is set up for automated code reviews on this repo. Configure here.