Skip to content

feat(web-api): add session_status to chat.stopStream and chat_stream stop() helpers - #1945

Merged
zimeg merged 4 commits into
mainfrom
clack/chat-stopstream-session-status
Aug 27, 2026
Merged

feat(web-api): add session_status to chat.stopStream and chat_stream stop() helpers#1945
zimeg merged 4 commits into
mainfrom
clack/chat-stopstream-session-status

Conversation

@zimeg

@zimeg zimeg commented Aug 21, 2026

Copy link
Copy Markdown
Member

Adds the optional session_status argument to chat.stopStream across 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 via scripts/codegen.py.

  • session_status — the session status to set after stopping the stream. Defaults to active.

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.

@zimeg zimeg added enhancement M-T: A feature request for new functionality semver:minor labels Aug 21, 2026
@zimeg zimeg self-assigned this Aug 21, 2026
@codecov

codecov Bot commented Aug 21, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 84.06%. Comparing base (21f62ba) to head (d6631ce).
✅ All tests successful. No failed tests found.

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.
📢 Have feedback on the report? Share it here.

@zimeg zimeg added this to the 3.44.0 milestone Aug 21, 2026
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
zimeg force-pushed the clack/chat-stopstream-session-status branch from 8c33b55 to 2b046cf Compare August 21, 2026 23:12
zimeg and others added 3 commits August 26, 2026 15:58
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 zimeg changed the title feat(web-api): add session_status to chat.stopStream feat(web-api): add session_status to chat.stopStream and chat_stream stop() helpers Aug 27, 2026
@zimeg
zimeg marked this pull request as ready for review August 27, 2026 00:02
@zimeg
zimeg requested a review from a team as a code owner August 27, 2026 00:02
@zimeg

zimeg commented Aug 27, 2026

Copy link
Copy Markdown
Member Author

🐍 Let's get this merged after CI tests complete! We can include it for next release.

@zimeg
zimeg merged commit 8e60528 into main Aug 27, 2026
18 checks passed
@zimeg
zimeg deleted the clack/chat-stopstream-session-status branch August 27, 2026 00:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement M-T: A feature request for new functionality semver:minor Version: 3x web-client

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant