Repository navigation
Fix cross-platform This device memory filtering - #9364
Conversation
Keep legacy rows visible after unsupported device scope, preserve the existing production device identity when migrating to scoped Keychain storage, and stamp desktop manual and streamed capture provenance for canonical memory filtering. Verification: 62 focused backend tests passed; 24 focused desktop tests passed; backend import-side-effect, async-blocker, module-stub, and fallback instrumentation checks passed. Named bundle built and installed, but local UI launch remains blocked by a Sparkle dyld code-signature error after the prescribed ad-hoc re-sign.
|
@codex review |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: e136ff5032
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| localStorage.setItem(WEB_DEVICE_ID_KEY, deviceId); | ||
| } | ||
|
|
||
| const digest = await crypto.subtle.digest( |
There was a problem hiding this comment.
Preserve existing web FCM device keys during rehash
For browsers that already have omi-web-device-id, this now derives a SHA-256 prefix instead of the integer hash that registerFCMToken previously used for the users/{uid}/fcm_tokens/web_<hash> document. save_token only removes unknown_default, and get_all_tokens later streams every fcm_tokens document, so the same web FCM token will remain under the old key and be registered again under the new key, causing duplicate notification sends until those stale docs are cleaned up. Please migrate/delete the old web key by token or keep the FCM device key stable while adding the provenance hash.
Useful? React with 👍 / 👎.
|
Preview deployment for your docs. Learn more about Mintlify Previews.
💡 Tip: Enable Workflows to automatically generate PRs for you. |
…covers) Conflicts resolved across 3 files: - backend/routers/sync.py: combined client_device import with pipeline imports; kept HEAD (pipeline-extracted) versions of inline functions; device params already threaded by main's #9364 endpoint changes - backend/utils/sync/pipeline.py: added client_device_id/client_platform params to process_segment and _run_full_pipeline_background_async; pass through to CreateConversation (main's #9364 device provenance) - backend/tests/unit/test_sync_v2.py: kept both log_sanitizer and client_device mock stubs from both sides - desktop/macos/e2e/flows/capture-lifecycle.yaml: kept both STTSessionState and TranscriptionService cover paths
Main's #9364 added X-App-Platform/X-Device-Id-Hash Header() params to the v2 sync endpoint, but the merge resolution dropped the Header import from fastapi.
Summary
/v4/listenand browser/v4/web/listenprovenance transport.Root cause
The original implementation treated the device filter as a desktop read-path concern while several write paths either omitted device identity or discarded it before canonical extraction. Legacy filtering also rejected the scoped query before desktop could apply its compatibility fallback.
Product invariants affected
Validation
cd backend && bash test.sh— passed all 495 backend unit-test files.bash backend/testing/e2e/run.sh -q --tb=short— passed the hermetic backend e2e harness.python3 desktop/macos/scripts/check-e2e-flow-coverage.py --strict --base origin/main— passed.cd desktop/macos && OMI_SWIFT_TEST_SUITE_WORKERS=4 ./scripts/swift-test-suites.sh— passed.cd desktop/windows && pnpm run typecheck && pnpm run lint && pnpm test— passed (550 tests, 3 skipped).cd web/app && npm run buildwith CI dummy Firebase env — passed.Manual verification