Repository navigation
fix(listen): bind recordings by client identity - #9349
Merged
Merged
Conversation
|
Preview deployment for your docs. Learn more about Mintlify Previews.
💡 Tip: Enable Workflows to automatically generate PRs for you. |
Git-on-my-level
marked this pull request as ready for review
July 9, 2026 20:07
Git-on-my-level
marked this pull request as draft
July 9, 2026 20:10
Git-on-my-level
marked this pull request as ready for review
July 9, 2026 20:17
Git-on-my-level
added a commit
that referenced
this pull request
Jul 9, 2026
…t formatting Merge conflict left bare 'useLocalSTT' at line 66 (added by #9349 in main). Migrated to 'sttSession.useLocalSTT' per the PR's W6 STTSessionState refactor. Also restored Dart files to origin/main formatting (pre-commit hook had reformatted them during merge).
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
Closes #6952.
A new desktop recording could inherit a stale user-global in-progress conversation. That made a fresh recording’s lifecycle events and finalization path attach to the wrong conversation.
This is the compatibility-preserving first phase of the Oracle prescription:
client_conversation_idas the authoritative recording identity; it never falls back to the user-global in-progress pointer.recording_session_idon listen lifecycle events and suppress non-current callbacks.Why
The old protocol conflated an advisory client ID, a user-global “currently recording” pointer, and a conversation ID. The result was a causal-identity failure: late or stale work could be delivered as though it belonged to the latest desktop recording.
Long-term follow-up
This deliberately does not introduce a broad storage migration. The next architectural step—tracked in #9351—is a server-owned recording-session resource with a stable recording ID, an event envelope (
recording_session_id, conversation ID, sequence/generation), and idempotent finalize semantics. That makes conversation mapping an explicit state machine rather than an inference from global state, timestamps, or WebSocket order.Validation
cd backend && ./.venv/bin/pytest testing/e2e/test_listen_stt.py -q— 9 passedcd desktop/macos && xcrun swift test -c debug --package-path Desktop --filter StopReconciliationTests— 37 passedcd desktop/macos && xcrun swift test -c debug --package-path Desktop --filter TranscriptionFinalizationStateMachineTests— 23 passedcd backend && ./.venv/bin/pytest tests/unit/test_prompt_cache_integration.py -q— 25 passedcd backend && ./.venv/bin/python scripts/scan_async_blockers.py— 0 selected findingscd backend && ./.venv/bin/python scripts/check_module_stub_pollution.py— 0 violationsomi-recording-binding; exercised capture start, transcript injection, and stop through the in-process automation bridge.The broad desktop suite still has an unrelated Firebase initialization crash in
LiveNotesMonitorTests. The backend aggregate suite also hit unrelated CPU-duration gates under concurrent load; the affected prompt-cache file passes in isolation.