Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can an assistant thinking state be canceled? #2417

Open
GxDesign opened this issue Feb 4, 2025 · 3 comments
Open

Can an assistant thinking state be canceled? #2417

GxDesign opened this issue Feb 4, 2025 · 3 comments
Labels
needs info An issue that is claimed to be a bug and hasn't been reproduced, or otherwise needs more info question M-T: User needs support to use the project

Comments

@GxDesign
Copy link

GxDesign commented Feb 4, 2025

@slack/bolt version:

4.2.0

Your App and Receiver Configuration

  const slackApp = new bolt.App({
    receiver: new bolt.ExpressReceiver({...}),
  });

  slackApp.assistant(new Assistant(...))

Node.js runtime version

v20.18.0

Question

When the assistant receives a message in userMessage, a loading state is shown in Slack. However, my app forwards the message to a service that will post asynchronously. I think the best UX is to always respond even after a delay, but I wanted to confirm whether the loading state could be canceled?

@seratch seratch added question M-T: User needs support to use the project needs info An issue that is claimed to be a bug and hasn't been reproduced, or otherwise needs more info and removed untriaged labels Feb 5, 2025
@seratch
Copy link
Member

seratch commented Feb 5, 2025

Hi @GxDesign, thanks for writing in. I might not yet fully understand what your question is, but calling setStatus("") can delete typing indicator in the assistant DM thread UI. If this is not an answer to your question, please share more details such as code examples, screenshots to help us better understand what you're trying to do.

@GxDesign
Copy link
Author

GxDesign commented Feb 6, 2025

Thanks for the reply, I was referring to the loading skeleton thats displayed. I saw that setStatus changes the text below the skeleton but havent yet tried whether the above cancels the skeleton as well.

@GxDesign
Copy link
Author

GxDesign commented Feb 6, 2025

My use case is that we are forwarding messages to an LLM service. We will not get an immediate response and the async responses will often not be within 3 seconds. We've exposed an endpoint from our slack integration service for the LLM to respond to when its done processing. Can we acknowledge from the userMessage handler without actually sending a message?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs info An issue that is claimed to be a bug and hasn't been reproduced, or otherwise needs more info question M-T: User needs support to use the project
Projects
None yet
Development

No branches or pull requests

2 participants