feat(web-api): add session_status to chat.stopStream arguments - #2708
Draft
zimeg wants to merge 3 commits into
Draft
feat(web-api): add session_status to chat.stopStream arguments#2708zimeg wants to merge 3 commits into
zimeg wants to merge 3 commits into
Conversation
🦋 Changeset detectedLatest commit: 1e342d8 The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #2708 +/- ##
=======================================
Coverage 89.15% 89.15%
=======================================
Files 65 65
Lines 10383 10383
Branches 473 473
=======================================
Hits 9257 9257
Misses 1095 1095
Partials 31 31
Flags with carried forward coverage won't be shown. Click here to find out more. 🚀 New features to boost your workflow:
|
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 <svc-devxp-claude@slack-corp.com>
Match the canonical wording: "The session status to set after stopping the stream. Defaults to active." Co-Authored-By: Claude <svc-devxp-claude@slack-corp.com>
Co-Authored-By: Claude <svc-devxp-claude@slack-corp.com>
zimeg
force-pushed
the
clack/chat-stopstream-session-status
branch
from
August 22, 2026 00:24
716ff9c to
1e342d8
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds the optional
session_statusargument tochat.stopStream. When stopping a stream, an app can set the agent session's lifecycle status in the same call instead of a separateagents.sessions.setStatus.session_status?: string— the agent session lifecycle status to set after stopping the stream; defaults toactive. Acceptable values:active,processing,suspended,closed(the shared agent-session status enum).Because
stop()on thechatStream()helper is typed byChatStopStreamArguments, this makessession_statustype-safe viastreamer.stop({ session_status })as well as a directclient.chat.stopStream(...)call.Verified
tsc --noEmit— cleancheck— cleanstreamer.stop({ session_status })sets the session status on stop as expected.Notes
Companion to the agent sessions work (
agents.sessions.*methods #2703, events #2707). Draft — intended to land in the same release window, timed at/after the argument is published in the public method reference. Java + Python equivalents to follow.🤖 Generated with Claude Code