mirror of
https://github.com/open-webui/desktop.git
synced 2026-11-05 01:27:46 +00:00
[PR #259] [CLOSED] feat: add optional OmniRoute autostart and tray controls #234
Labels
No labels
help wanted
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
open-webui/desktop#234
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/open-webui/desktop/pull/259
Author: @nicoegerer
Created: 8/19/2026
Status: ❌ Closed
Base:
main← Head:agent/omniroute-autostart📝 Commits (5)
cd500fcfeat: add optional OmniRoute autostartc05762bfix: avoid blocking desktop startup0b9969cfix: wait for OmniRoute HTTP readinessb075d8afix: harden OmniRoute Windows lifecyclef18fc6bfeat: add managed background service registry📊 Changes
17 files changed (+2385 additions, -0 deletions)
View changed files
➕
FORK_NOTES.md(+32 -0)📝
src/main/index.ts(+4 -0)➕
src/main/services/defaults.ts(+127 -0)➕
src/main/services/index.ts(+21 -0)➕
src/main/services/ipc.ts(+138 -0)➕
src/main/services/manager.ts(+454 -0)➕
src/main/services/network.ts(+83 -0)➕
src/main/services/registry.ts(+471 -0)➕
src/main/services/ring-buffer.ts(+32 -0)📝
src/preload/index.ts(+2 -0)➕
src/preload/services.ts(+34 -0)📝
src/renderer/src/lib/components/Main/Connections/StatusBar.svelte(+3 -0)📝
src/renderer/src/lib/components/Main/Settings/General.svelte(+3 -0)➕
src/renderer/src/lib/components/Main/Settings/Services.svelte(+712 -0)➕
src/renderer/src/lib/services/ManagedServiceLogs.svelte(+76 -0)➕
src/renderer/src/lib/services/ManagedServicesStatus.svelte(+124 -0)➕
src/shared/services/types.ts(+69 -0)📄 Description
Summary
127.0.0.1:20128before starting anythingshell: false,windowsHide: true, no detached console, and no browser launch--traypath and expose an Electron-managed OmniRoute tray icon insteadsocket hang upcannot crash the Electron main processScope
This remains a Windows-focused proof of concept for the architecture discussion in #258.
It expects:
%ProgramFiles%\nodejs\node.exe%APPDATA%\npm\node_modules\omnirouteThe feature is off by default, so existing users and installations are unaffected. The spawned process uses
--max-restarts 0: OmniRoute 3.8.49 otherwise treats an explicitomniroute stopas a crash and its supervisor starts the server again. Open WebUI only starts OmniRoute once and does not restart it after an intentional stop.Validation
npm run typecheck:nodenpm run svelte-check— 0 errors, 0 warningsnpx eslint --quiet src/main/utils/omniroute.tsnpm run buildserve --no-open --max-restarts 0omniroute stopcheck: server and supervisor exited; no OmniRoute process returned during a 15-second observationThe PR stays in draft until the packaged Windows installer has been tested.
Relates to #258
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.