Skip to content

Feature Request: manual ack option #2788

@int128

Description

@int128

Feature

It would be nice if bolt provides an option to manually send an ack by user.
Currently, bolt automatically sends an ack for the Events API requests.

bolt-js/src/App.ts

Lines 1173 to 1175 in e35ca5c

// Events API requests are acknowledged right away, since there's no data expected
// Except function_executed events since ack can be handled by the user
await ack();

Purpose

I use the socket mode client (@slack/socket-mode) for development in the multiple environments. My client sends an ack only if the message is for the corresponding environment.

For example,

  • For the permanent environment, the client sends an ack if it receives a message without any prefix. e.g., @app Hello
  • For an ephemeral environment, the client sends an ack if it receives a message with the prefix. e.g., [pr-123] @app Hello

In my experience, we should not use this pattern for permanent environments, because it causes a message delay. Slack retries to send a message until any client sends an ack.

I think this pattern is still useful if we want to test the client in an ephemeral environment.

Metadata

Metadata

Assignees

No one assigned

    Labels

    auto-triage-skipPrevent this issue from being closed due to lack of activityenhancementM-T: A feature request for new functionalitysemver:major

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions