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/scripts
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
..
dev Gateway/Plugins: device pairing + phone control plugins (#11755) 10 months ago
docker chore: apply local workspace updates (#9911) 10 months ago
docs-i18n Docs i18n: make translation prompt language-pluggable 10 months ago
e2e fix: include plugin sdk dts tsconfig in onboard docker image 9 months ago
pre-commit chore: stabilize prek hooks runner selection (#1720) (thanks @dguido) 10 months ago
repro fix: run cli scripts via node build runner 10 months ago
shell-helpers Update clawdock-helpers.sh compatibility with Zsh 9 months ago
systemd refactor: rename to openclaw 10 months ago
auth-monitor.sh refactor: rename to openclaw 10 months ago
bench-model.ts chore: apply local workspace updates (#9911) 10 months ago
build-and-run-mac.sh refactor: rename to openclaw 10 months ago
build-docs-list.mjs chore: Enable linting in `scripts`. 10 months ago
build_icon.sh refactor: rename to openclaw 10 months ago
bundle-a2ui.sh Docker: include A2UI sources for bundle (#13114) 10 months ago
canvas-a2ui-copy.ts chore: Also format `scripts` and `skills`. 10 months ago
changelog-to-html.sh refactor: rename to openclaw 10 months ago
check-ts-max-loc.ts chore: Enable "experimentalSortImports" in Oxfmt and reformat all imorts. 10 months ago
claude-auth-status.sh refactor: rename to openclaw 10 months ago
clawlog.sh refactor: rename to openclaw 10 months ago
clawtributors-map.json 🤖 Feishu: expand channel support 10 months ago
codesign-mac-app.sh refactor: rename to openclaw 10 months ago
committer chore: block node_modules commits 10 months ago
copy-hook-metadata.ts fix: all bundled hooks broken since 2026.2.2 (tsdown migration) (#9295) 10 months ago
create-dmg.sh refactor: rename to openclaw 10 months ago
debug-claude-usage.ts chore: Enable "experimentalSortImports" in Oxfmt and reformat all imorts. 10 months ago
docs-link-audit.mjs fix: docs broken links and improve link checker (#13056) 10 months ago
docs-list.js chore: Enable linting in `scripts`. 10 months ago
firecrawl-compare.ts chore: Enable linting in `scripts`. 10 months ago
ios-team-id.sh chore(ios): add team id helper 11 months ago
label-open-issues.ts Scripts: add issue labeler state + PR support 9 months ago
make_appcast.sh refactor: rename to openclaw 10 months ago
mobile-reauth.sh refactor: rename to openclaw 10 months ago
notarize-mac-artifact.sh refactor: rename to openclaw 10 months ago
package-mac-app.sh fix: Fix Mac app build step. 10 months ago
package-mac-dist.sh chore: add mac dSYM zip to release artifacts 10 months ago
pr chore: fix root_dir resolution/stale scripts during PR review 9 months ago
pr-merge chore: fix root_dir resolution/stale scripts during PR review 9 months ago
pr-prepare chore: fix root_dir resolution/stale scripts during PR review 9 months ago
pr-review chore: fix root_dir resolution/stale scripts during PR review 9 months ago
protocol-gen-swift.ts fix(whatsapp): allow media-only sends and normalize leading blank payloads (#14408) 9 months ago
protocol-gen.ts refactor: rename to openclaw 10 months ago
readability-basic-compare.ts chore: Enable linting in `scripts`. 10 months ago
recover-orphaned-processes.sh fix: reset stale execution state after SIGUSR1 in-process restart (#15195) 9 months ago
release-check.ts fix(docker): support .mjs entrypoints in images and e2e 10 months ago
restart-mac.sh Switch from TypeScript to TypeScript Go. Use `pnpm tsgo` for Typechecks. 10 months ago
run-node.mjs perf(cli): reduce read-only startup overhead 9 months ago
sandbox-browser-entrypoint.sh refactor: rename to openclaw 10 months ago
sandbox-browser-setup.sh refactor: rename to openclaw 10 months ago
sandbox-common-setup.sh refactor: rename to openclaw 10 months ago
sandbox-setup.sh refactor: rename to openclaw 10 months ago
setup-auth-system.sh refactor: rename to openclaw 10 months ago
sqlite-vec-smoke.mjs chore: Also format `scripts` and `skills`. 10 months ago
sync-labels.ts CI: add PR size autolabel workflow (#14410) 10 months ago
sync-moonshot-docs.ts Docs: fix Moonshot sync markers (#6789) 10 months ago
sync-plugin-versions.ts chore: Enable linting in `scripts`. 10 months ago
termux-auth-widget.sh refactor: rename to openclaw 10 months ago
termux-quick-auth.sh refactor: rename to openclaw 10 months ago
termux-sync-widget.sh refactor: rename to openclaw 10 months ago
test-cleanup-docker.sh refactor: rename to openclaw 10 months ago
test-force.ts chore: Enable "experimentalSortImports" in Oxfmt and reformat all imorts. 10 months ago
test-install-sh-docker.sh refactor: rename to openclaw 10 months ago
test-install-sh-e2e-docker.sh refactor: rename to openclaw 10 months ago
test-live-gateway-models-docker.sh refactor: rename to openclaw 10 months ago
test-live-models-docker.sh refactor: rename to openclaw 10 months ago
test-parallel.mjs perf(test): parallelize unit-isolated 9 months ago
test-shell-completion.ts scripts: update test-shell-completion to use shared helpers 10 months ago
ui.js chore: Enable linting in `scripts`. 10 months ago
update-clawtributors.ts chore: Enable `typescript/no-explicit-any` rule. 10 months ago
update-clawtributors.types.ts feat: add prek pre-commit hooks and dependabot (#1720) 10 months ago
vitest-slowest.mjs perf(test): add vitest slowest report artifact 9 months ago
watch-node.mjs fix(config): add forensic config write audit and watch attribution 9 months ago
write-build-info.ts chore: Enable linting in `scripts`. 10 months ago
write-cli-compat.ts fix(update): repair daemon-cli compat exports after self-update 9 months ago
write-plugin-sdk-entry-dts.ts fix(slack): download all files in multi-image messages (#15447) 9 months ago
zai-fallback-repro.ts chore: apply local workspace updates (#9911) 10 months ago