-
Notifications
You must be signed in to change notification settings - Fork 419
Description
@slack/bolt version
4.4.0
Your App and Receiver Configuration
/** Initialization */
const app = new App({
token: process.env.SLACK_BOT_TOKEN,
appToken: process.env.SLACK_APP_TOKEN,
socketMode: true,
logLevel: LogLevel.DEBUG,
});Node.js runtime version
v20 and v22
Steps to reproduce:
(I will share a repository with a reproducible case later.)
- Create an AI assistant app with
slack create. - Rewrite the
assistant.userMessagehandler so that it only posts a simple message.
userMessage: async ({ message, say }) => {
await say(`message received: ${message.ts} `);
},
- Run the application by
slack run - Open assistant panel (or direct message) with the ai assistant.
- Copy the text below and send it exactly as written.
メンバーに対する上司フィードバックを記入します。一緒に手伝ってください。
2. そのメンバーに対する雑感(メンバーに対して思っていること、評価材料。なるべく多い方が良い)
情報が集まったら、対象メンバーへのフィードバックを新しい順に2つ取得してください。
最新の期間のフィードバックを記入します。一つ前の期間のフィードバックは(あれば)参考情報として使用します。
私のメンバーへの雑感をベースに、取得したフィードバックの情報を補完し、私からメンバーへの上司フィードバックを完成させてください。
<上司フィードバックの出力フォーマット>
## 選択したタイトルを満たしていると思う理由について、具体的な事象を元に記載ください
{メンバーへのフィードバックの内容を文章形式のプレーンテキストで記載する。}
Expected result:
The assistant should receive the assistant.userMessage event exactly once for the message I send.
Actual result:
The assistant receives the assistant.userMessage event over and over in an apparent infinite loop after a single message submission.
The repeats can continue for several hours, and the same event may arrive 5–10 additional times.
Additional context:
The shared text is the minimal message that still reproduces the problem. I confirmed this by trimming the original message one line at a time and observing the behavior.
Even if I rerun slack run while the issue is active, the app keeps receiving past events, which suggests the problem lies in Slack’s backend processing rather than this library.
The events can pause for more than 10 minutes and seem to stop, only to resume 20 minutes later. In some cases they continue for over two hours, so it’s hard to tell whether the stream has finished.
This happens both when running slack run locally in Socket Mode and in production on Amazon ECS via the Events API.
When the problem occurs, the thread title is always stuck on “New Assistant Thread.”.
