Restart via systemctl when running as a service, set SPROUTCLAW_CODING_AGENT_DIR for the RPC subprocess, and add a frontend poll timeout for failed restarts. Co-authored-by: Cursor <cursoragent@cursor.com>
13 lines
449 B
Batchfile
13 lines
449 B
Batchfile
@echo off
|
|
rem ---- Config (edit if your sproutclaw path differs) ----
|
|
set SPROUTCLAW_DIR=D:\SmyProjects\AI\sproutclaw
|
|
set BACKEND_PORT=19133
|
|
rem -------------------------------------------------------
|
|
|
|
cd /d "%~dp0backend"
|
|
echo Starting Go backend on port %BACKEND_PORT%...
|
|
go run ./cmd/server --port %BACKEND_PORT% --agent-dir "%SPROUTCLAW_DIR%\.sproutclaw\agent" --pi-cmd "node %SPROUTCLAW_DIR%\packages\coding-agent\src\cli.ts"
|
|
|
|
echo.
|
|
pause >nul
|