Skip to content

Comments

Fix: allows Assistant say function to properly pass metadata#2569

Merged
WilliamBergamin merged 3 commits intoslackapi:mainfrom
jamessimone:fix/assistant-create-say-with-supplemental-context
Jun 18, 2025
Merged

Fix: allows Assistant say function to properly pass metadata#2569
WilliamBergamin merged 3 commits intoslackapi:mainfrom
jamessimone:fix/assistant-create-say-with-supplemental-context

Conversation

@jamessimone
Copy link
Contributor

Summary

Fixes issue where say function for Assistant improperly overwrites metadata context arguments passed to it

Requirements (place an x in each [ ])

@codecov
Copy link

codecov bot commented Jun 18, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 93.37%. Comparing base (807c69d) to head (e4e891e).
Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2569      +/-   ##
==========================================
+ Coverage   93.35%   93.37%   +0.01%     
==========================================
  Files          37       37              
  Lines        7575     7578       +3     
  Branches      664      666       +2     
==========================================
+ Hits         7072     7076       +4     
+ Misses        498      497       -1     
  Partials        5        5              

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

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Copy link
Contributor

@WilliamBergamin WilliamBergamin left a comment

Choose a reason for hiding this comment

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

This looks good to me 💯 thanks for putting this together

sinon.assert.calledWith(fakeClient.chat.postMessage, expectedParams);
});

it('say should be called with message_metadata that supplements thread context', async () => {
Copy link
Contributor

Choose a reason for hiding this comment

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

🙏 🚀

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Of course! Thanks for reviewing

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@WilliamBergamin any word on when the next release will be cut?

@WilliamBergamin WilliamBergamin merged commit 6d2f647 into slackapi:main Jun 18, 2025
18 checks passed
@zimeg zimeg added bug M-T: confirmed bug report. Issues are confirmed when the reproduction steps are documented semver:patch labels Jun 18, 2025
@zimeg zimeg added this to the 4.4.1 milestone Jun 18, 2025
@jamessimone jamessimone deleted the fix/assistant-create-say-with-supplemental-context branch August 6, 2025 20:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug M-T: confirmed bug report. Issues are confirmed when the reproduction steps are documented cla:signed semver:patch

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants