fix(slack-search): repair execution, OAuth, and onboarding - #7666
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub. |
Greptile SummaryThis PR repairs Slack Search execution and setup behavior.
Confidence Score: 5/5The PR appears safe to merge, with no outstanding correctness, security, or repository-rule violations identified. The existing-app manifest workflow now provides the missing configuration-copy action, and the previously reported OAuth deadline race is guarded by popup identity checks. All previous threads are resolved, including the import-order finding that Greptile conceded as incorrect.
|
| Filename | Overview |
|---|---|
| apps/sim/components/integrations/slack-search-setup-wizard.tsx | Restores copying and applying generated configuration when updating an existing Slack app. |
| apps/sim/ee/credential-groups/components/slack-managed-users-modal.tsx | Replaces unreliable popup-closure polling with deadline-based OAuth state handling and stale-attempt guards. |
| apps/sim/lib/knowledge/application/slack-search/onboarding.ts | Delivers source setup privately before posting a guarded thread acknowledgment. |
| apps/sim/lib/slack-search/queue.ts | Forces Slack Search jobs through the database-backed inline application runner. |
| apps/sim/lib/slack-search/manifest.ts | Adds the Agent View app-home event subscription to generated Slack manifests. |
Sequence Diagram
sequenceDiagram
participant U as Slack user
participant S as Slack ingress
participant Q as Inline queue
participant W as Slack Search worker
participant API as Slack API
U->>S: Search question
S->>Q: Enqueue durable turn
Q->>W: Run in app process
W->>W: Check installation and lease
alt Sources available
W->>API: Deliver search response
else Sources unavailable
W->>API: Post ephemeral setup prompt to user
W->>W: Recheck lease, authorization, cancellation
W->>API: Post acknowledgment in question thread
end
Reviews (6): Last reviewed commit: "fix(slack-search): preserve existing app..." | Re-trigger Greptile
|
@greptile-apps please review the latest changes. |
|
@cubic-dev-ai review this PR |
@TheodoreSpeaks I have started the AI code review. It will take a few minutes to complete. |
|
@greptile-apps please review the latest changes. The OAuth deadline now checks attempt identity; the import-order thread includes evidence from the repository formatter. |
|
@cubic-dev-ai review this PR |
@TheodoreSpeaks I have started the AI code review. It will take a few minutes to complete. |
|
@greptile-apps please review the latest revision. The only change since ce354d0 is removal of the Slack Search README. |
|
@cubic-dev-ai review this PR |
@TheodoreSpeaks I have started the AI code review. It will take a few minutes to complete. |
|
@cubic-dev-ai review this PR |
@TheodoreSpeaks I have started the AI code review. It will take a few minutes to complete. |
|
@cubic-dev-ai review this PR |
@TheodoreSpeaks I have started the AI code review. It will take a few minutes to complete. |
Summary
app_home_openedsubscription; opening the app does not start a Search turn.chat.postEphemeral, targeting the requesting Slack user in their DM. After successful delivery, post a plain reply in the question thread explaining that no sources are available and pointing to the private setup prompt. Recheck the installation, worker lease, and cancellation before the thread reply; fail without replaying either message if delivery fails.Type of Change
Testing
Checklist