Skip to content

Always-on Slack search via service account #1400

Description

@sentry-junior

Public Slack search still depends on Slack's short-lived interactive action_token on the bot path. Resumed turns and scheduled runs cannot search the workspace without a fresh mention or DM.

Current behavior

  • slackPublicSearch calls assistant.search.context with the bot token plus an interactive action_token
  • Slack requires that action_token for bot-token RTS calls
  • Without it, the tool stays registered and returns an honest interactive-turn limit
  • Slice 1 of #1385 shipped the rest of the teammate-context path in #1388

Gap

Always-on workspace search is still blocked for resumes, scheduled tasks, and any turn without a fresh interactive token. That is the remaining product gap from #1385.

Proposal

Prefer a shared Slack service-account user token (xoxp-) for always-on public search later, rather than per-user Slack OAuth:

  • Call assistant.search.context with a user token, which does not require action_token (Slack RTS docs)
  • Keep the bot token for normal Slack actions
  • Accept that every search inherits the service account's access
  • Defer per-user Slack user OAuth unless product later needs search-as-requesting-user

Related: #1385, #1388.

Requested by David Cramer.

--

View Junior Session [Sentry]

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