:hedgehog: PostHog is the leading platform for building self-driving products. Our developer tools – AI observability, analytics, session replay, flags, experiments, error tracking, logs, and more – capture all the context agents need to diagnose problems, uncover opportunities, and ship fixes. Steer it all from Slack, web, desktop, or the MCP.
Python ab-testingai-analyticsanalyticscdpdata-warehouseexperimentsfeature-flagsjavascriptproduct-analyticspythonreactsession-replaysurveystypescriptweb-analytics
fix(desktop): let signed commits finish before MCP timeout (#83053)
Shy Alter38023cf88f4e
diff --git a/products/desktop/packages/agent/src/pi/rpc-client.test.ts b/products/desktop/packages/agent/src/pi/rpc-client.test.tsindex cd3081b58542..901b8eefac5a 100644--- a/products/desktop/packages/agent/src/pi/rpc-client.test.ts+++ b/products/desktop/packages/agent/src/pi/rpc-client.test.ts@@ -56,6 +56,7 @@ describe("createRuntimeMcpServers", () => {env: { POSTHOG_LOCAL_TOOLS_ENABLED: "finish" },transport: "stdio",lifecycle: "eager",+ requestTimeoutMs: 300_000,directTools: true,},});diff --git a/products/desktop/packages/agent/src/pi/rpc-client.ts b/products/desktop/packages/agent/src/pi/rpc-client.tsindex 0e74dfd5ec0d..6d33fccfc2d9 100644--- a/products/desktop/packages/agent/src/pi/rpc-client.ts+++ b/products/desktop/packages/agent/src/pi/rpc-client.ts@@ -82,6 +82,10 @@ export interface PiStdioMcpServer {env?: Array<{ name: string; value: string }>;}+// Signed git may use three 30-second GitHub attempts before reporting task activity.+// The client deadline must not report failure while the MCP child continues the push.+const LOCAL_STDIO_MCP_REQUEST_TIMEOUT_MS = 5 * 60_000;+export function createRuntimeMcpServers(servers: McpServerConnection[],): PiRuntimeMcpServers {@@ -119,6 +123,7 @@ export function createRuntimeMcpStdioServers(),transport: "stdio" as const,lifecycle: "eager" as const,+ requestTimeoutMs: LOCAL_STDIO_MCP_REQUEST_TIMEOUT_MS,directTools: true,},]),