Description
Summary
When launching AgenticX Desktop (Electron + Vite dev flow), the app shows an error dialog and fails to start the local backend. The UI loads in the browser at http://localhost:5173, but the desktop shell reports that the agx CLI could not be started.
Error message
- Title (localized): AgenticX Desktop 启动失败
- Body (localized): 无法启动本地服务,请检查 agx 是否可用。
- Technical:
Error: agx serve failed to start
Expected behavior
Either:
- The desktop app should start successfully when following the documented setup, or
- Prerequisites (installing
agx, PATH configuration) should be clearly documented before first run, with a actionable error (e.g. “install agx from …”, “add … to PATH”).
Actual behavior
Startup fails with the above error. Vite reports as ready (http://localhost:5173/), but the Electron side cannot spawn or keep agx serve running.
Steps to reproduce
- Clone the repository and install dependencies under
desktop/ (npm install).
- Start the dev workflow (e.g.
npm run dev or the documented desktop dev command).
- Open the app; observe the error dialog on startup.
Environment
- OS: Windows 10/11 (Git Bash / MINGW64)
- Node / npm: (fill in your versions, e.g.
node -v, npm -v)
- Branch:
main
agx: (e.g. agx --version or “not installed / not on PATH”)
Additional context
- The Electron main process appears to run something equivalent to:
agx serve --host 127.0.0.1 --port <port>.
- If
agx is missing from PATH in the environment Electron inherits, or the binary is not installed, startup will fail with this message.
Suggestions (optional)
- Document how to install
agx and verify agx is on PATH for GUI-launched processes on Windows.
- Consider detecting missing
agx early and surfacing stderr from the spawn attempt in the dialog or logs.
- Optionally support a configurable path to the
agx executable for dev setups.

Description
Summary
When launching AgenticX Desktop (Electron + Vite dev flow), the app shows an error dialog and fails to start the local backend. The UI loads in the browser at
http://localhost:5173, but the desktop shell reports that theagxCLI could not be started.Error message
Error: agx serve failed to startExpected behavior
Either:
agx, PATH configuration) should be clearly documented before first run, with a actionable error (e.g. “install agx from …”, “add … to PATH”).Actual behavior
Startup fails with the above error. Vite reports as ready (
http://localhost:5173/), but the Electron side cannot spawn or keepagx serverunning.Steps to reproduce
desktop/(npm install).npm run devor the documented desktop dev command).Environment
node -v,npm -v)mainagx: (e.g.agx --versionor “not installed / not on PATH”)Additional context
agx serve --host 127.0.0.1 --port <port>.agxis missing from PATH in the environment Electron inherits, or the binary is not installed, startup will fail with this message.Suggestions (optional)
agxand verifyagxis on PATH for GUI-launched processes on Windows.agxearly and surfacing stderr from the spawn attempt in the dialog or logs.agxexecutable for dev setups.