Skip to content

feat(desktop): Add native Tauri desktop installer and lifecycle harness (Win/Mac/Linux) - #6137

Draft
bitboody wants to merge 81 commits into
odysseus-dev:devfrom
bitboody:tauri
Draft

bitboody wants to merge 81 commits into
odysseus-dev:devfrom
bitboody:tauri

Conversation

@bitboody

@bitboody bitboody commented Aug 20, 2026 •

Copy link
Copy Markdown
Member

Summary

This PR introduces a native, lightweight desktop client for Odysseus built with Tauri (v2) and Rust.

The goal of this wrapper is to provide a seamless, "1-click" installation and lifecycle management experience for end users. It removes the friction of manual repository cloning, environment configuration, and container orchestration by wrapping the entire setup process into an interactive desktop wizard and automated background harness.

How it works:

  • Boot & Detect: The app checks for an existing installation. If missing, it serves a custom HTML installer directly from the binary.

  • Click Setup: Clicking "Install" triggers an async thread that automatically resolves dependencies, clones the repo, and creates .env files—without freezing the UI.

  • Transparent Build: The app runs docker compose build, streaming the stdout/stderr directly to the terminal so users can see the progress of large downloads.

  • Smart Handoff: The UI holds on a "Loading" screen while a background thread pings localhost:7000. It only navigates to the live web app once it confirms an HTTP 20x response.

  • Clean Exit: Closing the window intercepts the kill signal and automatically runs docker compose stop to prevent orphaned containers from draining system resources.

Target branch

  • This PR targets dev, not main. All PRs land in dev; main is curated by the maintainer at each release. If your PR is on main by accident, click "Edit" on this PR and change the base.

Linked Issue

#4041
#5897
#1974

Type of Change

  • Bug fix (non-breaking — fixes a confirmed issue)
  • New feature (non-breaking — adds new behaviour)
  • Breaking change (changes or removes existing behaviour)
  • Refactor / cleanup (behaviour unchanged)
  • Documentation only
  • CI / tooling / configuration

Checklist

  • I searched open issues and open PRs — this is not a duplicate.
  • This PR targets dev
  • My changes are limited to the scope described above — no unrelated refactors or whitespace changes mixed in.
  • I actually ran the app (docker compose up or uvicorn app:app) and verified the change works end-to-end. Type-checks and unit tests are not enough.
  • I did not run the app/runtime validation and stated that gap in How to Test. Leave this unchecked when the app-run box above is checked.

How to Test

Follow the steps in tauri-setup.md to compile a native version to your machine.

Visual / UI changes — REQUIRED if you touched anything that renders

No visual / UI changes to the main static files of Odysseus.

  • Screenshot or short clip of the change in the running app, attached below. Mobile screenshot too if the change affects mobile.
  • Style match: no UI styling changed.
  • No new component patterns.
  • I am not an LLM agent submitting a bulk PR. If you are, please open an issue describing the problem first — bulk auto-generated PRs that don't match the project's visual style are closed on sight, even when the underlying code is correct.

Screenshots / clips

image image image

bitboody and others added 24 commits August 18, 2026 08:27
- Added `lib.rs` to define the main application logic, including a fallback mechanism for loading content based on server availability.
- Implemented a helper function `get_target_url` to determine the appropriate URL to navigate to based on the server's online status.
- Created `main.rs` to serve as the entry point for the Tauri application, invoking the `run` function from `lib.rs`.
- Added `tauri.conf.json` to configure application settings, including product name, version, and window properties.
…d add automatic odysseus container run and close
@bitboody bitboody added the enhancement New feature or request label Aug 20, 2026
@github-actions github-actions Bot added the needs visual evidence UI-sensitive change without an attested screenshot or clip from the running app label Aug 20, 2026
bitboody and others added 8 commits September 23, 2026 16:06
- add tauri.macos.conf.json for an ad-hoc signed .dmg with the PWA icon
- find Homebrew and Docker when the app is opened from Finder
- use port 7860 for macOS installs, AirPlay Receiver holds 7000
- stop Odysseus on Cmd+Q, like closing the window does
- check for Homebrew before a native install
- keep start-macos.sh from opening the browser (ODYSSEUS_NO_OPEN)
bitboody and others added 21 commits October 2, 2026 14:12
fix(macos): make the Tauri desktop app build and run
- mark the installer's own clone in .git once it succeeds
- reuse that folder on retry instead of refusing it
- keep refusing any other folder, and say how to get past it
- stop a native launcher left running by a failed attempt
- on Linux, redo the native setup until it has finished once
- say in plain words when the network or a full disk made a step fail
- read both docker streams live and keep their last 100 lines (not on Windows)
- cover git clone, compose build and up, Linux pip and start-macos.sh
- drop the "Native Odysseus execution failed" prefix in the window
- add tests with real failure lines from apt, git, pip and Docker
- always stop the tracked native process, it is a no-op otherwise
- keep the Docker cleanup as before
- check "Install natively" by default on Apple Silicon with Homebrew
- mention the Docker fallback when Homebrew is missing
- say in the requirements modal when native is the default
- wait up to 10 minutes for the first native start, like an app start
fix(desktop): clearer install errors and native default on Apple Silicon
- point the Linux icon at static/icons/icon-512.png, like macOS does
- icons/icon.png is ignored by git, so a fresh clone failed to build
- read the venv output like the pip step does
- name the package to install instead of "exit status: 1"
fix(linux): build from a clean clone and clearer python3-venv error
- Added `tauri-plugin-opener` dependency to Cargo.toml.
- Implemented internal URL checking and external link opening in the app's lib.rs.
- Updated the main window setup to handle navigation and new window events.
- Removed window configuration from tauri.conf.json as it is now handled in code.
- Created a new capabilities file for managing permissions related to the main application window.
- start-macos.sh ran its brew and pip install inside the 10 minute wait
- count from venv/.requirements_hash, written once that install is done
- Linux already installs before this wait
fix(macos): start the native timeout after the first install
Keep both Tauri build artifacts and upstream validation reports in gitignore.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants