Skip to content

feat(core): add thread files, deleting their blobs with the thread - #319

Merged
tjholm merged 1 commit into
blob-storefrom
thread-files
Oct 9, 2026
Merged

tjholm merged 1 commit into
blob-storefrom
thread-files

Conversation

@tjholm

@tjholm tjholm commented Oct 6, 2026 •

Copy link
Copy Markdown
Member

Part of SUGA-1956.

Files in a thread, with their bytes in the blob store under threads/<threadId>/files/<fileId>. Threads are deleted only by cascade, so the migration adds a hand-written trigger on thread that queues the thread's folder in blob_deletion; BlobDeletions works through the queue every minute.

Stack created with GitHub Stacks CLI • Give Feedback 💬

@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Oct 6, 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 c06f61a Oct 08 2026, 11:25 PM

@tjholm
tjholm added this pull request to stack #322 October 6, 2026 23:28
Comment thread packages/core/drizzle/20261007232626_thread_files/migration.sql
Comment thread packages/core/drizzle/20261007232626_thread_files/migration.sql
Comment thread packages/core/drizzle/20261007232626_thread_files/migration.sql
Comment thread packages/core/src/conversations/thread-files/thread-files.ts Outdated
Comment thread packages/core/src/conversations/thread-files/thread-files.ts Outdated
Comment thread packages/core/src/conversations/thread-files/thread-files.ts Outdated
Comment thread packages/core/src/conversations/thread-files/thread-files.ts Outdated
@tjholm
tjholm force-pushed the thread-files branch 2 times, most recently from a526d30 to a479b06 Compare October 7, 2026 01:19
@tjholm
tjholm requested a review from jyecusch October 7, 2026 02:54
jyecusch
jyecusch previously approved these changes Oct 7, 2026
@tjholm
tjholm force-pushed the thread-files branch 2 times, most recently from b3878fb to eaa24fd Compare October 8, 2026 01:48
@tjholm
tjholm merged commit d09bb95 into main Oct 9, 2026
7 of 13 checks passed
@tjholm
tjholm deleted the thread-files branch October 9, 2026 00:32
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