Skip to content

feat: make thread_ts optional for assistant.threads.setSuggestedPrompts - #1901

Merged
zimeg merged 1 commit into
mainfrom
feat/set-suggested-prompts-optional-thread-ts
Jun 29, 2026
Merged

feat: make thread_ts optional for assistant.threads.setSuggestedPrompts#1901
zimeg merged 1 commit into
mainfrom
feat/set-suggested-prompts-optional-thread-ts

Conversation

@zimeg

@zimegzimeg commented Jun 29, 2026

Copy link
Copy Markdown
Member

Summary

This pull request makes the thread_ts argument of assistant.threads.setSuggestedPrompts optional.

Testing

Confirm this no longer raises for a missing thread_ts:

app.client.assistant_threads_setSuggestedPrompts(
channel_id="C0123456789",
prompts=[],
)

Category

  • slack_sdk.web.WebClient (sync/async) (Web API client)

Requirements

  • I've read and understood the Contributing Guidelines and have done my best effort to follow them.
  • I've read and agree to the Code of Conduct.
  • I've run python3 -m venv .venv && source .venv/bin/activate && ./scripts/run_validation.sh after making the changes.

The thread_ts argument is no longer required by the API. In the Messages
tab agent experience, suggested prompts live at the top of the Messages
tab rather than within a thread, so a thread_ts is not needed.
Defaults thread_ts to None across the sync, async, and legacy WebClient
and only sends it when provided.
@codecov

codecovBot commented Jun 29, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 84.14%. Comparing base (e23b181) to head (5df6dae).
✅ All tests successful. No failed tests found.

Additional details and impacted files
@@ Coverage Diff @@## main #1901 +/- ##
=======================================
Coverage 84.14% 84.14% =======================================
Files 117 117 Lines 13356 13362 +6 =======================================
+ Hits 11238 11244 +6 
Misses 2118 2118 

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

@zimegzimeg added enhancement M-T: A feature request for new functionality semver:minor web-client labels Jun 29, 2026
@zimegzimeg self-assigned this Jun 29, 2026
@zimegzimeg added this to the 3.43.0 milestone Jun 29, 2026
@zimeg
zimeg marked this pull request as ready for review June 29, 2026 22:58
@zimeg
zimeg requested a review from a team as a code ownerJune 29, 2026 22:58

@mwbrooksmwbrooks left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ Thank you @zimeg! 🙇🏻

@zimeg

Copy link
Copy Markdown
MemberAuthor

@mwbrooks I share appreciation to your reviews 💌 So let's get this merged for testing continued!

@zimeg
zimeg merged commit 0ffc13f into mainJun 29, 2026
18 checks passed
@zimeg
zimeg deleted the feat/set-suggested-prompts-optional-thread-ts branch June 29, 2026 23:21
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancementM-T: A feature request for new functionalitysemver:minorweb-client

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

@zimeg@mwbrooks