Skip to content

refactor(bot): share image attachment uploads#2840

Closed
RSO wants to merge 2 commits intomainfrom
RSO/cubic-swamp
Closed

refactor(bot): share image attachment uploads#2840
RSO wants to merge 2 commits intomainfrom
RSO/cubic-swamp

Conversation

@RSO
Copy link
Copy Markdown
Contributor

@RSO RSO commented Apr 28, 2026

Summary

  • Extract shared Cloud Agent attachment filename/key and PutObject construction into the R2 attachments helper.
  • Reuse the shared upload helper for Slack bot image attachments so direct uploads follow the same R2 conventions as presigned Cloud Agent uploads.

Verification

N/A

Visual Changes

N/A

Reviewer Notes

Follow-up to #2749 (comment).

@kilo-code-bot
Copy link
Copy Markdown
Contributor

kilo-code-bot Bot commented Apr 28, 2026

Code Review Summary

Status: No Issues Found | Recommendation: Merge

Files Reviewed (2 files)
  • apps/web/src/lib/bot/images.ts
  • apps/web/src/lib/r2/cloud-agent-attachments.ts

Reviewed by gpt-5.5-2026-04-23 · 266,847 tokens

@RSO RSO requested review from eshurakov and removed request for eshurakov April 28, 2026 09:07
@RSO RSO closed this Apr 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant