You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gpt-pilot/extensions
Tanwa Arpornthip c76288bdf1
fix(slack): download all files in multi-image messages (#15447)
* fix(slack): download all files in multi-image messages

resolveSlackMedia() previously returned after downloading the first
file, causing multi-image Slack messages to lose all but the first
attachment. This changes the function to collect all successfully
downloaded files into an array, matching the pattern already used by
Telegram, Line, Discord, and iMessage adapters.

The prepare handler now populates MediaPaths, MediaUrls, and
MediaTypes arrays so downstream media processing (vision, sandbox
staging, media notes) works correctly with multiple attachments.

Fixes #11892, #7536

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

* fix(slack): preserve MediaTypes index alignment with MediaPaths/MediaUrls

The filter(Boolean) on MediaTypes removed entries with undefined contentType,
shrinking the array and breaking index correlation with MediaPaths and MediaUrls.
Downstream code (media-note.ts, attachments.ts) requires these arrays to have
equal lengths for correct per-attachment MIME type lookup. Replace filter(Boolean)
with a nullish coalescing fallback to "application/octet-stream".

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

* fix(slack): align MediaType fallback and tests (#15447) (thanks @CommanderCrowCode)

* fix: unblock plugin-sdk account-id typing (#15447)

---------

Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
Co-authored-by: Peter Steinberger <steipete@gmail.com>
9 months ago
..
bluebubbles perf(test): avoid plugin-sdk barrel imports 9 months ago
copilot-proxy fix(ci): sync extension versions to root release (#15199) 9 months ago
device-pair TypeScript: add extensions to tsconfig and fix type errors (#12781) 10 months ago
diagnostics-otel fix(ci): sync extension versions to root release (#15199) 9 months ago
discord fix(ci): sync extension versions to root release (#15199) 9 months ago
feishu fix(slack): download all files in multi-image messages (#15447) 9 months ago
google-antigravity-auth fix(ci): sync extension versions to root release (#15199) 9 months ago
google-gemini-cli-auth test: migrate suites to e2e coverage layout 9 months ago
googlechat perf(test): avoid plugin-sdk barrel imports 9 months ago
imessage fix(ci): sync extension versions to root release (#15199) 9 months ago
irc perf(test): avoid plugin-sdk barrel imports 9 months ago
line fix(ci): sync extension versions to root release (#15199) 9 months ago
llm-task fix(ci): sync extension versions to root release (#15199) 9 months ago
lobster fix(ci): sync extension versions to root release (#15199) 9 months ago
matrix perf(test): avoid plugin-sdk barrel imports 9 months ago
mattermost perf(test): avoid plugin-sdk barrel imports 9 months ago
memory-core fix(ci): sync extension versions to root release (#15199) 9 months ago
memory-lancedb fix(ci): sync extension versions to root release (#15199) 9 months ago
minimax-portal-auth fix(ci): sync extension versions to root release (#15199) 9 months ago
msteams fix(security): enforce bounded webhook body handling 9 months ago
nextcloud-talk perf(test): avoid plugin-sdk barrel imports 9 months ago
nostr fix(security): enforce bounded webhook body handling 9 months ago
open-prose fix(ci): sync extension versions to root release (#15199) 9 months ago
phone-control TypeScript: add extensions to tsconfig and fix type errors (#12781) 10 months ago
qwen-portal-auth TypeScript: add extensions to tsconfig and fix type errors (#12781) 10 months ago
signal fix(ci): sync extension versions to root release (#15199) 9 months ago
slack refactor(reply): clarify explicit reply tags in off mode (#16189) 9 months ago
talk-voice Gateway/Plugins: device pairing + phone control plugins (#11755) 10 months ago
telegram fix: align extension plugin and docs with new replyToMode default 9 months ago
thread-ownership feat(slack): land thread-ownership from @DarlingtonDeveloper (#15775) 9 months ago
tlon fix(ci): sync extension versions to root release (#15199) 9 months ago
twitch test: migrate suites to e2e coverage layout 9 months ago
voice-call refactor(voice-call): split manager into facade and context slices 9 months ago
whatsapp fix(ci): sync extension versions to root release (#15199) 9 months ago
zalo perf(test): avoid plugin-sdk barrel imports 9 months ago
zalouser perf(test): avoid plugin-sdk barrel imports 9 months ago