feat(web-api): add session_status to chat.stopStream and chat_stream stop() helpers - #1945
Merged
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #1945 +/- ##
=======================================
Coverage 84.06% 84.06%
=======================================
Files 118 118
Lines 13506 13506
=======================================
Hits 11354 11354
Misses 2152 2152 ☔ View full report in Codecov by Harness. |
Adds the optional session_status argument to chat.stopStream (sync, async, legacy), which sets the agent session's lifecycle status after stopping the stream (defaults to active). Co-Authored-By: Claude <svc-devxp-claude@slack-corp.com>
zimeg
force-pushed
the
clack/chat-stopstream-session-status
branch
from
August 21, 2026 23:12
8c33b55 to
2b046cf
Compare
Forward the session_status arg added to chat.stopStream through the sync and async chat_stream stop() convenience helpers, with docstring entries and forwarding assertions in the helper tests. Co-Authored-By: Claude <svc-devxp-claude@slack-corp.com>
…helpers Match the wording java (#1634) and node (#2708) carry for the arg: "The session status to set after stopping the stream." Co-Authored-By: Claude <svc-devxp-claude@slack-corp.com>
zimeg
marked this pull request as ready for review
August 27, 2026 00:02
Member
Author
|
🐍 Let's get this merged after CI tests complete! We can include it for next release. |
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.stopStreamacross the sync, async, and legacy web clients. When stopping a stream, an app can set the agent session's lifecycle status in the same call. Async + legacy generated viascripts/codegen.py.session_status— the session status to set after stopping the stream. Defaults toactive.Companion to the agent sessions work (
agents.sessions.*methods #1942). Draft — intended to land in the same release window, timed at/after the argument is published in the public method reference.