Repository navigation
Conversation
…ets (BasedHardware#24191) CompositeTranscriptionSocket.send handed every message to the custom STT primary before deciding what the Omi socket gets. Every primary (polling, streaming, Gemini) accepts audio only, so each capture_evidence_frame, client-state and speaker-assignment JSON frame logged 'Unsupported message type: String' in the Custom STT log, flooding it during live capture. Text frames now go to the Omi socket only; audio routing is unchanged.
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
Verdict: correct, minimal fix for #24191 with genuinely good regression coverage — ready for maintainer merge consideration; no blocking findings. Per file:
Notes:
USER IMPACT: Custom live transcription users no longer get their STT diagnostic log spammed with "Unsupported message type" warnings while recording — transcription itself behaves exactly as before. Nothing further needed from my side; leaving for human maintainer review (merge decision, plus the #23643 overlap). by AI on behalf of David — if you need David’s attention urgently, please @Git-on-my-level and escalate with |
Integrate David Zhang's Custom Live capture fix (f091e05, merged in BasedHardware#25975) and later main. Conflict in CompositeTranscriptionSocket.send and its tests is resolved in favor of main's OMI_CUSTOM_LIVE_CAPTURE_FIX gate so Custom Live flag behavior stays intact. The broader custom-STT rule lands in a follow-up commit on top of that flag.
…ers (BasedHardware#24191) Main's f091e05 (merged in BasedHardware#25975) already keeps Omi control text off the Custom Live primary, behind OMI_CUSTOM_LIVE_CAPTURE_FIX. Every other custom STT primary (polling, streaming, Gemini) is also audio-only, so the same flag now covers them too. Disabling the flag still restores the old send-text-to-primary path for Custom Live and those providers together. No second switch is added. Custom Live evidence pairing and flag-off behavior from main are unchanged.
|
Since my last review: addressed (the branch now merges current main, so the maintainer's OMI_CUSTOM_LIVE_CAPTURE_FIX work from f091e05 is preserved, and the fix was reworked from message-type gating inside send() to a provider-based _routesOmiControls gate - verified on this head) - still open (nothing from the prior review) - newly introduced (none). Verdict: correct and minimal - no blocking findings. The production delta on this head is one widened gate, and the tests genuinely pin the behavior.
Why the widening is safe: every composite primary is an audio-only custom-STT socket (PurePollingSocket.send silently ignores non-Uint8List; streaming primaries warn-and-drop), so no provider loses behavior it ever used, and the Omi secondary path is byte-for-byte main's. No new network or data surfaces; the new test server binds loopback only. USER IMPACT: users on a custom STT provider stop getting their Custom STT log flooded with "Unsupported message type: String" warnings during recording; transcription itself is unchanged. Nothing further needed from me as a reviewer - ready for maintainer merge consideration. by AI on behalf of David — if you need David’s attention urgently, please @Git-on-my-level and escalate with |
What changed and why
Fixes #24191. With Cloud Provider → Custom (Live), the Custom STT log filled with
[customLive] Unsupported message type: String. The same warning also fires for the other custom STT primaries, which are audio-only too.Root cause:
CompositeTranscriptionSocket.sendused to hand every message to the custom STT primary before deciding what to forward to the Omi socket. All custom STT primaries (polling, streaming, and Gemini) acceptUint8List/List<int>and warn and drop anything else. Omi JSON control frames (capture_evidence_frame,_sendClientState,sendText, speaker assignment) therefore reached the custom STT sender and logged a warning each time.What is already on main: David Zhang's f091e05 (merged in #25975) already keeps those text frames off the Custom Live primary, behind
OMI_CUSTOM_LIVE_CAPTURE_FIX(customLiveCaptureFixEnabled, default on). It also pairs evidence with the following audio frame on the Omi socket and honorsforwardRawAudioToSecondary. This PR merges current main so that work stays intact, including the flag-off path that restores sending text to the Custom Live primary.What this PR adds on top of that flag: the same
OMI_CUSTOM_LIVE_CAPTURE_FIXgate now covers the other custom STT providers (custom,geminiLive,deepgramLive,onDeviceWhisper, and any other non-Omi composite primary). They share the same audio-only contract, so a second switch would only create a split kill path. Disabling the existing flag still restores the old send-text-to-primary behavior for Custom Live and those providers together.sendEvidenceAudioFrameis unchanged: evidence never goes to the primary, and the evidence/audio pair still reaches Omi only when raw-audio forwarding is enabled.Product invariants affected
none
How it was verified
Flutter 3.44.5 (the CI pin) on Linux. The app was set up the same way as the bootstrap in
app/test.sh(local Firebase options, emptyAPI_BASE_URL,flutter pub get). Generated envied files were reused because the env sources matched the already-bootstrapped tree.flutter test test/unit/composite_transcription_socket_test.dart: 36 passed.flutter teston the other files that touch the composite,PureStreamingSttSocket, ortranscription_service.dart(17 files acrosstest/services/sockets,test/services/capture,test/providers,test/spine,test/unitandtest/widgets): 268 passed.flutter analyzeon both changed Dart files: no issues.dart format --line-length 120 --output=none --set-exit-if-changed: no changes.scripts/pr-preflight --pr-body-file <this body>: passed (27 checks). Updatesapp/changelog/unreleased/20261114-custom-stt-log-control-frames.json.Not verified: a device run against a real custom STT bridge, and the compile-time flag-off path (
--dart-define=OMI_CUSTOM_LIVE_CAPTURE_FIX=false).Tests
routes Omi controls away from the audio-only {custom,geminiLive,deepgramLive,onDeviceWhisper} primary (#24191): the same control-text rule applies to those providers under the default (flag-on) path.sends audio to a polling custom STT primary and Omi control text only to Omi (#24191): acustomprimary receives onlyUint8ListandList<int>; the Omi socket still receives the evidence text plus the audio.a live custom STT WebSocket for a non-Live provider receives only binary audio (#24191): a realPureStreamingSttSocketwithsttProvider=customagainst a loopbackdart:ioWebSocket server. The server receives only the binary audio, and the Custom STT log has noUnsupported message typeentry.UI evidence
UI-Evidence: none -- socket routing change, no UI
Failure class (fixes)
Failure-Class: none