You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
On first run the app offers to build a Python environment via uv (~500 MB once), shows progress, then starts the loopback engine automatically.
Live result on Windows 10 x64: the shell opens a full UI, but the engine never binds. Users see title-bar status setup needed. Opening Settings shows modal “Settings needs the engine”. Chat, Train, and Settings are unusable.
Test
Shell
engine.lock
server.py process
/health
Normal install + launch
Running
Absent
None
Unreachable
End-user session (screenshot)
Running, setup needed
Absent
None
Blocked
Manual python engine\server.py
N/A
Written
Running
{"ok":true}
Verdict: product/developer defect — not user misconfiguration. Engine code works when started manually. Supervisor and first-run UI fail on the shipped Windows build.
End-user evidence — attach screenshot when filing
When filing on GitHub: drag-and-drop your screenshot into the issue body. Do not link repo-local or machine-local paths — reviewers only see what you attach.
Observed UI (2026-08-27, v4.7.3 Windows)
UI element
Observed state
Implication
Window title
PraisonAI (dark theme)
Shell launched successfully
Title-bar status badge
setup needed
Engine not ready; provisioning incomplete or never started
Model selector
Select model (dropdown)
Inactive — needs engine for model list
Active sidebar tab
Train (green highlight)
Training UI rendered
Train — Dataset
yahma/alpaca-cleaned
Default form values visible
Train — Split
train
Train — Epochs
1
Train — Max Steps
60
Start training button
Visible (green)
Cannot run — no loopback engine
Settings modal title
Settings needs the engine
User opened Settings (sidebar or Ctrl+,)
Settings modal body
“The engine is not running, so there is nothing to read yet. The status in the title bar says why it failed to start.”
App acknowledges failure
Modal actions
Close only
No “Start setup”, “Retry engine”, “View engine log”
flowchart TD
subgraph intended
L[Launch shell] --> S[Setup / detect Python]
S --> P[Spawn server.py]
P --> K[Write engine.lock]
K --> R[Status: ready]
R --> U[Chat Train Settings work]
end
subgraph live_bug
L2[Launch shell] --> B[setup needed badge]
B --> UI[UI renders Chat Train Settings]
B -.->|never| P2[server.py]
UI --> M[Settings modal dead-end]
end
Loading
sequenceDiagram
participant U as User
participant UI as WebView
participant S as Supervisor
U->>UI: Settings
UI->>U: Modal — engine not running
Note over S: server.py never spawned
Loading
Why users blame themselves (incorrectly)
Misleading signal
User assumption
Reality
Polished window opens
Install succeeded fully
Only shell loaded
Train form complete
Can start training
Requires loopback engine
Modal: “check title bar”
Detailed reason shown
Only setup needed — no how-to
No crash / no SmartScreen
Must be API key or Python
Supervisor never started engine
Close modal
Problem dismissed
Engine still down
Root cause (hypothesis — needs Rust + frontend confirm)
Ranked by likelihood:
provision_engine / setup screen never shown despite engine_status = setup needed. first-run.test.mjs tests mocked UI only — not real Windows supervisor after NSIS install.
Python PATH differs for GUI vs terminal — Store Python, py launcher, or user PATH not visible to praisonai-desktop.exe launched from Start Menu.
Partial AppData state — %APPDATA%\PraisonAI exists but provision incomplete; app stuck without retry (related: silent exit when AppData fully missing on same release).
No blocking gate — user navigates Train/Chat while engine permanently down; looks usable, is not.
Suggested fix
P0 — unblock users
Full-page Complete setup when engine not ready; redirect or disable Train/Chat until ready.
Settings modal: add Open setup, Retry engine, View engine log — not Close-only.
Supervisor must spawn or attach within timeout; on failure write %APPDATA%\PraisonAI\logs\engine-start.log.
Make setup needed badge clickable → provisioning wizard.
P1 — Windows hardening
Log PATH and Python discovery in Engine log (user-visible).
Use existing Python one-click when ≥3.10 found (optional skip of 500 MB uv download).
Windows CI: launch built .exe, assert engine.lock within 120 s.
Real .exe smoke on Windows release agent (not mocked engine_status only).
Acceptance criteria
Fresh v4.7.3 Windows install → setup completes without manual python server.py
%APPDATA%\PraisonAI\engine.lock within 2 min of setup
Title bar shows ready
Settings opens without “engine not running” modal
Chat composer and Train → Start training reach engine (or show explicit API-key error)
Engine failure shows actionable recovery UI
INSTALL.md troubleshooting updated
Workaround (developer only — not for end users)
# Keep this terminal open
python "$env:LOCALAPPDATA\PraisonAI\engine\server.py"
Note PRAISONAI_PORT= line. Reload PraisonAI; shell may attach via lockfile. Check sidebar Engine log for spawn errors. Do not document as primary install path.
[BUG] Desktop v4.7.3 Windows — engine never starts; UI stuck at “setup needed” (Chat / Train / Settings unusable)
Metadata
src/praisonai-desktop(engine supervisor + first-run UI)PraisonAI-v4.7.3-windows-x64-setup.exe%LOCALAPPDATA%\PraisonAI\%APPDATA%\PraisonAI\bug,desktop,windows,engine,first-run,uxExecutive summary
PraisonAI Desktop on Windows is a two-process application:
%LOCALAPPDATA%\PraisonAI\praisonai-desktop.exe%LOCALAPPDATA%\PraisonAI\engine\server.py127.0.0.1— Chat, Settings, Train, logsv4.7.3 INSTALL.md documents:
Live result on Windows 10 x64: the shell opens a full UI, but the engine never binds. Users see title-bar status
setup needed. Opening Settings shows modal “Settings needs the engine”. Chat, Train, and Settings are unusable.engine.lockserver.pyprocess/healthsetup neededpython engine\server.py{"ok":true}Verdict: product/developer defect — not user misconfiguration. Engine code works when started manually. Supervisor and first-run UI fail on the shipped Windows build.
End-user evidence — attach screenshot when filing
Observed UI (2026-08-27, v4.7.3 Windows)
setup neededready; provisioning incomplete or never startedyahma/alpaca-cleanedtrain160User journey (confirmed)
setup needed— no setup wizard visible.setup needed— no explanation, no fix button.Environment
PraisonAI-v4.7.3-windows-x64-setup.exeStep-by-step reproduction
Path A — end user (matches screenshot)
%LOCALAPPDATA%\PraisonAI\praisonai-desktop.exe.setup needed.Path B — developer verification
Wait 60+ seconds after launch — still no lockfile, no
server.pychild.Path C — control (proves engine bundle OK)
Live results:
/health{"ok":true,"version":2,...}POST /chat%APPDATA%\PraisonAI/updatepraisonaiagents1.7.1 current on PyPIExample lockfile after manual start:
Expected vs actual
uvenv buildsetup needed, no visible wizardserver.py, parsePRAISONAI_PORT=%APPDATA%\PraisonAI\engine.lockreadyor explicit provisioning stepsetup neededindefinitelyArchitecture
flowchart TD subgraph intended L[Launch shell] --> S[Setup / detect Python] S --> P[Spawn server.py] P --> K[Write engine.lock] K --> R[Status: ready] R --> U[Chat Train Settings work] end subgraph live_bug L2[Launch shell] --> B[setup needed badge] B --> UI[UI renders Chat Train Settings] B -.->|never| P2[server.py] UI --> M[Settings modal dead-end] endsequenceDiagram participant U as User participant UI as WebView participant S as Supervisor U->>UI: Settings UI->>U: Modal — engine not running Note over S: server.py never spawnedWhy users blame themselves (incorrectly)
setup needed— no how-toRoot cause (hypothesis — needs Rust + frontend confirm)
Ranked by likelihood:
provision_engine/ setup screen never shown despiteengine_status = setup needed.first-run.test.mjstests mocked UI only — not real Windows supervisor after NSIS install.Python PATH differs for GUI vs terminal — Store Python,
pylauncher, or user PATH not visible topraisonai-desktop.exelaunched from Start Menu.Partial AppData state —
%APPDATA%\PraisonAIexists but provision incomplete; app stuck without retry (related: silent exit when AppData fully missing on same release).No blocking gate — user navigates Train/Chat while engine permanently down; looks usable, is not.
Suggested fix
P0 — unblock users
ready.%APPDATA%\PraisonAI\logs\engine-start.log.setup neededbadge clickable → provisioning wizard.P1 — Windows hardening
uvdownload)..exe, assertengine.lockwithin 120 s.P2 — tests
setup needed→ setup CTA → mock provision →ready..exesmoke on Windows release agent (not mockedengine_statusonly).Acceptance criteria
python server.py%APPDATA%\PraisonAI\engine.lockwithin 2 min of setupreadyWorkaround (developer only — not for end users)
Note
PRAISONAI_PORT=line. Reload PraisonAI; shell may attach via lockfile. Check sidebar Engine log for spawn errors. Do not document as primary install path.What worked on same build (scope boundary)
%LOCALAPPDATA%\PraisonAIengine\server.py, routes, training)/health,/settings,/chats/chatwhen engine running/update—praisonaiagents1.7.1 currentThis issue is supervisor / first-run / UX — not engine HTTP implementation.
Related (same release QA)
Labels (suggested)
bug,desktop,windows,engine,first-run,ux