Skip to content

"Vibe-Trading: Your Personal Trading Agent"

Fix Windows installer runtime packaging flow

Copilot Appeff4bfc37e79
diff --git a/desktop/electron/README.md b/desktop/electron/README.md
index f0aace5fd..aa887757b 100644
--- a/desktop/electron/README.md
+++ b/desktop/electron/README.md
@@ -58,6 +58,7 @@ npm run build
cd ..\desktop\electron
npm ci
+npm run runtime:win -- -Clean
npm run prepare:electron
npm start
```
@@ -68,6 +69,10 @@ the source lifecycle tests. The packaging command additionally requires a
current `7z.exe`; it treats the pinned GTK NSIS asset as an archive and never
executes its legacy self-extractor.
+The installer command builds the isolated Python backend before Electron
+packaging. It produces an unsigned local review installer and does not publish
+or auto-update anything.
+
The Windows lifecycle suite used by CI can be run from the same directory:
```powershell
diff --git a/desktop/electron/WINDOWS_PACKAGING.md b/desktop/electron/WINDOWS_PACKAGING.md
index 96b01af7f..5b3709c68 100644
--- a/desktop/electron/WINDOWS_PACKAGING.md
+++ b/desktop/electron/WINDOWS_PACKAGING.md
@@ -44,6 +44,9 @@ npm run smoke:lifecycle
npm run installer:win:review
```
+`installer:win:review` also runs the backend runtime build automatically, so
+running `npm run runtime:win` separately is optional when using that command.
+
The installer and checksum are written under `desktop/electron/release/`.
The `installer:win:review` artifact is deliberately unsigned and must never be
published to users. The command strips all supported signing credentials,
diff --git a/desktop/electron/package.json b/desktop/electron/package.json
index c41b64167..d32ab3069 100644
--- a/desktop/electron/package.json
+++ b/desktop/electron/package.json
@@ -19,7 +19,7 @@
"smoke:credentials": "npm run build && npm run prepare:electron && electron scripts/smoke-credentials.cjs",
"smoke:lifecycle": "npm run build && npm run prepare:electron && node scripts/test-packaging-preparation.mjs && node scripts/test-locales.mjs && node scripts/test-backend-resolution.mjs && node scripts/smoke-lifecycle.mjs && node scripts/smoke-parent-death.mjs",
"pack:win": "npm run build && npm run prepare:electron && electron-builder --publish never --win dir",
- "installer:win:review": "npm run build && npm run prepare:electron && node scripts/build-review-installer.mjs",
+ "installer:win:review": "npm run runtime:win -- -Clean && npm run build && npm run prepare:electron && node scripts/build-review-installer.mjs",
"installer:win:signed": "node scripts/build-signed-installer.mjs",
"sbom": "npm sbom --sbom-format cyclonedx"
},
@@ -48,6 +48,7 @@
"directories": {
"output": "release"
},
+ "publish": null,
"files": [
"dist/**/*",
"package.json"
diff --git a/pixel-office/office_state.json b/pixel-office/office_state.json
index 9060da5a1..3143ae7f7 100644
--- a/pixel-office/office_state.json
+++ b/pixel-office/office_state.json
@@ -6,13 +6,9 @@
"id": "research-analyst",
"name": "Research Analyst",
"role": "research",
- "status": "busy",
- "load": 1,
- "specialities": [
- "macro",
- "crypto",
- "risk"
- ],
+ "status": "idle",
+ "load": 0,
+ "specialities": ["macro", "equity", "crypto", "news"],
"office": "trading-floor"
},
{
@@ -21,12 +17,8 @@
"role": "risk",
"status": "idle",
"load": 0,
- "specialities": [
- "risk",
- "drawdown",
- "execution"
- ],
- "office": "trading-floor"
+ "specialities": ["risk", "drawdown", "execution"],
+ "office": "trade-ops"
},
{
"id": "execution-agent",
@@ -34,40 +26,9 @@
"role": "execution",
"status": "idle",
"load": 0,
- "specialities": [
- "broker",
- "orders",
- "routing"
- ],
- "office": "trading-floor"
+ "specialities": ["broker", "orders", "routing"],
+ "office": "live-trading"
}
],
- "tasks": [
- {
- "id": "task-001",
- "title": "Research BTC",
- "description": "BTC thesis and risk review",
- "workstream": "research",
- "priority": "high",
- "owner": "ops",
- "status": "assigned",
- "assigned_to": "research-analyst",
- "created_at": "2026-09-22T11:56:19Z",
- "updated_at": "2026-09-22T11:59:00Z",
- "result": ""
- },
- {
- "id": "task-001",
- "title": "Research BTC",
- "description": "BTC thesis and risk review",
- "workstream": "research",
- "priority": "high",
- "owner": "ops",
- "status": "queued",
- "assigned_to": null,
- "created_at": "2026-09-22T11:58:51Z",
- "updated_at": "2026-09-22T11:58:51Z",
- "result": ""
- }
- ]
+ "tasks": []
}