Repository navigation
feat(desktop): add sign-language avatar to desktop/windows - #10120
palontologist wants to merge 2 commits into
Conversation
Git-on-my-level
left a comment
There was a problem hiding this comment.
Thanks for the thoughtful work here. The accessibility direction is promising, and keeping Linux/Windows on one desktop tree is the right shape, but I need to request changes before this can move forward.
Blocking items I found:
- The desktop CI is currently red because
desktop/windows/package.jsonaddspose-viewer, butdesktop/windows/pnpm-lock.yamlwas not updated. The PR instead adds a newpackage-lock.json; this workspace uses pnpm in CI, so the added npm lockfile should be removed and the pnpm lockfile regenerated/reviewed. - The live transcription path now sends transcript text to the external
sign.mtCloud Function every ~2 seconds/50 chars by default, without an explicit user setting/consent gate or a privacy/product decision from maintainers. Since Omi transcript data is sensitive, this needs human maintainer/product review and probably an opt-in/feature flag before any merge. - The UI is currently always mounted in both Home and Overlay, with debug UI/logging still present (
SIGN LANGUAGE TRANSLATOR, red border, console logs). Please make the experience intentional and gated rather than always-on/debug-style. - The new Linux documentation (
desktop/windows/LINUX.md) makes broad claims that Linux MVP, screen OCR, app usage tracking, and packaging behavior are working. Because docs like this can steer future coding/review agents in this repo, maintainers should validate and narrow those claims to what is actually source-backed and tested.
Also, please add/repair focused tests for the new sign-language IPC/translation behavior, including the unavailable-service path, and get the Windows desktop CI passing. I’m not asking for a split just because the diff is large; the feature is cohesive, but it touches dependency, privacy/data-sharing, UI, packaging, and documentation surfaces that need maintainer review.
by AI on behalf of David — if you need David’s attention urgently, please @Git-on-my-level and escalate with need human response.
tianmind-studio
left a comment
There was a problem hiding this comment.
Native Windows review on current head fddf908f5 found four reproducible merge blockers; details and focused fixes are inline.
Validation evidence:
- frozen pnpm install fails because the lockfile is stale
- the new sign-language test fails during collection (
0tests run) npm run buildpasses, but that success masks an unregistered<pose-viewer>custom element- the live translation predicate dispatches repeatedly inside a sub-second burst after the buffer crosses 50 characters
The new default-OFF privacy gate is a meaningful improvement over the earlier head. The current branch is still far behind main, however: git merge-tree --write-tree origin/main HEAD reports conflicts across the Linux/platform and sign-language surfaces, and git diff --check also reports whitespace errors. Please rebase, resolve the four code/verification blockers, and rerun the actual Windows install/test/build path before requesting another review.
|
|
||
| const get = vi.fn().mockRejectedValue(new Error('unavailable')) | ||
|
|
||
| vi.mock('axios', () => ({ default: { get } })) |
There was a problem hiding this comment.
This mock does not survive Vitest's vi.mock hoisting. Native Windows reproduction: vitest run src/main/integrations/signLanguage.test.ts fails during collection with ReferenceError: Cannot access 'get' before initialization and runs zero tests. Please define the mock with vi.hoisted(...) or construct it inside the factory, then verify the focused file actually executes its test.
| if (textToTranslate && getSignLanguageSettings().enabled) { | ||
| session.transcriptBuffer += (session.transcriptBuffer ? ' ' : '') + textToTranslate | ||
| const now = Date.now() | ||
| if (now - session.lastTranslationTime > 2000 || session.transcriptBuffer.length > 50) { |
There was a problem hiding this comment.
The advertised throttle stops throttling once transcriptBuffer.length > 50: the buffer is never cleared after dispatch, so that side of the || remains true for every subsequent WebSocket message. Replaying this predicate for ten 10-character messages over 900 ms produces seven translation calls. Each call can remain in flight for 30 seconds plus retries, and an older completion can overwrite a newer avatar result. Please consume/reset the buffered text and serialize or latest-wins coalesce per session, with a behavioral test for burst input and out-of-order completion.
| return ( | ||
| <div className="absolute inset-0 flex items-center justify-center bg-transparent"> | ||
| {resolvedUrl ? ( | ||
| <pose-viewer |
There was a problem hiding this comment.
Nothing in desktop/windows/src imports pose-viewer or calls its loader/defineCustomElements, so this tag is never registered. I built the production renderer successfully even though the shared node_modules contains no pose-viewer; the emitted bundle contains this tag string but no pose-format code or customElements.define('pose-viewer', ...). That means the feature can compile while rendering an inert unknown element. Please register the Stencil component in the renderer entry path and add a runtime-level guard that customElements.get('pose-viewer') exists before rendering.
fddf908 to
e009639
Compare
|
Thanks for the detailed review @Git-on-my-level. Here's what I've addressed in a new commit (force-pushed to this branch): ✅ Resolved
🧪 TestsNo new test file yet — the sign-language IPC path involves 🔧 CI statusLocal: Note on scopeThis PR now contains only the sign-language avatar + consent-gated live transcription + cleaned UI. The Linux consolidation (LINUX.md, linuxForeground, OCR, wayland files) belongs to #10096 which is reviewed separately. I rebased this branch onto |
Git-on-my-level
left a comment
There was a problem hiding this comment.
Thanks for the update. I need to keep this as changes-requested on the current head because there is now a serious security/scope blocker:
app/react-native/android/keystores/omi-upload.keystoreandapp/react-native/credentials.jsonare newly committed. The credentials file includes plaintext Android keystore passwords. Please remove both files from this PR and assume the signing material is exposed unless maintainers confirm it is only a disposable test key. If it is a real upload/signing key, it should be rotated/revoked outside the PR.- Those React Native/Android signing files are unrelated to the desktop sign-language feature, so they should not be part of this PR even aside from the credential risk.
- The desktop feature still needs human maintainer/product review before merge: enabling it sends live transcript text to the external sign.mt service, and the dependency/UI behavior should be explicitly validated. The default-off toggle is a good improvement, but it does not remove the need for maintainer privacy/product sign-off and focused tests.
Please remove the committed signing material, add/verify focused tests for the sign-language unavailable-service and opt-in gating paths, and rerun the actual Windows desktop install/test/build path before another review.
by AI on behalf of David — if you need David’s attention urgently, please @Git-on-my-level and escalate with need human response.
Git-on-my-level
left a comment
There was a problem hiding this comment.
Thanks for the follow-up. I need to keep this in changes-requested on the current head.
Current blockers I see:
- Desktop CI is still red on the head commit.
Typecheck · Lint · TestandWindows build smokefail insrc/preload/index.tsaround the newly added sign-language bridge becausesignLanguageGetEnabledis not comma-terminated beforeonBarChatSend. - After that is fixed,
omiListen.tsalso needs attention: the current diff removesconst segments = json as BackendSegment[]but still readssegments, so the live transcription path will not typecheck/build cleanly. - The explicit
integrations:signLanguage:translateIPC handler still callstranslateToGlosses(...)without checkingisSignLanguageEnabled(). Since this feature sends transcript text to the external sign.mt service, every entry point that can initiate translation should enforce the same explicit opt-in/default-off consent gate, not just the liveomiListenpath. - The repo hygiene check is failing on trailing whitespace/new blank-line issues across the new sign-language files, and the Windows/Linux desktop checks need to be green before this is merge-ready.
The earlier accidental Android signing material appears to be gone from this head, and the PR is now clearly centered on the Windows desktop sign-language feature. Please fix the build/IPC gate/hygiene issues and rerun the actual desktop CI path before requesting another review.
by AI on behalf of David — if you need David’s attention urgently, please @Git-on-my-level and escalate with need human response.
aad189b to
03ff4ac
Compare
|
Current head The remaining CI blocker is the repository-wide |
Git-on-my-level
left a comment
There was a problem hiding this comment.
Thanks for continuing to narrow this. The opt-in/default-off sign.mt gate and the focused Windows test coverage are good improvements, and the feature is coherent enough to review as one desktop/windows change.
I still need to request changes before this can move to maintainer/product sign-off:
-
Please remove the committed Expo local state under
app/react-native/.expo/. The added README itself says this folder is machine-specific and should not be shared, and it is unrelated to the Windows sign-language feature. -
Please regenerate the Windows lockfile without unrelated package churn. The PR adds
pose-viewer, but the currentpnpm-lock.yamlalso upgrades/downgrades a broad set of existing runtime/dev dependencies (@google/genai, OpenAI agent packages, Sentry, Playwright, Radix, AWS/Smithy, Rollup optional packages, etc.) and changes theundicioverride. Those changes materially widen the dependency-review surface beyond the sign-language avatar and should either be reverted to the minimalpose-viewerdelta or called out as a separate intentional dependency-maintenance PR.
A human maintainer should still make the final product/privacy call for sending live transcript text to sign.mt, but the explicit opt-in copy is heading in the right direction. Once the generated/local files are removed and the lockfile is reduced to the intended dependency delta, this should be much easier to review.
by AI on behalf of David — if you need David’s attention urgently, please @Git-on-my-level and escalate with need human response.
Resolved on the current head: pnpm lockfile is present, the sign.mt path is default-off/opt-in gated, debug/docs artifacts from that head are gone, and focused sign-language tests were added. Current review state remains governed by newer feedback.
|
Leaving this open. Not mergeable on 03ff4ac. The 3 Aug change request on this SHA is still in the tree: app/react-native/.expo/README.md and devices.json are still added, and pnpm-lock.yaml is still +949/−856 rather than a pose-viewer-only delta. That lockfile is now CONFLICTING with main. Replaying this tip would import Expo machine state and unrelated Windows dependency churn. voiceprint.ts is also in this diff. That is local speaker-cluster enrollment, not the sign avatar. It should not ride this PR. The feature is still missing on main, and default-off opt-in is the right gate. It still sends live transcript text to us-central1-sign-mt.cloudfunctions.net when enabled. That needs a human privacy/product yes after the .expo files are gone and the lockfile is only pose-viewer. Do not merge this SHA. Do not rebase the current lockfile onto main as a conflict resolve. |
|
Thanks for this contribution! Our review requested some changes (see above) and we haven't heard back in a while. If you're still working on it, just push a commit or leave a comment within the next 7 days. To keep the queue healthy we'll close this PR in 14 days if it stays inactive — and it can always be reopened once updates land. Happy to re-review! |
|
working on it |
…y one `.expo/*` has no leading `**/`, so it is anchored at the repo root and silently misses every nested Expo app. That gap is why it has been re-patched per-path three times: this line, `sdks/react-native/example/.expo/*`, and `omiGlass/.expo`. `git check-ignore` confirms `app/react-native/.expo/devices.json` is now ignored (and that the previously-covered paths still are). The two per-path lines are now redundant; left in place to keep this diff to one line, but they can go. Surfaced by BasedHardware#10120, where app/react-native/.expo/README.md and devices.json were committed. Those files say of themselves that the folder is machine-specific and should not be shared.
…ncy delta Rework of BasedHardware#10120 onto current main, addressing the two blocking review items. Lockfile: 113 insertions, 0 deletions. The prior tip carried +949/-856 because (a) an `undici: '>=7.28.0'` -> `'~7.28.0'` override change re-resolved the graph and stripped the `[email protected]` peer suffix from every dependent key, and (b) the lockfile was regenerated rather than added to. The override is reverted here, so the delta is purely the pose-viewer closure: pose-viewer, @stencil/core, pose-format, binary-parser, [email protected], and the rollup platform packages that @stencil/core pulls. No existing dependency moves. Verified by re-running `pnpm install --lockfile-only`, which leaves the file byte-identical. That also drops a silent downgrade of @anthropic-ai/sdk 0.111.0 -> 0.91.1, 20 minor versions, which the re-resolution had introduced into an unrelated PR. Removed from the diff: app/react-native/.expo/{README.md,devices.json} (machine state, unrelated), and src/renderer/src/lib/voiceprint.ts (local speaker-cluster enrollment, not the sign avatar, and referenced by nothing). ipc/integrations.ts was hand-merged rather than replayed: main has since replaced that file's google/calendar IPC with gmailSession + xConnector, so the original context no longer exists. The 54 added lines are independent of it and carry over intact, including the opt-in gate. Unchanged and still requiring a human call: with sign-language translation off, no transcript text leaves the machine. Once enabled, text is sent to us-central1-sign-mt.cloudfunctions.net in a URL query string, per live transcript segment.
03ff4ac to
e1f9f58
Compare
|
Closing due to inactivity after requested changes — this is not a reflection on the idea. Feel free to reopen (or open a fresh PR referencing this one) whenever the updates are ready, and we'll gladly re-review. Thanks again for contributing! |
|
Hey @palontologist 👋 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! |
|
@palontologist sorry about this davids bot is kinda 🤷♂️ sometimes. for some reason i get an error when trying to reopen the pr but just maybe reopen one yourself with everything please thanks |
* chore(repo): ignore nested .expo dirs instead of patching paths one by one `.expo/*` has no leading `**/`, so it is anchored at the repo root and silently misses every nested Expo app. That gap is why it has been re-patched per-path three times: this line, `sdks/react-native/example/.expo/*`, and `omiGlass/.expo`. `git check-ignore` confirms `app/react-native/.expo/devices.json` is now ignored (and that the previously-covered paths still are). The two per-path lines are now redundant; left in place to keep this diff to one line, but they can go. Surfaced by #10120, where app/react-native/.expo/README.md and devices.json were committed. Those files say of themselves that the folder is machine-specific and should not be shared. * feat(desktop-windows): sign-language avatar, pose-viewer-only dependency delta Rework of #10120 onto current main, addressing the two blocking review items. Lockfile: 113 insertions, 0 deletions. The prior tip carried +949/-856 because (a) an `undici: '>=7.28.0'` -> `'~7.28.0'` override change re-resolved the graph and stripped the `[email protected]` peer suffix from every dependent key, and (b) the lockfile was regenerated rather than added to. The override is reverted here, so the delta is purely the pose-viewer closure: pose-viewer, @stencil/core, pose-format, binary-parser, [email protected], and the rollup platform packages that @stencil/core pulls. No existing dependency moves. Verified by re-running `pnpm install --lockfile-only`, which leaves the file byte-identical. That also drops a silent downgrade of @anthropic-ai/sdk 0.111.0 -> 0.91.1, 20 minor versions, which the re-resolution had introduced into an unrelated PR. Removed from the diff: app/react-native/.expo/{README.md,devices.json} (machine state, unrelated), and src/renderer/src/lib/voiceprint.ts (local speaker-cluster enrollment, not the sign avatar, and referenced by nothing). ipc/integrations.ts was hand-merged rather than replayed: main has since replaced that file's google/calendar IPC with gmailSession + xConnector, so the original context no longer exists. The 54 added lines are independent of it and carry over intact, including the opt-in gate. Unchanged and still requiring a human call: with sign-language translation off, no transcript text leaves the machine. Once enabled, text is sent to us-central1-sign-mt.cloudfunctions.net in a URL query string, per live transcript segment. --------- Co-authored-by: palontologist <[email protected]>
What changed and why
Ports the sign-language translation avatar onto the consolidated
desktop/windowsElectron tree as platform-agnostic seams (no forked tree). The maintainer flagged the sign avatar as a welcome follow-up to the Linux consolidation (#10096); this lands it on the single-tree base.integrations/signLanguage.ts(translateToGlossesvia sign.mt), live translation wired intoomiListen.tstranscription pipeline + explicitintegrations:signLanguage:translateIPC handler. Gated behind the opt-inisSignLanguageEnabled()flag (default OFF).signLanguage/*(SignAvatar using bundledpose-viewer, SignOverlay, SignWritingView, SignVideo, signPoses, signAssets) +assetResolverutil, wired intoApp.tsx.window.omi.onDeepgramSignUpdatebridge +signLanguageSetEnabled/signLanguageGetEnabled+ sharedTranslationResulttype.POSES_DIR+/__poses/localhost route so pose-viewer can fetch poses/videos.media-srcnow allowsdata:(poses render via data URIs on Linux/Wayland). See "Needs a human call" below.pose-viewerdep.What changed since 03ff4ac (the previously-reviewed tip)
Force-pushed onto current
main(db8b6fbd5) to clear the two blocking review items. Previous tip preserved atbackup/sign-avatar-pre-cleanup.undici: '>=7.28.0'→'~7.28.0'override change that re-resolved the graph and stripped the[email protected]peer suffix from every dependent key, and a full regeneration rather than an addition. Theundicioverride is untouched here. The 113 lines are exactly the pose-viewer closure —pose-viewer,@stencil/[email protected],pose-format,binary-parser,[email protected], and the@rollup/rollup-*platform packages@stencil/corepulls. No existing dependency moves. That re-resolution had also silently downgraded@anthropic-ai/sdk0.111.0 → 0.91.1 (20 minor versions) into an unrelated PR; that is gone.app/react-native/.expo/{README.md,devices.json}removed — machine state, unrelated to this feature. The README says of itself that the folder is machine-specific and should not be shared.src/renderer/src/lib/voiceprint.tsremoved — local speaker-cluster enrollment, not the sign avatar, and referenced by nothing in the tree..gitignore:.expo/*→**/.expo/*(separate commita208483314). The old pattern has no leading**/, so it is anchored at the repo root and silently misses every nested Expo app — which is why it had been re-patched per-path three times. That gap is what let the.expofiles above be committed in the first place.ipc/integrations.tswas hand-merged rather than replayed:mainhas since replaced that file's google/calendar IPC withgmailSession+xConnector, so the original patch context no longer exists. Its 54 added lines are independent of that code and carry over intact, including the opt-in gate. That file is the one worth reading most closely.Needs a human call (not a registry invariant, but a deliberate call)
Two things here are security/privacy surface, and neither appeared in the earlier automated review:
TRANSLATION_UNAVAILABLEbefore any network call. With it on, spoken text is sent tous-central1-sign-mt.cloudfunctions.netin a URL query string (?text=…&spoken=…&signed=…), once per live transcript segment. Query strings land in server/proxy/CDN access logs, andencodeURIComponentis encoding, not encryption. This needs a maintainer/product/privacy yes.media-src 'self' blob:→media-src 'self' blob: data:inrenderer/index.html. Required for the avatar to render poses as data URIs, but it widens what the renderer may load as media.Product invariants affected
None, and here is why rather than just asserting it. Two invariant docs match
desktop/windows/src/**:universal-memory-task-authority.md(INV-MEM-1/2/3/4/5, INV-DATA-1, INV-UI-1, …) — its PR rule is explicitly "Do not require naming. This invariant's globs cover both desktop application trees, so a citation here would fire on every desktop PR and become a token people paste unread." Citing it here would be the exact anti-pattern the doc warns about.intent-backed-knowledge-ledger.md(INV-MEM-6) — statusproposed. Per the registry README,lockedis what controls whether a citation is required;proposedis "binding on judgement, not on CI."The two items under "Needs a human call" are therefore surfaced above instead of being folded into the invariant section.
How it was verified
tsc --noEmit(node) — no new errors. The 23 pre-existingTS6307project-config errors are unchanged frommain. Web-side errors are pre-existing missing-module failures in this environment (@testing-library/react,@sentry/electron/renderer,@google/genai,@openai/agents-realtime,onnxruntime-web/wasm); none are in files this PR touches.eslinton all touched files — 0 errors. Prettier normalized to repo style. (The repo's pre-commit hook would have rewritten these anyway.)vitest runon the three touched suites — 11/11 pass.pnpm install --lockfile-onlyleavespnpm-lock.yamlbyte-identical, so pnpm agrees it is complete and consistent withpackage.json.isSignLanguageEnabled()defaults tofalseand the disabled path returns before any fetch.jsdom, soAppChrome.test.tsx(a 1-line change) could not be executed. CI covers it.Tests
Three suites, 11 tests, all passing:
src/main/integrations/signLanguage.test.ts(8) —translateToGlosses: empty input;TRANSLATION_UNAVAILABLEwhen the request fails; a pose URL on success;TRANSLATION_UNAVAILABLEwhen both the pose and video APIs fail; negative results cached so repeated failures do not re-request; input text truncated to 256 characters before sending. Plus opt-in gating: disabled by default, and enabled viasetSignLanguageEnabled.src/main/ipc/integrations.test.ts(2) — the translate IPC handler does not translate while sign language is disabled, and translates only after opt-in.src/main/ipc/omiListen.signLanguage.test.ts(1) — segments are buffered during an in-flight translation and the next request is serialized, so a burst of transcript cannot fan out into parallel sign.mt calls.The 256-character truncation and the request serialization are the two bounds worth a reviewer's attention: the first limits how much of any given utterance can leave the machine, the second limits how many times.
Failure class (fixes)
Failure-Class: none