: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(slack_app): stop reading model switch requests as overrides (#107021)
posthog[bot]7bbcd43e4104
diff --git a/posthog/temporal/ai/slack_app/activities/prompts/model_override.md.j2 b/posthog/temporal/ai/slack_app/activities/prompts/model_override.md.j2index fc0ea4464626..d3ed9ebc59d7 100644--- a/posthog/temporal/ai/slack_app/activities/prompts/model_override.md.j2+++ b/posthog/temporal/ai/slack_app/activities/prompts/model_override.md.j2@@ -15,6 +15,7 @@ Once — and only once — you have decided the message is such an instruction,Answer with nulls when a model or effort is merely part of the subject matter — this is the common mistake, so check for it:- "add claude-fable-5 to our model picker" (a code change that names a model).+ - "move the summary agents over to sonnet" (a code change that switches something else onto a model, not this task).- "why is gpt-5 slower than opus in our evals?" (a question about models).- "the opus rollout broke the dashboard" (a topic).- "reasoning about this is hard" (the word, not a setting).diff --git a/posthog/temporal/tests/ai/slack_app/activities/__snapshots__/test_classify_slack_app_model_override.ambr b/posthog/temporal/tests/ai/slack_app/activities/__snapshots__/test_classify_slack_app_model_override.ambrindex a8e0f4a970c6..e8f6e167ada8 100644--- a/posthog/temporal/tests/ai/slack_app/activities/__snapshots__/test_classify_slack_app_model_override.ambr+++ b/posthog/temporal/tests/ai/slack_app/activities/__snapshots__/test_classify_slack_app_model_override.ambr@@ -22,6 +22,7 @@Answer with nulls when a model or effort is merely part of the subject matter — this is the common mistake, so check for it:- "add claude-fable-5 to our model picker" (a code change that names a model).+ - "move the summary agents over to sonnet" (a code change that switches something else onto a model, not this task).- "why is gpt-5 slower than opus in our evals?" (a question about models).- "the opus rollout broke the dashboard" (a topic).- "reasoning about this is hard" (the word, not a setting).diff --git a/products/slack_app/evals/eval_model_classifier.py b/products/slack_app/evals/eval_model_classifier.pyindex 9bdbdd9bfde2..c2459bc843c7 100644--- a/products/slack_app/evals/eval_model_classifier.py+++ b/products/slack_app/evals/eval_model_classifier.py@@ -179,6 +179,13 @@ SUBJECT_MATTER_CASES = [prompt="@PostHog add gpt-5.6-luna to the model picker in settings, it's missing from the dropdown",expected=_asks(),),+ # "Switch X to model Y" reads like an instruction, but X is the code under change, not+ # this task.+ BaseEvalCase(+ name="switches_component_to_model",+ prompt="@PostHog switch the triage and digest agents to opus 5, they still run on haiku",+ expected=_asks(),+ ),BaseEvalCase(name="question_comparing_models",prompt="@PostHog why is opus 5 slower than sonnet 5 on our eval suite? dig into the traces",