Skip to content

fix: rename message_count to email_count - #1148

Merged
isabellaaquino merged 2 commits into
preview-inboxesfrom
feature/eng-5354-list-threads-uses-inconsistent-message-and-email-terminology
Oct 14, 2026
Merged

isabellaaquino merged 2 commits into
preview-inboxesfrom
feature/eng-5354-list-threads-uses-inconsistent-message-and-email-terminology

Conversation

@bukinoshita

@bukinoshita bukinoshita commented Oct 13, 2026 •

Copy link
Copy Markdown
Member

Summary by cubic

Renames the message_count field in List Threads responses to email_count for consistent email terminology across the threads API, since each thread's emails are fetched from /threads/:thread_id/emails.

Migration

  • Update any clients that read message_count to read email_count instead; this is a breaking change to the response shape.

Written for commit 77a4905. Summary will update on new commits.

View guided diff

@bukinoshita
bukinoshita requested a review from a team as a code owner October 13, 2026 23:28
@bukinoshita
bukinoshita requested review from alecventura and removed request for a team October 13, 2026 23:28
@pkg-pr-new

pkg-pr-new Bot commented Oct 13, 2026 •

Copy link
Copy Markdown

Open in StackBlitz

npm i https://pkg.pr.new/resend@1148

commit: 77a4905

@cubic-dev-ai cubic-dev-ai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

cubic analysis

No issues found across 2 files

Confidence score: 5/5

  • Automated review surfaced no issues in the provided summaries.
  • No files require special attention.

Linked issue analysis

Linked issue: ENG-5354: List Threads uses inconsistent message and email terminology

Status Acceptance criteria Notes
✅ Rename message_count to emails_count InboxThread now exposes emails_count, and the thread test fixtures use the renamed field.

Requires human review: Renames the public thread response field message_count to emails_count, which is a breaking change to the API response shape and requires client migration.

View guided diff | Re-trigger cubic

@LauraBeatris LauraBeatris changed the title fix: rename message_count to emails_count fix: rename message_count to email_count Oct 14, 2026

@cubic-dev-ai cubic-dev-ai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

0 issues found across 2 files (changes from recent commits).

Confidence score: 5/5

  • Automated review surfaced no issues in the provided summaries.
  • No files require special attention.

Requires human review: Renames the public thread response field message_count to email_count, a breaking SDK/API contract change requiring client migration, with no deprecation or compatibility path shown.

View guided diff | Re-trigger cubic

@isabellaaquino
isabellaaquino merged commit 6218caa into preview-inboxes Oct 14, 2026
9 checks passed
@isabellaaquino
isabellaaquino deleted the feature/eng-5354-list-threads-uses-inconsistent-message-and-email-terminology branch October 14, 2026 10:36
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.

3 participants