: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(mcp-hint): show PostHog Code logo and always close on X (#67478)
Rafael Audibert78b03fe2e07c
diff --git a/frontend/src/lib/components/MCPHint/AgentBadgeRotator.tsx b/frontend/src/lib/components/MCPHint/AgentBadgeRotator.tsxindex fd18dbb392cf..fadaed630c9a 100644--- a/frontend/src/lib/components/MCPHint/AgentBadgeRotator.tsx+++ b/frontend/src/lib/components/MCPHint/AgentBadgeRotator.tsx@@ -22,7 +22,7 @@ interface BadgeAgent {const POSTHOG_CODE_URL = 'https://posthog.com/code'const POSTHOG_SLACK_URL = 'https://posthog.com/slack'-const POSTHOG_CODE_LOGO = <IconLogomark className="size-4 shrink-0 text-white" />+const POSTHOG_CODE_LOGO = <IconLogomark className="size-4 shrink-0 text-black dark:text-white" />const POSTHOG_SLACK_LOGO = <IconSlack className="size-4 shrink-0" />// Show PostHog Code + Slack more often to increase engagementdiff --git a/frontend/src/lib/components/MCPHint/mcpHintLogic.tsx b/frontend/src/lib/components/MCPHint/mcpHintLogic.tsxindex 140ed8646137..b44759930f6b 100644--- a/frontend/src/lib/components/MCPHint/mcpHintLogic.tsx+++ b/frontend/src/lib/components/MCPHint/mcpHintLogic.tsx@@ -131,14 +131,15 @@ export const mcpHintLogic = kea<mcpHintLogicType>([icon: false,// Clicking the X is the only way to permanently hide this surface — auto-dismiss// (timeout) shouldn't count, so we wire dismissSurface here, not in onClose.+ // Close first so the toast always dismisses, independent of the bookkeeping action.closeButton: ({ closeToast }) => (<LemonButtontype="tertiary"size="small"icon={<IconX />}onClick={(e) => {- actions.dismissSurface(surfaceKey)closeToast(e)+ actions.dismissSurface(surfaceKey)}}data-attr="mcp-hint-close"/>