Skip to content

feat(desktop): background service manager, tray status indicator, model switcher, and auto-load default model - #357

Merged
shuk777 merged 3 commits into
Edge0-AI:mainfrom
hmily-ff:feat/desktop-service-manager
Nov 30, 2026
Merged

shuk777 merged 3 commits into
Edge0-AI:mainfrom
hmily-ff:feat/desktop-service-manager

Conversation

@hmily-ff

Copy link
Copy Markdown
Contributor

What & why

Upgrades Edge0 Chat (edge0-infer/examples/desktop) into a full local inference service manager on macOS:

  • Background service persistence & re-attach: keep_running_in_background setting, detached process group (process_group(0)), file-backed serve.log, and seamless attach_service on relaunch without interrupting running inference.
  • macOS menu bar tray with live status dot: anti-aliased green (Running), yellow (Starting…), and red (Stopped) status badge on the tray icon and dropdown menu, Start Service ▸ model picker submenu, dynamic Stop Service toggle, and bidirectional WebView event sync.
  • Default model auto-load & safe loading UX: default_model setting (defaulting to Edge0-145B-NVFP4 when present), auto-load on startup when no service is running, Starting… tag + Cancel button while locking other Load buttons during load.
  • Network, context & packaging improvements: default port 18082 with copyable LAN endpoint + API key under Network access, 512K default context with 256K/512K presets, default max_tokens: 32768 in chat requests, auto-vision delegation in serve_delegate_registry.cpp, strata-vision bundling in scripts/package/macos-arm64/package.sh, and 512K/16 GiB cache config in edge0-145b-metal.json.

Area

  • Engine, CLI or server (edge0-infer/)
  • Model asset tools (edge0-infer/tools/assets/)
  • Chat app examples (edge0-infer/examples/)
  • Model docs (docs/)
  • edge0-strata/
  • Other

How was it tested?

  • Frontend unit tests (Apple M4, macOS):
    • cd edge0-infer/examples/desktop && npm test
    • Result: 18 passed (18), 239 passed (239) (vitest).
  • Rust backend unit tests (Apple M4, macOS):
    • cd edge0-infer/examples/desktop/src-tauri && cargo test -- --test-threads=4
    • Result: 63 passed; 0 failed; 1 ignored (including detach/re-attach, default port 18082, and 512K context tests).
  • Production build & macOS deployment (Mac Studio M2 Ultra, Edge0 Chat.app):
    • npx tauri build --no-bundle + ad-hoc codesign (codesign --verify --strict --deep) PASS.
    • Verified menu bar green/yellow/red transitions, Start Service ▸ submenu, tray-to-WebView sync, auto-load on startup, and LAN endpoint access.

Checklist

  • Related fixes in this area are in this pull request, one commit per fix
  • Ran the higher test levels this change affects
  • Added/updated tests for new behavior

@github-actions github-actions Bot added the needs-info Title, issue link, test notes, or PR cap still missing label Nov 30, 2026
@github-actions

Copy link
Copy Markdown

This pull request is labeled needs-info and is not in the review queue.
The intake rules are in CONTRIBUTING.md.

  • Link an issue with Fixes #123 or Related to #123. For a behavior change, open the issue and wait for a maintainer to agree before writing the code. A docs title may omit this.
  • This pull request is past the limit of 2 open pull requests (5 open). The 2 oldest stay in the queue. Close this one, or fold the change into an older pull request.

@github-actions github-actions Bot added engine edge0-infer engine, CLI, or server examples Chat app examples desktop Desktop chat app strata edge0-strata labels Nov 30, 2026

@shuk777 shuk777 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Approved.

@shuk777
shuk777 merged commit 31cd70c into Edge0-AI:main Nov 30, 2026
2 of 3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

desktop Desktop chat app engine edge0-infer engine, CLI, or server examples Chat app examples needs-info Title, issue link, test notes, or PR cap still missing strata edge0-strata

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants