Skip to content

feat(core): send uploaded files with a chat message - #394

Merged
tjholm merged 1 commit into
chat-attachmentsfrom
send-attachments
Oct 19, 2026
Merged

tjholm merged 1 commit into
chat-attachmentsfrom
send-attachments

Conversation

@davemooreuws

@davemooreuws davemooreuws commented Oct 14, 2026 •

Copy link
Copy Markdown
Member

Second of the chat attachments PRs, stacked on #393: sending uploads with a message. The web app doesn't send them yet.

  • POST /chats/:chatId/messages takes attachments, the ids of the sender's unsent uploads. A message can be files only.
  • Files are attached in the same transaction that posts the message, so the announced message carries them. A file that isn't one of the sender's unsent uploads fails the send with a 400 and posts nothing.
  • Messages gain a file part, read from thread_file, in the order the sender listed them, kept as each file's position.
  • Bots see each attachment as a line in the sender's message, naming the file and the tool that reads it. Reading images and recognising text from content comes next.

Part of SUGA-1825

@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Oct 14, 2026 •

Copy link
Copy Markdown

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

Status Name Latest Commit Updated (UTC)
✅ Deployment successful!
View logs
sugabots-website e2f62cc Oct 16 2026, 06:45 AM

@tjholm
tjholm merged commit 2fcbcfe into main Oct 19, 2026
7 checks passed
@tjholm
tjholm deleted the send-attachments branch October 19, 2026 04:49
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.

2 participants