Skip to content

Align Gmail thread id defaults#31

Open
elie222 wants to merge 24 commits intovercel-labs:mainfrom
inbox-zero:gmail-thread-semantics
Open

Align Gmail thread id defaults#31
elie222 wants to merge 24 commits intovercel-labs:mainfrom
inbox-zero:gmail-thread-semantics

Conversation

@elie222
Copy link
Copy Markdown
Contributor

@elie222 elie222 commented Mar 27, 2026

Summary

Ensure new standalone Gmail messages use their own message id as the default thread id instead of generating a separate thread id.
Preserve that original thread id for later replies resolved through and headers.
Add a regression test covering both the root-message default and the reply case.

Testing

pnpm --filter @emulators/google test

elie222 and others added 21 commits March 24, 2026 12:44
* Add Gmail drafts history and settings APIs

* Simplify draft routes and fix efficiency issues in Gmail emulation

Extract shared parseMessageInputFromBody helper to deduplicate field
mapping in draft create/update handlers. Fix N+1 lookups in
listDraftsForUser by caching message lookups upfront. Optimize
hasMessageAttachments to use early-exit instead of loading all
attachments. Remove redundant dedupeLabelIds call in filter application.
Extract HISTORY_CHANGE_TYPES constant to eliminate stringly-typed
validation.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

* Clean up Gmail route parsing

---------

Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Merge upstream and prep 0.3.0 release
@vercel
Copy link
Copy Markdown
Contributor

vercel bot commented Mar 27, 2026

@elie222 is attempting to deploy a commit to the Vercel Labs Team on Vercel.

A member of the Team first needs to authorize it.

@socket-security
Copy link
Copy Markdown

socket-security bot commented Mar 27, 2026

Review the following changes in direct dependencies. Learn more about Socket for GitHub.

Diff Package Supply Chain
Security
Vulnerability Quality Maintenance License
Updatedvitest@​4.1.0 ⏵ 4.1.196 +110079 +199100
Addedyaml@​2.8.39910010092100
Updatedhono@​4.12.8 ⏵ 4.12.999 +110097 +196100

View full report

session.uploadedBytes = updatedBytes;
getUploadSessions(ctx).set(session.sessionId, session);

if (updatedBytes >= total) {
Copy link
Copy Markdown
Contributor

@vercel vercel bot Mar 27, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Multi-chunk upload sessions corrupt file data by concatenating individually base64-encoded chunks, producing invalid base64 when intermediate chunks aren't 3-byte-aligned.

Fix on Vercel

@ctate
Copy link
Copy Markdown
Collaborator

ctate commented Mar 31, 2026

@elie222 Thanks for your contribution! It looks like all of the packages are prefixed with @inbox-zero. Did you mean to create the PR for another repo?

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