: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(signals): default inbox deep link to posthog-code scheme (#60649)
Joshua Snydereb8a6ec0ad7c
diff --git a/products/signals/backend/slack_inbox_notifications.py b/products/signals/backend/slack_inbox_notifications.pyindex 675362d2c63c..674f656d7ab3 100644--- a/products/signals/backend/slack_inbox_notifications.py+++ b/products/signals/backend/slack_inbox_notifications.py@@ -47,8 +47,8 @@ logger = logging.getLogger(__name__)_SUMMARY_EXCERPT_MAX_LEN = 600_SLACK_HEADER_MAX_LEN = 150-# Deep link opened by the PostHog Code desktop app. Override via env for prod (`posthog-code`).-POSTHOG_CODE_INBOX_DEEP_LINK_SCHEME = getattr(settings, "POSTHOG_CODE_INBOX_DEEP_LINK_SCHEME", "posthog-code-dev")+# Deep link opened by the PostHog Code desktop app. Override via env for dev (`posthog-code-dev`).+POSTHOG_CODE_INBOX_DEEP_LINK_SCHEME = getattr(settings, "POSTHOG_CODE_INBOX_DEEP_LINK_SCHEME", "posthog-code")# Priority ranking — lower index is higher priority. Index used for threshold comparison._PRIORITY_ORDER: tuple[str, ...] = (diff --git a/products/signals/backend/test/test_slack_inbox_notifications.py b/products/signals/backend/test/test_slack_inbox_notifications.pyindex 39bc9df0082b..a526157b59bd 100644--- a/products/signals/backend/test/test_slack_inbox_notifications.py+++ b/products/signals/backend/test/test_slack_inbox_notifications.py@@ -89,7 +89,7 @@ def test_build_message_blocks_includes_recipient_and_posthog_code_button() -> Noassert "Inbox" in context_textbutton = blocks[3]["elements"][0]assert button["text"]["text"] == "Open in PostHog Code"- assert button["url"] == "posthog-code-dev://inbox/report-uuid"+ assert button["url"] == "posthog-code://inbox/report-uuid"assert text == "Inbox for Marcus Twix (P1): Checkout errors spiked"@@ -285,7 +285,7 @@ def test_dispatch_sends_to_configured_reviewer(org_and_team):assert "Inbox for Reviewer Bot (P1)" in call_kwargs["text"]blocks = call_kwargs["blocks"]assert blocks[0]["text"]["text"] == "Inbox for <@U_REVIEWER> · P1"- assert blocks[3]["elements"][0]["url"] == f"posthog-code-dev://inbox/{report.id}"+ assert blocks[3]["elements"][0]["url"] == f"posthog-code://inbox/{report.id}"@pytest.mark.django_db