feat: warm-pool ACP sessions and stage TTFT timings
Pre-bootstrap two cursor-agent processes so createSession skips spawn/initialize on the hot path, open SSE before session setup, and log per-stage durations for first-token diagnosis.
This commit is contained in:
+2
-1
@@ -20,5 +20,6 @@ fi
|
||||
# agent child processes.
|
||||
chmod 1777 /tmp 2>/dev/null || true
|
||||
|
||||
# The HTTP server. Sessions spawn cursor-agent ACP subprocesses per request.
|
||||
# The HTTP server. A warm pool keeps bootstrapped ACP processes ready;
|
||||
# each request still opens session/new with request-specific MCP tools.
|
||||
exec node /app/src/server.mjs
|
||||
|
||||
Reference in New Issue
Block a user