Repository navigation
Skip desktop first-run password, database, and admin wizard - #18
Merged
Merged
Conversation
Desktop (OCTOP_DESKTOP) now binds local SQLite, provisions the guest session, and opens on the model / API-key step with a skip-to-workspace path. Self-hosted installs keep the password, database, and admin wizard.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Desktop first open no longer walks through the three server-style setup steps (verify boot password, choose database, create admin). With
OCTOP_DESKTOP/FREEOS_DESKTOP, FreeOS binds local SQLite, provisions the existing guest / local-session, and lands on configure LLM API key. Users can 跳过,进入工作台 and set the model later in Settings.Self-hosted / non-desktop installs keep the existing multi-step wizard.
Target branch
develop(feature / fix — default)main(FreeOS shipping branch)Type of change
Desktop first-run behavior
OCTOP_DESKTOP=1→ bind default local SQLite, do not writeoctop-login.txt, provision thelocalguest if no users exist.GET /api/setup/statusreportsdesktop: true,wizard_password_required: false,setup_required: falseafter provision.AuthGuard/ Login use/auth/local-session(no longer blocked by setup lockdown) and send first launch to/setuponly for the model step./setuphides password / database / admin steps and the 5-step chrome. Footer is 跳过,进入工作台 (or Skip and enter workspace).freeos:model-onboarding-doneand enters/chat. Model settings remain available later.Key files
src/octop/infra/server.py— desktop auto-bind SQLite + guest provision; skip wizard password filesrc/octop/api/routers/setup.py—desktop/has_providers; no boot-password on desktopdashboard/src/api/request.ts— allow/auth/local-sessionduring lockdown; keep?desktop=1on redirectdashboard/src/pages/Setup/index.tsx— model-only desktop flow + skip-to-workspacedashboard/src/components/AuthGuard.tsx,dashboard/src/pages/Login/index.tsxdashboard/src/utils/desktopOnboarding.tsTest plan
make precommit(ruff + mypy + pytest-testmon): 3079 passed, 42 skippednpx tsc --noEmitandnpm run buildtests/integration/test_local_session.py,test_server_lifecycle.py,test_setup_wizard.py; vitest Setup / AuthGuard / Login / request lockdownHow to verify on Windows
FreeOS.exe/ portable). Confirm host env hasOCTOP_DESKTOP=1.%USERPROFILE%\.freeosor a cleanFREEOS_HOME) so first-run applies.octop-login.txthelp text.Checklist
CHANGELOG.md(if user-facing)Do not merge this PR or replace GitHub Release assets. Coordinator ships after review.