Skip to content

: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.

fix(slack): keep assistant chat available during runs (#84885)

Pawel Cebulaa41384bc9907
diff --git a/products/slack_app/backend/api.py b/products/slack_app/backend/api.py
index 64d066ea503c..898cd2862c3e 100644
--- a/products/slack_app/backend/api.py
+++ b/products/slack_app/backend/api.py
@@ -1725,11 +1725,6 @@ def _handle_assistant_dm_message(
_notify_missing_slack_scopes(slack, event, missing)
return ROUTE_HANDLED_LOCALLY
- try:
- slack.client.assistant_threads_setStatus(channel_id=channel_id, thread_ts=thread_ts, status="Working on it…")
- except Exception:
- logger.warning("assistant_set_status_failed", exc_info=True)
-
# Carry the channel the user was viewing (from assistant_thread_context_changed) so the agent
# can ground a "look into this" DM in that channel's context.
viewed = _get_assistant_channel_context(integration.id, channel_id, thread_ts)
diff --git a/products/slack_app/backend/tests/test_posthog_code_event_handler.py b/products/slack_app/backend/tests/test_posthog_code_event_handler.py
index 6414589201df..c82b858faeb9 100644
--- a/products/slack_app/backend/tests/test_posthog_code_event_handler.py
+++ b/products/slack_app/backend/tests/test_posthog_code_event_handler.py
@@ -1511,7 +1511,7 @@ class TestAssistantEvents(TestCase):
"ts": "111.222",
}
)
- slack_cls.return_value.client.assistant_threads_setStatus.assert_called_once()
+ slack_cls.return_value.client.assistant_threads_setStatus.assert_not_called()
mock_start.assert_called_once()
def test_dm_message_ignores_bot_and_non_im(self):