Skip to content

Conversation

@zimeg
Copy link
Member

@zimeg zimeg commented Oct 2, 2025

Summary

This PR refactors the @slack/web-api implementation of the chat stream helper to match implementation of #2379 for consistent maintenance.

Reviewers

No changes to functionalities!

Requirements

@zimeg zimeg requested a review from mwbrooks October 2, 2025 15:35
@zimeg zimeg self-assigned this Oct 2, 2025
@zimeg zimeg added docs M-T: Documentation work only semver:patch enhancement M-T: A feature request for new functionality area:performance issues where performance is a meaningful concern pkg:web-api applies to `@slack/web-api` labels Oct 2, 2025
@codecov
Copy link

codecov bot commented Oct 2, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
⚠️ Please upload report for BASE (ai-apps@de8e9ec). Learn more about missing BASE report.
✅ All tests successful. No failed tests found.

Additional details and impacted files
@@            Coverage Diff             @@
##             ai-apps    #2388   +/-   ##
==========================================
  Coverage           ?   93.01%           
==========================================
  Files              ?       40           
  Lines              ?    11112           
  Branches           ?      713           
==========================================
  Hits               ?    10336           
  Misses             ?      764           
  Partials           ?       12           
Flag Coverage Δ
cli-hooks 95.23% <ø> (?)
cli-test 94.80% <ø> (?)
oauth 77.39% <ø> (?)
socket-mode 61.87% <ø> (?)
web-api 98.07% <100.00%> (?)
webhook 96.66% <ø> (?)

Flags with carried forward coverage won't be shown. Click here to find out more.

🚀 New features to boost your workflow:
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@zimeg zimeg marked this pull request as ready for review October 2, 2025 17:11
Copy link
Member

@mwbrooks mwbrooks left a comment

Choose a reason for hiding this comment

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

✅ Looking good! Thanks for aligning the two implementations and testing the blocks!

Comment on lines +133 to +135
if (args?.markdown_text) {
this.buffer += args.markdown_text;
}
Copy link
Member

Choose a reason for hiding this comment

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

praise: This is a cleaner and more readable approach!

ok: true,
})
.post('/api/chat.stopStream', {
blocks: JSON.stringify([contextActionsBlock]),
Copy link
Member

Choose a reason for hiding this comment

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

praise: Thanks for testing the blocks!

Copy link
Member Author

Choose a reason for hiding this comment

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

@mwbrooks This was such a good suggestion! I forget why this might've been skipped this in a first pass...

@zimeg
Copy link
Member Author

zimeg commented Oct 2, 2025

@mwbrooks Thank you! I'll merge this now that slackapi/python-slack-sdk#1755 has merged with similar changes and test!

🚢 💨

@zimeg zimeg merged commit 4c61ed2 into ai-apps Oct 2, 2025
110 of 111 checks passed
@zimeg zimeg deleted the zimeg-refactor-web-api-chat-stream-alignment branch October 2, 2025 17:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:performance issues where performance is a meaningful concern docs M-T: Documentation work only enhancement M-T: A feature request for new functionality pkg:web-api applies to `@slack/web-api` semver:patch

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants