Repository navigation
Conversation
left a comment
•
There was a problem hiding this comment.
All reported issues were addressed across 9 files
Reply with feedback, questions, or to request a fix.
View guided diff | Re-trigger cubic
left a comment
There was a problem hiding this comment.
Verdict: the app-side implementation is well built, but it needs a backend counterpart before it can work — as submitted, every split attempt will fail and roll back with a generic error.
Blocking issue
app/lib/backend/http/api/conversations.dart—splitConversationSegmentsendsPATCH v1/conversations/{id}/segments/split, but no such route exists inbackend/routers/conversations.pyon current main (it has/segments/text,/segments/{segment_idx}/assign,/segments/assign-bulk), and this PR adds no backend code. With no server route the call returns non-200,splitEditingSegmentinconversation_detail_provider.dartrolls the optimistic update back, and the user sees a generic failure. The PR description mentions a fallback toupdateConversationSegmentTextwhen the split route is unavailable — I couldn't find that fallback in the diff, and a text edit can't persist a second segment anyway. Please pair this with a backend PR implementing the split route and link it here (or agree the API shape with a maintainer first).
What's in good shape
transcript_segment.dartsplitAtOffset: clean validation (empty side, mid-word boundary via a unicode word-char regex, 0.2s minimum duration), proportional timestamp interpolation clamped to 5–95%, and metadata (personId,speakerLabelSource,speakerIdScope) carried into both halves.conversation_detail_provider.dartsplitEditingSegment: optimistic update with a real rollback path (restores the original segment, resets the recording transcript, surfaces a failure notice).conversation_recording_speakers.dart,transcript.dart,transcript_tab.dart: both halves render as independent turns, and naming a speaker on a split turn is scoped to that single segment instead of the whole recording voice — the right behavior.edit_segment_sheet.dart: localized inline error per failure mode, save/discard guarded while a split is in flight.transcript_segment_split_test.dart: strong coverage (unit split behavior, error surfacing, end-to-end split plus independent speaker reassignment, rollback). No CI run is visible on this PR yet, so I haven't seen these execute.
Smaller notes
- UX: the word-boundary check rejects any cursor position where both neighbouring characters are letters/digits, so transcripts in scripts without spaces (Chinese, Japanese) can never be split — worth handling or messaging explicitly.
- Splitting drops existing translations on both halves (
translations: const []). conversations.dartalso reformatsupdateConversationTitleandTranscriptsResponse.fromJson— unrelated churn, fine but noisy.
USER IMPACT: once a backend split endpoint exists, users will be able to split a mis-attributed transcript line in two and label each speaker separately; today the button would always end in an error.
Action items: (1) backend split route + link to its PR, (2) CI green on the new widget test, (3) a decision on no-space scripts.
Leaving for human maintainer review — the split API shape and backend rollout are an architecture/product decision, not just an app-side fix.
by AI on behalf of David — if you need David’s attention urgently, please @Git-on-my-level and escalate with need human response.
commented
Nov 9, 2026
|
Hey @cocvn157 👋 Thank you so much for taking the time to contribute to Omi! We truly appreciate you putting in the effort to submit this pull request. After careful review, we've decided not to merge this particular PR. Please don't take this personally — we genuinely try to merge as many contributions as possible, but sometimes we have to make tough calls based on:
Before your next PR, please skim:
If this was declined for direction or taste, maintainers should cite an invariant ID or open a proposed one — ask if that citation is missing. Your contribution is still valuable to us, and we'd love to see you contribute again in the future! If you'd like feedback on how to improve this PR or want to discuss alternative approaches, please don't hesitate to reach out. Thank you for being part of the Omi community! |
Allow the owner of a saved conversation to split a mixed-speaker transcript segment at a chosen word boundary into two separate turns so each half can be assigned to its actual speaker.
Changes
eplaceRecordingSegmentWithSplit, isSplitTurnSegment, and splitEditingSegment with optimistic state update and full rollback on failure.
Product invariants affected
UI-Evidence: none -- adds a secondary Split at cursor text action inside the existing EditSegmentSheet modal and reuses the existing saved transcript turn header and speaker assignment sheet.
Fixes #24760