: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(agent): send scout chat runs to the signals gateway product (#84751)
Georgiy Tarasov22c81a3675a7
diff --git a/products/desktop/packages/agent/src/utils/gateway.test.ts b/products/desktop/packages/agent/src/utils/gateway.test.tsindex fcedf4cb8143..994d84c18dac 100644--- a/products/desktop/packages/agent/src/utils/gateway.test.ts+++ b/products/desktop/packages/agent/src/utils/gateway.test.ts@@ -36,6 +36,16 @@ describe("resolveGatewayProduct", () => {originProduct: "signals_scout",expected: "signals",},+ {+ isInternal: false,+ originProduct: "signals_chat",+ expected: "signals",+ },+ {+ isInternal: true,+ originProduct: "signals_chat",+ expected: "signals",+ },{isInternal: false,originProduct: "posthog_ai",diff --git a/products/desktop/packages/agent/src/utils/gateway.ts b/products/desktop/packages/agent/src/utils/gateway.tsindex 984160498f87..e67a48d03ef5 100644--- a/products/desktop/packages/agent/src/utils/gateway.ts+++ b/products/desktop/packages/agent/src/utils/gateway.ts@@ -16,11 +16,15 @@ export function resolveGatewayProduct({isInternal?: boolean;originProduct?: string | null;} = {}): GatewayProduct {+ // Every signals origin belongs here: their tokens are minted under the Signals OAuth+ // application, and no other product authorizes it — an unmapped origin falls through to+ // posthog_code and the gateway rejects the token.const originProductToGatewayProductMap: Record<string, GatewayProduct> = {loop: "posthog_code",onboarding: "onboarding",posthog_ai: "posthog_ai",signal_report: "signals",+ signals_chat: "signals",signals_scout: "signals",slack: "slack_app",support_reply: "conversations",