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:
Ubuntu
2026-11-06 08:32:36 +00:00
parent c7b0d19bfc
commit 95e6a5f97e
6 changed files with 406 additions and 51 deletions
+2 -1
View File
@@ -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