Skip to content

Dashboard post links a Slack root Actor to the poster's User #3065

Closed

Description

@sentry-junior

When a person posts from the dashboard into a Slack-located Conversation, Junior can link the root Actor's Slack Identity to the poster's User. It happens when Slack returned no email for the Slack user who started the thread. After that, the poster gets that person's Conversations in their feed, and that person's Slack photo and handle on their profile. That person's Turns also count for the poster.

Root cause (high confidence, from code and telemetry; DB rows not inspected)

  1. The dashboard post calls recordActivity with the web Actor (web-input.ts#L257).
  2. mergeActor keeps the stored Slack subject and adds the web Actor's email, because the stored Actor has none. It refuses only when both sides have different Slack ids.
  3. Each Conversation write saves the root Actor's Identity again (store.ts#L814), even though actor_identity_id is set once (#L872). For an existing row only the side effects remain.
  4. The Slack Identity key marks any Actor email as verified (actor.ts#L50). So the upsert links the Slack Identity to the poster's User (sql.ts#L100-L124).
  5. Since ref(conversations): Replace the Conversation Owner with Participants #3021, linking adds the User as a Participant of every root that the Identity started (recordStartedConversationParticipants).

#3045 made this path common: any signed-in person can now post in a public Slack thread from the dashboard.

Symptoms

  • Feed: the poster sees unrelated public Conversations.
  • Photo: the dashboard picks the most recently updated Slack photo of the User (avatar.ts#L118-L124), so it changes between the two people.
  • Profile handle: MAX of the Slack handles (shared.ts#L164).
  • Review items from the other person's Turns default to the poster (defaultAssignees).

Reproduction

  1. A Slack user for whom Slack returns no profile email starts a public Slack thread with Junior.
  2. A different person, signed in to the dashboard, posts in that Conversation.
  3. The Slack Identity of the thread starter now has the poster's user_id and verified email.

Unknowns

  • How many Users are affected in production. Signal: a User with more than one Slack Identity in the same provider_tenant_id. Slack emails are unique within a workspace, so this happens only through this bug.
  • Whether recordExecution (store.ts#L558) can reach the same merge with a web Actor.

The data repair falls under the dry-run and migration steps of #2439. Related: #2439, #3021, #3045.

via @szokeasaurusrex.

--

View Session in Sentry

Activity

  1. added a commit that references this issue on Nov 11, 2026
    070d824
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions