Skip to content

Commit e3f9deb

Browse files
fix(slack): allow empty status to clear the assistant status indicator (#5827)
1 parent e51a867 commit e3f9deb

3 files changed

Lines changed: 5 additions & 4 deletions

File tree

apps/docs/content/docs/en/integrations/slack.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -815,7 +815,7 @@ Set or clear the assistant thread status indicator (the loading shimmer) on a Sl
815815
| `botToken` | string | No | Bot token for Custom Bot |
816816
| `channel` | string | Yes | Channel ID containing the assistant thread \(e.g., C1234567890 or D1234567890\) |
817817
| `threadTs` | string | Yes | Thread timestamp \(thread_ts\) of the assistant thread \(e.g., 1405894322.002768\) |
818-
| `status` | string | Yes | Status text to display, e.g. 'Working on it…'. Pass an empty string to clear. |
818+
| `status` | string | No | Status text to display, e.g. 'Working on it…'. Omit or pass an empty string to clear the status. |
819819
| `loadingMessages` | json | No | Optional list of messages to rotate through as an animated loading indicator \(max 10\). |
820820

821821
#### Output

apps/sim/tools/slack/set_status.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,9 +71,10 @@ export const slackSetStatusTool: ToolConfig<SlackSetStatusParams, SlackSetStatus
7171
},
7272
status: {
7373
type: 'string',
74-
required: true,
74+
required: false,
7575
visibility: 'user-or-llm',
76-
description: "Status text to display, e.g. 'Working on it…'. Pass an empty string to clear.",
76+
description:
77+
"Status text to display, e.g. 'Working on it…'. Omit or pass an empty string to clear the status.",
7778
},
7879
loadingMessages: {
7980
type: 'json',

apps/sim/tools/slack/types.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -794,7 +794,7 @@ export interface SlackGetThreadParams extends SlackBaseParams {
794794
export interface SlackSetStatusParams extends SlackBaseParams {
795795
channel: string
796796
threadTs: string
797-
status: string
797+
status?: string
798798
loadingMessages?: string[]
799799
}
800800

0 commit comments

Comments
 (0)