Skip to content

feat(desktop): add Linux port of the Omi desktop app (desktop/linux) - #9963

Closed
palontologist wants to merge 1 commit into
BasedHardware:mainfrom
palontologist:feat/linux-port
Closed

palontologist wants to merge 1 commit into
BasedHardware:mainfrom
palontologist:feat/linux-port

Conversation

@palontologist

@palontologist palontologist commented Jul 18, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Adds a Linux/Electron build of the Omi desktop app, ported from desktop/windows, living at desktop/linux/. Packaged as an AppImage.

This brings Omi's desktop experience to Linux while keeping the same Electron + React + Vite architecture used by the Windows app.

Highlights

  • Sign-language avatar — text-to-sign pose pipeline (sign-mt API) rendered with a WebGL (pose-viewer) skeletal avatar, served from a writable temp dir over the local renderer-server (/__poses/...) with a SwiftShader WebGL fallback for Wayland.
  • Monologur — an always-listening background agent that reads the shared memory store for context and speaks proactive, personalized insights via TTS; durable insights are written back as memories so its help compounds.
  • Enrolled voiceprint — Deepgram nova-2 diarization; the first voice heard is enrolled as "You" and other speakers are labeled "Other N", so the app knows who is talking.
  • Linux-specific — Linux OCR helper, Omi BLE device support, and Wayland/EGL handling.
  • Same feature surface as the Windows app: Rewind (screen capture + search), conversations, goals/tasks, knowledge graph, insights, settings.

Build

cd desktop/linux
npm install
npm run build:linux   # produces dist/omi-windows-1.0.0.AppImage

Notes

  • Our port uses npm (package-lock.json); the Windows app uses pnpm. Both lockfiles are included in desktop/linux for clarity.
  • Two Windows-specific fixes were recently ported back the other way into the Linux port (fileIndex skip-dirs, Rewind primary-display selection); this PR adds the Linux tree so the port is visible upstream.
  • This is a large initial drop of the ported tree; follow-up PRs can sync individual modules (e.g. Notion/Obsidian memory export, KG write worker, settings search) from desktop/windows.

🤖 Generated with opencode

Review in cubic

Adds a Linux/Electron build of the Omi desktop app, ported from desktop/windows.

Highlights:
- Same Electron + React + Vite architecture, packaged as an AppImage for Linux.
- Sign-language avatar: text-to-sign pose pipeline (sign-mt) rendered with a
  WebGL skeletal avatar, served locally via the renderer-server (/__poses).
- Monologur: always-listening background agent that taps the shared memory
  store and speaks proactive insights via TTS.
- Enrolled voiceprint (Deepgram diarization) so Omi labels your speech as 'You'
  and others as 'Other N'.
- Linux OCR helper, Omi BLE device support, and a SwiftShader WebGL fallback
  for Wayland.

Build: npm install && npm run build:linux (produces an AppImage).
Copilot AI review requested due to automatic review settings July 18, 2026 10:06

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot wasn't able to review this pull request because it exceeds the maximum number of files (300). Try reducing the number of changed files and requesting a review from Copilot again.

@Git-on-my-level Git-on-my-level left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for putting this together — a Linux desktop port would be a valuable direction for Omi. I’m going to request changes on this head because this PR introduces a new desktop app with broad security/privacy-sensitive surfaces, and I found a few blockers that should be resolved before maintainer product/architecture review.

Blocking concerns:

  1. The Electron windows disable web security and globally grant/check permissions. desktop/linux/src/main/index.ts sets webSecurity: false, auto-grants media/display-capture, and setPermissionCheckHandler(() => true). Combined with the screen/audio capture handlers, any renderer compromise or unexpected navigation would have a much easier path to microphone/screen access without normal origin-bound permission checks. Please keep web security enabled where possible and scope permission grants/checks to the app’s trusted origin and the specific permission/resource being requested.

  2. The Deepgram Voice Agent exposes high-risk tools without sufficient boundaries. In desktop/linux/src/main/ipc/deepgramAgent.ts, model-driven function calls can write arbitrary absolute file paths (write_file) and call shell.openExternal on arbitrary URLs/local paths (open_url). Those need user consent and strict allow-lists/path sandboxing/scheme checks before this can be safe in a desktop app.

  3. The submitted “Linux” app still appears to carry Windows identity and behavior throughout the package: package.json uses omi-windows, electron-builder.yml uses com.omiwindows.app / “Omi for Windows”, helper build scripts target Windows executables, and docs mention AppImage outputs named omi-windows-1.0.0.AppImage. Please align the product/package/build metadata with the actual Linux port and clarify which Windows-only automation/OCR features are intentionally included, disabled, or out of scope on Linux.

Agent-behavior / docs note: this PR adds desktop/linux/AGENTS.md plus README/changelog/setup docs that coding/review agents may treat as project guidance for this subtree. Because that can change how AI coding agents behave in future work, maintainers should verify that these docs are accurate, non-aspirational, and safe before merging. In particular, the docs currently read more like a snapshot of debugging notes and a standalone fork than maintainer-approved guidance for the Omi repo.

Given the size and scope, I’m not asking for this to be split solely because it is large, but this should get explicit human maintainer review after the security/permission/tooling boundaries and Linux-vs-Windows product scope are tightened.

Reviewed by Omi maintainer automation.


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 Git-on-my-level added needs-maintainer-review Needs a human maintainer to sign off before merge security-review Touches auth, provider routing, secrets, or security-sensitive surfaces dependency-review Touches dependencies or lockfiles; needs dependency review labels Jul 18, 2026
@undivisible

Copy link
Copy Markdown
Collaborator

Superseded by the consolidated Linux PR: #10096

Closing the forked desktop/linux tree approach. Linux lands as platform seams on desktop/windows (one Electron codebase), not a second full app tree. Product-only extras in this PR (sign-language avatar, monologur, BLE) can reopen as focused follow-ups if still wanted.

@github-actions

Copy link
Copy Markdown
Contributor

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:

  • Project standards — Ensuring consistency across the codebase
  • User needs — Making sure changes align with what our users need
  • Code best practices — Maintaining code quality and maintainability
  • Project direction — Keeping aligned with our product principles and locked invariants

Before your next PR, please skim:

  • PRODUCT.md — product north star
  • Product invariants — locked rules (shared chat, memory tiers, agent control plane, integrations, brand)

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!

undivisible added a commit that referenced this pull request Jul 20, 2026
Consolidate Linux desktop work as platform seams on desktop/windows
(not a forked desktop/linux tree).

From #9503 (primary):
- X11 active-window via xprop + /proc
- Tesseract OCR helper speaking win-ocr-helper protocol
- XWayland default + PipeWire capturer
- Wayland continuous Rewind default off
- AppImage+deb targets (no snap)

From #8415:
- PulseaudioLoopbackForScreenShare for system-audio loopback
- deb runtime depends (tesseract, libnotify, libxss)

From #9963:
- architecture validation only (forked tree rejected as drift)

Also: lazy-require koffi so Linux import of nativeForeground never
loads the Win32 native module (fixes linux unit tests off-Windows).

Verification: vitest 21/21 on linuxForeground, nativeForeground
linux/degrade, rewindSettings wayland.

Failure-Class: none

Co-authored-by: velinxs <[email protected]>
Co-authored-by: ZachL111 <[email protected]>
Co-authored-by: palontologist <[email protected]>
undivisible added a commit that referenced this pull request Jul 20, 2026
…10110)

## Summary
Adds a scoped `// eslint-disable-next-line
@typescript-eslint/no-require-imports` above the two lazy
`require('koffi')` calls (nativeForeground.ts:45,
userAssistRegistry.ts:46) so the **Desktop Windows CI / Typecheck · Lint
· Test** check goes green on #10096.

The lazy require is the right idea (keeps `nativeForeground` importable
off-Windows); it just trips the `no-require-imports` rule. This is the
exact fix the maintainer requested in the #10096 review.

## Test plan
- `cd desktop/windows && npx eslint src/main/usage/nativeForeground.ts
src/main/usage/userAssistRegistry.ts` → no `no-require-imports` errors.
- Part of the consolidated Linux PR #10096 (supersedes
#9503/#9963/#8415).

## Notes
Pushed from the `consolidation/linux-electron` HEAD. Intended to be
merged into that branch (or squashed into its feat commit) so #10096 can
land.

<!-- This is an auto-generated description by cubic. -->
<a
href="https://cubic.dev/pr/BasedHardware/omi/pull/10110?utm_source=github"
target="_blank" rel="noopener noreferrer"
data-no-image-dialog="true"><picture><source
media="(prefers-color-scheme: dark)"
srcset="https://www.cubic.dev/buttons/review-in-cubic-dark.svg"><source
media="(prefers-color-scheme: light)"
srcset="https://www.cubic.dev/buttons/review-in-cubic-light.svg"><img
alt="Review in cubic"
src="https://www.cubic.dev/buttons/review-in-cubic-dark.svg"></picture></a>
<!-- End of auto-generated description by cubic. -->
undivisible added a commit that referenced this pull request Jul 21, 2026
Consolidate Linux desktop work as platform seams on desktop/windows
(not a forked desktop/linux tree).

From #9503 (primary):
- X11 active-window via xprop + /proc
- Tesseract OCR helper speaking win-ocr-helper protocol
- XWayland default + PipeWire capturer
- Wayland continuous Rewind default off
- AppImage+deb targets (no snap)

From #8415:
- PulseaudioLoopbackForScreenShare for system-audio loopback
- deb runtime depends (tesseract, libnotify, libxss)

From #9963:
- architecture validation only (forked tree rejected as drift)

Also: lazy-require koffi so Linux import of nativeForeground never
loads the Win32 native module (fixes linux unit tests off-Windows).

Verification: vitest 21/21 on linuxForeground, nativeForeground
linux/degrade, rewindSettings wayland.

Failure-Class: none

Co-authored-by: velinxs <[email protected]>
Co-authored-by: ZachL111 <[email protected]>
Co-authored-by: palontologist <[email protected]>
undivisible added a commit that referenced this pull request Jul 21, 2026
Consolidate Linux desktop work as platform seams on desktop/windows
(not a forked desktop/linux tree).

From #9503 (primary):
- X11 active-window via xprop + /proc
- Tesseract OCR helper speaking win-ocr-helper protocol
- XWayland default + PipeWire capturer
- Wayland continuous Rewind default off
- AppImage+deb targets (no snap)

From #8415:
- PulseaudioLoopbackForScreenShare for system-audio loopback
- deb runtime depends (tesseract, libnotify, libxss)

From #9963:
- architecture validation only (forked tree rejected as drift)

Also: lazy-require koffi so Linux import of nativeForeground never
loads the Win32 native module (fixes linux unit tests off-Windows).

Verification: vitest 21/21 on linuxForeground, nativeForeground
linux/degrade, rewindSettings wayland.

Failure-Class: none

Co-authored-by: velinxs <[email protected]>
Co-authored-by: ZachL111 <[email protected]>
Co-authored-by: palontologist <[email protected]>
Git-on-my-level added a commit that referenced this pull request Jul 25, 2026
 #8415) (#10096)

## Summary

Consolidates the three open Linux desktop PRs into one landable path:

| PR | Approach | Verdict |
|---|---|---|
| #9503 | Platform seams on `desktop/windows` (+473) | **Primary** —
keep |
| #8415 | Forked `desktop/Linux` tree (+24k) | Port **Pulse loopback +
deb depends** only |
| #9963 | Forked `desktop/linux` tree (+58k, ~75% Windows copy) | Reject
fork; product extras (sign avatar / monologur) stay follow-ups |

Architecture: **one Electron tree** (`desktop/windows`) with
`process.platform` branches. No `desktop/linux` / `desktop/Linux` fork —
those drift from Windows immediately and double maintenance.

### What lands

**From #9503**
- X11 active-window (`linuxForeground.ts` via `xprop` + `/proc`)
- Tesseract OCR helper speaking `win-ocr-helper` stdio protocol
(`resources/linux-ocr-helper/omi-ocr-helper`)
- XWayland default (`OMI_OZONE=wayland` override) + PipeWire capturer
- Wayland: continuous Rewind capture defaults **off**
- Linux targets: AppImage + deb (snap dropped — confinement blocks
xprop/tesseract)

**From #8415**
- `PulseaudioLoopbackForScreenShare` for system-audio loopback
- `.deb` depends: `tesseract-ocr`, `tesseract-ocr-eng`, `libnotify4`,
`libxss1`

**Fix on top of #9503**
- Lazy-`require('koffi')` so Linux import of `nativeForeground` never
loads Win32 native module (unit tests were broken off-Windows)

## Tests
```
cd desktop/windows
npx vitest run \
  src/main/usage/linuxForeground.test.ts \
  src/main/usage/nativeForeground.linux.test.ts \
  src/main/usage/nativeForeground.degrade.test.ts \
  src/main/rewind/rewindSettings.wayland.test.ts
# → 22/21+ focused Linux tests (includes foregroundMonitor.linux)
```

## Product invariants
None. Path globs under `desktop/windows` for Linux seams only.

## Credits

Consolidated from community PRs (code selected into `desktop/windows`
seams; forked trees not re-merged):

| PR | Author | Role |
|---|---|---|
| #9503 | @velinxs | Primary Linux platform seams (X11, OCR helper,
XWayland, Wayland Rewind default) |
| #8415 | @ZachL111 | Pulse loopback flag + deb depends (from Linux
packaging work) |
| #9963 | @palontologist | Architecture reference; full `desktop/linux`
fork not adopted |

Git trailers on the feat commit: `Co-authored-by` for all three.

Failure-Class: none

Closes #9503
Closes #9963
Closes #8415


<!-- This is an auto-generated description by cubic. -->
<a
href="https://cubic.dev/pr/BasedHardware/omi/pull/10096?utm_source=github"
target="_blank" rel="noopener noreferrer"
data-no-image-dialog="true"><picture><source
media="(prefers-color-scheme: dark)"
srcset="https://www.cubic.dev/buttons/review-in-cubic-dark.svg"><source
media="(prefers-color-scheme: light)"
srcset="https://www.cubic.dev/buttons/review-in-cubic-light.svg"><img
alt="Review in cubic"
src="https://www.cubic.dev/buttons/review-in-cubic-dark.svg"></picture></a>
<!-- End of auto-generated description by cubic. -->
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependency-review Touches dependencies or lockfiles; needs dependency review needs-maintainer-review Needs a human maintainer to sign off before merge security-review Touches auth, provider routing, secrets, or security-sensitive surfaces

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants