feat: add session_status to chat.stopStream - #1634
Draft
zimeg wants to merge 1 commit into
Draft
Conversation
Adds the optional session_status argument to chat.stopStream, which sets the agent session's lifecycle status after stopping the stream (defaults to active). Serialized in RequestFormBuilder. Co-Authored-By: Claude <svc-devxp-claude@slack-corp.com>
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #1634 +/- ##
============================================
- Coverage 72.99% 72.99% -0.01%
+ Complexity 4523 4522 -1
============================================
Files 479 479
Lines 14365 14366 +1
Branches 1503 1503
============================================
Hits 10486 10486
- Misses 2989 2990 +1
Partials 890 890
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. |
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.sessionStatus— the session status to set after stopping the stream. Defaults toactive.What's included
sessionStatusfield onChatStopStreamRequestsession_statusform serialization inRequestFormBuilderCategory
Notes
Companion to the agent sessions work (
agents.sessions.*methods #1633). Draft — intended to land in the same release window, timed at/after the argument is published in the public method reference.Requirements
Please read the Contributing guidelines and Code of Conduct before creating this issue or pull request. By submitting, you agree to those rules.