[REGRESSION] Desktop v4.7.3 Windows — engine still never starts (setup needed) in Latest shipped build after #4441 closed
[REGRESSION] Desktop v4.7.3 Windows — engine still never starts (setup needed) in Latest shipped build after #4441 closed
Metadata
| Field | Value |
|---|---|
| Repository | https://github.com/MervinPraison/PraisonAI |
| Component | src/praisonai-desktop engine supervisor, first-run provisioning, WebView UI |
| Release tested | v4.7.3 — Latest on GitHub Releases as of 2026-08-28 |
| Asset | PraisonAI-v4.7.3-windows-x64-setup.exe |
| Shell binary | %LOCALAPPDATA%\PraisonAI\praisonai-desktop.exe |
| Engine bundle | %LOCALAPPDATA%\PraisonAI\engine\server.py |
| Lockfile | %APPDATA%\PraisonAI\engine.lock |
| Parent issue | #4441 — CLOSED 2026-08-27 |
| Merged fixes (not in tested artifact) | #4448, #4515 |
| Labels | bug, desktop, windows, engine, regression, first-run, ux |
| Severity | High — app appears installed; Chat, Train, Settings unusable |
| Discovered | 2026-08-27 E2E + end-user screenshot; re-confirmed 2026-08-28 |
| Follow-up ID | PAI-DESK-005 |
Executive summary
PraisonAI Desktop on Windows is a two-process application:
| Process | Location | Role |
|---|---|---|
| Shell | %LOCALAPPDATA%\PraisonAI\praisonai-desktop.exe |
Tauri + WebView2 UI; must spawn and supervise engine |
| Engine | %LOCALAPPDATA%\PraisonAI\engine\server.py |
Loopback HTTP on 127.0.0.1 — Chat, Settings, Train, logs |
v4.7.3 INSTALL.md states:
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 shipped v4.7.3: shell opens; engine never binds. Title bar shows setup needed. Settings modal: “Settings needs the engine”. Chat and Train are non-functional.
#4441 documented this. Fixes merged to main:
Issue closed 2026-08-27. 2026-08-28 re-test: v4.7.3 remains Latest Release — same failure on clean launch.
| Test | 2026-08-27 | 2026-08-28 re-test |
|---|---|---|
| Shell running | ✅ | ✅ Window title PraisonAI |
engine.lock after 2+ min |
❌ Absent | ❌ Still absent |
server.py process |
❌ None | ❌ None |
/health |
❌ Unreachable | ❌ Unreachable |
%APPDATA%\PraisonAI created |
❌ Often absent | ❌ Not created |
Manual python engine\server.py |
✅ Works | ✅ Control still works |
Verdict: engine bundle is fine; supervisor + first-run UX broken on downloadable v4.7.3. Code fixes exist on main but are not verified in any published release.
End-user evidence — attach screenshot when filing
When filing on GitHub: drag-and-drop screenshot into issue body. Do not link machine-local paths.
Observed UI (2026-08-27, confirmed same class of failure 2026-08-28)
| UI element | Observed state | Implication |
|---|---|---|
| Window title | PraisonAI (dark theme) | Shell launched |
| Title-bar status badge | setup needed |
Engine not ready |
| Model selector | Select model (inactive) | Needs engine for model list |
| Active sidebar tab | Train (highlighted) | UI renders; cannot execute |
| Train — Dataset | yahma/alpaca-cleaned |
Default form visible |
| Start training | Button visible | Dead — no engine |
| Settings modal | Settings needs the engine | User blocked |
| Modal body | Check title bar for reason | Only setup needed — no fix button |
| Modal actions | Close only | No Retry / Start setup / View log |
| Sidebar footer | Engine log, Settings | User must discover log alone |
User journey
- Install v4.7.3 from GitHub Releases.
- Launch — window appears.
- Title bar
setup neededindefinitely (tested 120+ seconds on 2026-08-28). - Train tab looks usable — Start training does nothing useful.
- Settings → modal dead-end.
- No in-app path to start engine without developer workaround.
Timeline
| Date | Event |
|---|---|
| 2026-08-26 | v4.7.3 published |
| 2026-08-27 | #4441 filed |
| 2026-08-27 | #4448, #4515 merged |
| 2026-08-27 | #4499 Windows lockfile adoption — related root cause — CLOSED |
| 2026-08-27 | #4441 closed |
| 2026-08-28 | Re-test Latest Release — still broken |
Environment
| Field | Value |
|---|---|
| OS | Windows 10 build 19045, x64 |
| Release | v4.7.3 |
| Installer | NSIS per-user |
| Python on PATH (manual test) | 3.13 — engine starts when invoked manually |
| Code signing | Unsigned (expected) |
| Wait time in re-test | 150 seconds after shell launch |
Architecture
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]
end
subgraph shipped_v4_7_3
L2[Launch shell] --> B[setup needed badge]
B --> UI[UI renders tabs]
B -.->|never| P2[server.py]
UI --> M[Settings modal dead-end]
endsequenceDiagram
participant U as User
participant UI as WebView
participant S as Supervisor
participant E as engine/server.py
U->>UI: Open Settings
UI->>U: Modal — engine not running
Note over S,E: server.py never spawned on shipped build
U->>U: Reads title bar — only "setup needed"Evidence — 2026-08-27 initial QA
| Test | Shell | engine.lock | server.py | /health |
|---|---|---|---|---|
| Normal install + launch | Running | Absent | None | Unreachable |
| End-user screenshot session | Running, setup needed | Absent | None | Blocked |
Manual python engine\server.py |
N/A | Written | Running | {"ok":true} |
| SSE POST /chat (engine up) | N/A | — | — | Response ~19 s |
Engine portability tests in shipped tree: 41/42 pass (1 dev-only skip). Proves HTTP engine implementation OK — failure is supervisor / provisioning.
Evidence — 2026-08-28 post-close re-test
Procedure
Stop-Process -Name praisonai-desktop -Force -ErrorAction SilentlyContinue
Start-Sleep 2
$p = Start-Process "$env:LOCALAPPDATA\PraisonAI\praisonai-desktop.exe" -PassThru
Start-Sleep 120
[PSCustomObject]@{
LauncherHasExited = $p.HasExited
LauncherExitCode = $p.ExitCode
ShellRunning = [bool](Get-Process praisonai-desktop -ErrorAction SilentlyContinue)
MainWindowTitle = (Get-Process praisonai-desktop -ErrorAction SilentlyContinue).MainWindowTitle
EngineLock = Test-Path "$env:APPDATA\PraisonAI\engine.lock"
AppDataDir = Test-Path "$env:APPDATA\PraisonAI"
ServerPyProcess = @(
Get-CimInstance Win32_Process -Filter "Name='python.exe'" |
Where-Object { $_.CommandLine -like '*server.py*' }
).Count
}Observed results
| Signal | Value |
|---|---|
| LauncherHasExited | False (shell stays up) |
| ShellRunning | True |
| MainWindowTitle | PraisonAI |
| EngineLock | False |
| AppDataDir | False |
| ServerPyProcess | 0 |
| Title-bar status (visual) | setup needed (consistent with 2026-08-27) |
After additional 60 s wait (total 150 s): unchanged — still no lockfile, no AppData.
Control — manual engine (proves bundle OK)
python "$env:LOCALAPPDATA\PraisonAI\engine\server.py"
# stdout: PRAISONAI_PORT=<port>
Invoke-RestMethod "http://127.0.0.1:<port>/health"Result: ok: true, version 2. Chat SSE works when engine manually started (same as 2026-08-27).
Step-by-step reproduction
Path A — end user
- Install v4.7.3 Windows setup.
- Launch from Start Menu.
- Wait 120 seconds.
- Observe title bar
setup needed. - Click Train — form visible; Start training ineffective.
- Click Settings — modal Settings needs the engine → Close only.
Path B — developer verification
Run evidence script in previous section. Expect EngineLock = False, ServerPyProcess = 0.
Path C — control
Manual engine start (above). Reload app or attach via lockfile — features work.
Expected vs actual
| Step | Expected (INSTALL.md) | Shipped v4.7.3 |
|---|---|---|
| Post-install launch | First-run setup offers uv env |
setup needed, no wizard |
| Python discovery | Detect ≥3.10 or prompt | Stuck |
| Supervisor | Spawn server.py, parse port |
Never spawns |
| Lockfile | %APPDATA%\PraisonAI\engine.lock |
Absent until manual start |
| Title bar | ready |
setup needed |
| Settings | API keys, models | Blocked modal |
| Chat | Composer active | Blocked |
| Train | Start training | Form only |
| #4441 closed | Fixed for users | Not in Latest exe |
Why users blame themselves (incorrectly)
| Misleading signal | User assumes | Reality |
|---|---|---|
| Polished window | Full install success | Shell only |
| Train form complete | Can train | Needs engine |
| Modal says check title bar | Detailed reason | Only setup needed |
| No crash | Config error | Supervisor never ran engine |
Root cause (ranked)
- Fixes merged on
main, not shipped — #4448, #4515 not in v4.7.3 artifact. provision_engine/ setup UI never completes on Windows GUI launch (#4499 — Windows lockfile adoption was a related root cause).- Python PATH may differ for Start Menu launch vs terminal — supervisor finds nothing, no actionable UI.
- No blocking gate — Train/Chat render while engine permanently down.
Suggested fix
P0 — ship to users
- New desktop release from
mainincluding #4448 and #4515. - Windows release smoke: launch
.exe, assertengine.lock+/healthwithin 120 s on clean VM.
P1 — UX
- Full-page Complete setup when not
ready; disable Train/Chat until engine up. - Settings modal: Retry engine, Open setup, View engine log.
- Make
setup neededbadge clickable → wizard.
P2 — CI
- Real
.exetest on Windows runner — not mockedengine_statusonly. - Log PATH + Python discovery in Engine log (user-visible).
Acceptance criteria
- Fresh install of new published release — no manual
python server.py -
engine.lockwithin 2 min - Title bar
ready - Settings opens without engine modal
- Chat SSE returns model response
- Train → Start training reaches engine HTTP
- Verified on Latest GitHub Release, not
mainonly
Workaround (developer only — not for end users)
python "$env:LOCALAPPDATA\PraisonAI\engine\server.py"Keep terminal open. Reload PraisonAI. Check sidebar Engine log for spawn errors. Do not document as primary install path.
What worked on same build (scope boundary)
| Item | Status |
|---|---|
| NSIS install | OK |
Engine bundle (engine\server.py) |
OK |
Manual /health, /chat SSE |
OK |
/update — agents current |
OK |
| Portability tests | 41/42 pass |
This issue is supervisor / first-run / release gap — not engine HTTP code.
Related
| Item | Link |
|---|---|
| Parent | #4441 |
| Fixes merged | #4448, #4515 |
| Windows adoption | #4499 |
| Silent exit / AppData | #4440 — PAI-DESK-006 |
| Version metadata | #4442 — PAI-DESK-004 |
| Release | v4.7.3 |
Labels (suggested)
bug, desktop, windows, engine, regression, first-run, ux
Filing note
Attach screenshot of setup needed + Settings needs the engine modal when filing. Paste PowerShell evidence table from 2026-08-28 post-close re-test section.
Source: MervinPraison/PraisonAI