From ef8d3b8eff246e759f92485b4f6e6e203ae4b407 Mon Sep 17 00:00:00 2001 From: Eden Zimbelman Date: Fri, 21 Aug 2026 15:06:07 -0700 Subject: [PATCH 1/3] feat(web-api): add session_status to chat.stopStream arguments chat.stopStream accepts an optional session_status to set the agent session's lifecycle status when the stream is stopped (defaults to active). Flows through the chatStream().stop() helper automatically. Co-Authored-By: Claude --- packages/web-api/src/types/request/chat.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/packages/web-api/src/types/request/chat.ts b/packages/web-api/src/types/request/chat.ts index 3a3d10462..a919f3e61 100644 --- a/packages/web-api/src/types/request/chat.ts +++ b/packages/web-api/src/types/request/chat.ts @@ -289,6 +289,11 @@ export type ChatStopStreamArguments = TokenOverridable & * Block formatted elements will be appended to the end of the message. */ blocks?: (KnownBlock | Block)[]; + /** + * @description The agent session lifecycle status to set after stopping the stream. Defaults to `active`. + * Acceptable values: `active`, `processing`, `suspended`, `closed`. + */ + session_status?: string; }; export interface SourceAndUnfurlID { From 21bc39c96520bdc203cbcdf5abe6268e8b0edcd2 Mon Sep 17 00:00:00 2001 From: Eden Zimbelman Date: Fri, 21 Aug 2026 15:14:27 -0700 Subject: [PATCH 2/3] docs(web-api): simplify session_status description Match the canonical wording: "The session status to set after stopping the stream. Defaults to active." Co-Authored-By: Claude --- packages/web-api/src/types/request/chat.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/packages/web-api/src/types/request/chat.ts b/packages/web-api/src/types/request/chat.ts index a919f3e61..265eee47c 100644 --- a/packages/web-api/src/types/request/chat.ts +++ b/packages/web-api/src/types/request/chat.ts @@ -290,8 +290,7 @@ export type ChatStopStreamArguments = TokenOverridable & */ blocks?: (KnownBlock | Block)[]; /** - * @description The agent session lifecycle status to set after stopping the stream. Defaults to `active`. - * Acceptable values: `active`, `processing`, `suspended`, `closed`. + * @description The session status to set after stopping the stream. Defaults to `active`. */ session_status?: string; }; From 1e342d8e5569b2185f49376cd6e24c4037a34d2b Mon Sep 17 00:00:00 2001 From: Eden Zimbelman Date: Fri, 21 Aug 2026 17:24:05 -0700 Subject: [PATCH 3/3] docs(web-api): add changeset for chat.stopStream session_status Co-Authored-By: Claude --- .changeset/chat-stopstream-session-status.md | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 .changeset/chat-stopstream-session-status.md diff --git a/.changeset/chat-stopstream-session-status.md b/.changeset/chat-stopstream-session-status.md new file mode 100644 index 000000000..c54f22d55 --- /dev/null +++ b/.changeset/chat-stopstream-session-status.md @@ -0,0 +1,5 @@ +--- +"@slack/web-api": minor +--- + +feat(web-api): add `session_status` to [`chat.stopStream`](https://docs.slack.dev/reference/methods/chat.stopStream) arguments